[Rusonyx #1409057]: Re: mod_perl and apache 2.4

2015-08-11 Thread Rusonyx Support Team
Michael Schout,

Вы написали в компанию Русоникс и это письмо является автоматическим
подтверждением того, что Ваша заявка поступила в очередь на обработку.
Мы ответим на Ваш запрос по возможности максимально быстро.

ID Заявки: 1409057
Тема: Re: mod_perl and apache 2.4
Отдел: Support
Тип: Issue
Статус: Open
Приоритет: Medium
С уважением
ООО Русоникс
www.rusonyx.ru 

Rusonyx


--
Портал технической поддержки: https://support.rusonyx.ru/index.php?


Re: mod_perl and apache 2.4

2015-08-11 Thread Michael Schout
On 5/8/15 7:55 PM, GLG wrote:
> It doesn't matter how I install mod_perl (dynamic or static. Also tried via
> Webmin), the end result is always the same. This on FreeBSD 10.1
...
> httpd: Syntax error on line 107 of /usr/local/etc/apache22/httpd.conf:
> Cannot load /usr/local/libexec/apache22/mod_perl.so into server:
> /usr/local/libexec/apache22/mod_perl.so: Undefined symbol
> "modperl_io_perlio_restore_stdout"
> -

I know this is old, but I'm going to reply because I ran into this a
while back (and solved it).  Hopefully I can help others.

This problem has to do with the fact that FreeBSD uses clang to compile
mod_perl, and clang handles C99 inline functions differently from gcc's
default mode (which is C89 for GCC < 5.0).  You'll run into this exact
same problem everywhere clang is used (e.g.: OS X).

The short answer is you have two choices:

1) compile with gcc
or
2) patch src/modules/perl/modperl_common_util.h and make sure APR_INLINE
is not defined before compiling.

See the ports Makefile in www/mod_perl2 under the post-patch rule for
how the ports tree handles this (unset APR_INLINE)

I realize this may be too late to help you, but hopefully this will help
someone else down the line.

See: http://clang.llvm.org/compatibility.html#inline

Regards,
Michael Schout


RE: mod_perl and apache 2.4

2015-05-12 Thread GLG
SOLVED. I messed around with Poudriere, but it kept insisting that I
re-instal Apache24 over Apache22 (completely ignoring make.conf or command
line parameters), which I'd previously learned doesn't work with mod_perl2.
I even tried to lock Apache22, but it just would not create a package with
that version. What a dilemma.

Then I was lucky enough to discover a mod_perl2 development snapshot package
that also insisted on re-installing Apache24, but it was worth a try at this
point, and it worked perfectly (ap24-mod_perl2-2.0.8_4,3). Thanks everyone.

-Original Message-
From: GLG [mailto:i...@3dnetproductions.com] 
Sent: Sunday, May 10, 2015 2:58 PM
To: 'mod_perl list'
Subject: RE: mod_perl and apache 2.4

No disrespect intended folks, For a while I was just wondering if I was at
the right place, not wanting to annoy people out-of-place in a public list.
But I did receive assistance and something to go on. Tomorrow I will
remove/deinstall everything mod_perl related from the system, reinstall as
prescribed and report back here. Hopefully, my experience will help others
in the future. Thank you, 

-Original Message-
From: Vincent Veyron [mailto:vv.li...@wanadoo.fr] 
Sent: Sunday, May 10, 2015 8:28 AM
To: Jie Gao
Cc: GLG; 'mod_perl list'
Subject: Re: mod_perl and apache 2.4

On Sun, 10 May 2015 11:58:56 +1000
Jie Gao  wrote:
> 
> You've now got help from Randal! So you know this is really mod_perl list.
:-)
> 

Well put!


-- 
Salutations, Vincent Veyron 

https://legalcase.libremen.com/ 
Legal case, contract and insurance claim management software




RE: mod_perl and apache 2.4

2015-05-10 Thread GLG
No disrespect intended folks, For a while I was just wondering if I was at
the right place, not wanting to annoy people out-of-place in a public list.
But I did receive assistance and something to go on. Tomorrow I will
remove/deinstall everything mod_perl related from the system, reinstall as
prescribed and report back here. Hopefully, my experience will help others
in the future. Thank you, 

-Original Message-
From: Vincent Veyron [mailto:vv.li...@wanadoo.fr] 
Sent: Sunday, May 10, 2015 8:28 AM
To: Jie Gao
Cc: GLG; 'mod_perl list'
Subject: Re: mod_perl and apache 2.4

On Sun, 10 May 2015 11:58:56 +1000
Jie Gao  wrote:
> 
> You've now got help from Randal! So you know this is really mod_perl list.
:-)
> 

Well put!


-- 
Salutations, Vincent Veyron 

https://legalcase.libremen.com/ 
Legal case, contract and insurance claim management software



Re: mod_perl and apache 2.4

2015-05-10 Thread Vincent Veyron
On Sun, 10 May 2015 11:58:56 +1000
Jie Gao  wrote:
> 
> You've now got help from Randal! So you know this is really mod_perl list. :-)
> 

Well put!


-- 
Salutations, Vincent Veyron 

https://legalcase.libremen.com/ 
Legal case, contract and insurance claim management software


Re: mod_perl and apache 2.4

2015-05-09 Thread Jie Gao
Hi GLG

You've now got help from Randal! So you know this is really mod_perl list. :-)


Regards,

Jie 

* Randal L. Schwartz  wrote:

> Date: Sat, 9 May 2015 07:56:06 -0700
> From: "Randal L. Schwartz" 
> To: GLG 
> CC: 'Jie Gao' , 'mod_perl list'
>  
> Subject: Re: mod_perl and apache 2.4
> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (berkeley-unix)
> 
> >>>>> "GLG" == GLG   writes:
> 
> GLG> Thanks for the suggestions. Not running FreeBSD may lead to deeper issues
> GLG> for us because of the type of work that we do. Downgrading could be an
> GLG> option but there is already so much done, and services running like 
> email,
> GLG> etc. I'd rather try to find the problem as is.
> 
> I came in late to this thread, but if you're running FreeBSD, do *not*
> mix ports with packages.  As in, don't hand-compile some things, but
> "pkg install" other things.  If you want the convenience of locally
> customized ports as packages, use poudriere and create your own package
> repo with your own custom settings.
> 
> -- 
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
>  http://www.stonehenge.com/merlyn/>
> Perl/Unix consulting, Technical writing, Comedy, etc. etc.
> Still trying to think of something clever for the fourth line of this .sig


Re: mod_perl and apache 2.4

2015-05-09 Thread Randal L. Schwartz
> "GLG" == GLG   writes:

GLG> Thanks for the suggestions. Not running FreeBSD may lead to deeper issues
GLG> for us because of the type of work that we do. Downgrading could be an
GLG> option but there is already so much done, and services running like email,
GLG> etc. I'd rather try to find the problem as is.

I came in late to this thread, but if you're running FreeBSD, do *not*
mix ports with packages.  As in, don't hand-compile some things, but
"pkg install" other things.  If you want the convenience of locally
customized ports as packages, use poudriere and create your own package
repo with your own custom settings.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
 http://www.stonehenge.com/merlyn/>
Perl/Unix consulting, Technical writing, Comedy, etc. etc.
Still trying to think of something clever for the fourth line of this .sig


RE: mod_perl and apache 2.4

2015-05-08 Thread Jie Gao
If it's a permissions issue, you probably already know what to do. -Jie

From: GLG [i...@3dnetproductions.com]
Sent: Saturday, May 09, 2015 4:33 PM
To: Jie Gao; 'mod_perl list'
Subject: RE: mod_perl and apache 2.4

Thanks for the suggestions. Not running FreeBSD may lead to deeper issues
for us because of the type of work that we do. Downgrading could be an
option but there is already so much done, and services running like email,
etc. I'd rather try to find the problem as is.

I ran ktrace twice. Once with Apache loading mod_perl, and once without
loading it. The kdump output files are identical for all practical purposes.
They also have exactly the same size.

Apache runs without mod_perl, but I also find this in both files:

69375 ktrace   CALL  execve(0x7fffe550,0x7fffeae0,0x7fffeb00)
69375 ktrace   NAMI  "/usr/bin/apachectl"
69375 ktrace   RET   execve -1 errno 13 Permission denied






-Original Message-
From: Jie Gao [mailto:j@sydney.edu.au]
Sent: Saturday, May 09, 2015 12:31 AM
To: i...@3dnetproductions.com; 'mod_perl list'
Subject: RE: mod_perl and apache 2.4

I can see the full name of functions in mod_perl.so with a "wide format"
now, so they do exist. But they are in the relocation section.

Run "strace -f apachectl restart" to see where it erred by what function /
calling what file. There might be some restriction to what lib files you are
allowed to load.

I'd change OS to save time.

-Jie


From: Jie Gao [j@sydney.edu.au]
Sent: Saturday, May 09, 2015 11:59 AM
To: i...@3dnetproductions.com; 'mod_perl list'
Subject: RE: mod_perl and apache 2.4

mod_perl.so indeed does not have "modperl_io_perlio_restore_stdout", nor
"modperl_io_perlio_restore_stdin";
it does have "modperl_io_perlio_restore", which does not seem to be defined
anywhere in the source. Not sure why.

-JIie

From: GLG [i...@3dnetproductions.com]
Sent: Saturday, May 09, 2015 10:55 AM
To: 'mod_perl list'
Subject: RE: mod_perl and apache 2.4

It doesn't matter how I install mod_perl (dynamic or static. Also tried via
Webmin), the end result is always the same. This on FreeBSD 10.1

As soon as I add this line to httpd.conf

LoadModule perl_module libexec/apache22/mod_perl.so

and attempt to restart Apache, I get this...


apachectl restart

Now reading network conf in..  /etc/rc.conf
Now reading network conf in..  /etc/rc.conf
Performing sanity check on apache22 configuration:
httpd: Syntax error on line 107 of /usr/local/etc/apache22/httpd.conf:
Cannot load /usr/local/libexec/apache22/mod_perl.so into server:
/usr/local/libexec/apache22/mod_perl.so: Undefined symbol
"modperl_io_perlio_restore_stdout"
-

I have verified that mod_perl.so is in place. What on Earth is

'Undefined symbol "modperl_io_perlio_restore_stdout"'???


Is this really a mod_perl list?

Thank you,





-----Original Message-
From: GLG [mailto:i...@3dnetproductions.com]
Sent: Friday, May 01, 2015 7:12 PM
To: 'mod_perl list'
Subject: RE: mod_perl and apache 2.4

Thanks André. Your info was useful.  I can't say that I solved this yet, but
I did find something strange.

But first, I no longer think there's an issue with libtool. It looks like
there's a fix running.

Secondly, I had to 'pkg install p5-BSD-Resource' dependency manually,
because the automatic installation by mod_perl2 didn't work.

And third, Can't really do 'make test' either because it has to run as a
priviledged user, and then Apache wants a non-priviledged user for the test
suite. Can't have both. So no dice.

But see below for where the real problem seems to be:

Short version:

Notice how gmake is installing mod_perl in ../ ../mach/5.18/ <--- correct
  but later tries to read from ../ ../5.18/mach/ <--- incorrect

Something is backward??? What is the right way to resolve this? I have been
at it way too long. Thanks,

--
Longer version:

[root@x /usr/ports/www/mod_perl2]# make install clean
===>  Staging for ap22-mod_perl2-2.0.8_2,3
===>   ap22-mod_perl2-2.0.8_2,3 depends on package: p5-BSD-Resource>=0 -
found
===>   ap22-mod_perl2-2.0.8_2,3 depends on file: /usr/local/sbin/apxs -
found
===>   ap22-mod_perl2-2.0.8_2,3 depends on file: /usr/local/bin/perl5.18.4 -
found
===>   Generating temporary packing list
gmake[1]: Entering directory '/usr/ports/www/mod_perl2/work/mod_perl-2.0.8'

... more stuff here

Installing
/usr/ports/www/mod_perl2/work/stage/usr/local/lib/perl5/site_perl/mach/5.18/

... more of the same here

 find:
/usr/ports/www/mod_perl2/work/stage/usr/local

RE: mod_perl and apache 2.4

2015-05-08 Thread GLG
Thanks for the suggestions. Not running FreeBSD may lead to deeper issues
for us because of the type of work that we do. Downgrading could be an
option but there is already so much done, and services running like email,
etc. I'd rather try to find the problem as is.

I ran ktrace twice. Once with Apache loading mod_perl, and once without
loading it. The kdump output files are identical for all practical purposes.
They also have exactly the same size.
 
Apache runs without mod_perl, but I also find this in both files: 

69375 ktrace   CALL  execve(0x7fffe550,0x7fffeae0,0x7fffeb00)
69375 ktrace   NAMI  "/usr/bin/apachectl"
69375 ktrace   RET   execve -1 errno 13 Permission denied






-Original Message-
From: Jie Gao [mailto:j@sydney.edu.au] 
Sent: Saturday, May 09, 2015 12:31 AM
To: i...@3dnetproductions.com; 'mod_perl list'
Subject: RE: mod_perl and apache 2.4

I can see the full name of functions in mod_perl.so with a "wide format"
now, so they do exist. But they are in the relocation section.

Run "strace -f apachectl restart" to see where it erred by what function /
calling what file. There might be some restriction to what lib files you are
allowed to load.

I'd change OS to save time.

-Jie


From: Jie Gao [j@sydney.edu.au]
Sent: Saturday, May 09, 2015 11:59 AM
To: i...@3dnetproductions.com; 'mod_perl list'
Subject: RE: mod_perl and apache 2.4

mod_perl.so indeed does not have "modperl_io_perlio_restore_stdout", nor
"modperl_io_perlio_restore_stdin";
it does have "modperl_io_perlio_restore", which does not seem to be defined
anywhere in the source. Not sure why.

-JIie

From: GLG [i...@3dnetproductions.com]
Sent: Saturday, May 09, 2015 10:55 AM
To: 'mod_perl list'
Subject: RE: mod_perl and apache 2.4

It doesn't matter how I install mod_perl (dynamic or static. Also tried via
Webmin), the end result is always the same. This on FreeBSD 10.1

As soon as I add this line to httpd.conf

LoadModule perl_module libexec/apache22/mod_perl.so

and attempt to restart Apache, I get this...


apachectl restart

Now reading network conf in..  /etc/rc.conf
Now reading network conf in..  /etc/rc.conf
Performing sanity check on apache22 configuration:
httpd: Syntax error on line 107 of /usr/local/etc/apache22/httpd.conf:
Cannot load /usr/local/libexec/apache22/mod_perl.so into server:
/usr/local/libexec/apache22/mod_perl.so: Undefined symbol
"modperl_io_perlio_restore_stdout"
-

I have verified that mod_perl.so is in place. What on Earth is

'Undefined symbol "modperl_io_perlio_restore_stdout"'???


Is this really a mod_perl list?

Thank you,





-----Original Message-----
From: GLG [mailto:i...@3dnetproductions.com]
Sent: Friday, May 01, 2015 7:12 PM
To: 'mod_perl list'
Subject: RE: mod_perl and apache 2.4

Thanks André. Your info was useful.  I can't say that I solved this yet, but
I did find something strange.

But first, I no longer think there's an issue with libtool. It looks like
there's a fix running.

Secondly, I had to 'pkg install p5-BSD-Resource' dependency manually,
because the automatic installation by mod_perl2 didn't work.

And third, Can't really do 'make test' either because it has to run as a
priviledged user, and then Apache wants a non-priviledged user for the test
suite. Can't have both. So no dice.

But see below for where the real problem seems to be:

Short version:

Notice how gmake is installing mod_perl in ../ ../mach/5.18/ <--- correct
  but later tries to read from ../ ../5.18/mach/ <--- incorrect

Something is backward??? What is the right way to resolve this? I have been
at it way too long. Thanks,

--
Longer version:

[root@x /usr/ports/www/mod_perl2]# make install clean
===>  Staging for ap22-mod_perl2-2.0.8_2,3
===>   ap22-mod_perl2-2.0.8_2,3 depends on package: p5-BSD-Resource>=0 -
found
===>   ap22-mod_perl2-2.0.8_2,3 depends on file: /usr/local/sbin/apxs -
found
===>   ap22-mod_perl2-2.0.8_2,3 depends on file: /usr/local/bin/perl5.18.4 -
found
===>   Generating temporary packing list
gmake[1]: Entering directory '/usr/ports/www/mod_perl2/work/mod_perl-2.0.8'

... more stuff here

Installing
/usr/ports/www/mod_perl2/work/stage/usr/local/lib/perl5/site_perl/mach/5.18/

... more of the same here

 find:
/usr/ports/www/mod_perl2/work/stage/usr/local/lib/perl5/site_perl/5.18/mach/
auto: No such file or directory
> Compressing man pages (compress-man)
===>  Installing for ap22-mod_perl2-2.0.8_2,3
===>  Checking if ap22-mod_perl2 already installed
===>   Registering installation for ap22-mod_perl2-2

RE: mod_perl and apache 2.4

2015-05-08 Thread Jie Gao
I can see the full name of functions in mod_perl.so with a "wide format" now, 
so they do exist. But they are in the relocation section.

Run "strace -f apachectl restart" to see where it erred by what function / 
calling what file. There might be some restriction to what lib files you are 
allowed to load.

I'd change OS to save time.

-Jie


From: Jie Gao [j@sydney.edu.au]
Sent: Saturday, May 09, 2015 11:59 AM
To: i...@3dnetproductions.com; 'mod_perl list'
Subject: RE: mod_perl and apache 2.4

mod_perl.so indeed does not have "modperl_io_perlio_restore_stdout", nor 
"modperl_io_perlio_restore_stdin";
it does have "modperl_io_perlio_restore", which does not seem to be defined 
anywhere in the source. Not sure why.

-JIie

From: GLG [i...@3dnetproductions.com]
Sent: Saturday, May 09, 2015 10:55 AM
To: 'mod_perl list'
Subject: RE: mod_perl and apache 2.4

It doesn't matter how I install mod_perl (dynamic or static. Also tried via
Webmin), the end result is always the same. This on FreeBSD 10.1

As soon as I add this line to httpd.conf

LoadModule perl_module libexec/apache22/mod_perl.so

and attempt to restart Apache, I get this...


apachectl restart

Now reading network conf in..  /etc/rc.conf
Now reading network conf in..  /etc/rc.conf
Performing sanity check on apache22 configuration:
httpd: Syntax error on line 107 of /usr/local/etc/apache22/httpd.conf:
Cannot load /usr/local/libexec/apache22/mod_perl.so into server:
/usr/local/libexec/apache22/mod_perl.so: Undefined symbol
"modperl_io_perlio_restore_stdout"
-

I have verified that mod_perl.so is in place. What on Earth is

'Undefined symbol "modperl_io_perlio_restore_stdout"'???


Is this really a mod_perl list?

Thank you,





-Original Message-
From: GLG [mailto:i...@3dnetproductions.com]
Sent: Friday, May 01, 2015 7:12 PM
To: 'mod_perl list'
Subject: RE: mod_perl and apache 2.4

Thanks André. Your info was useful.  I can't say that I solved this yet, but
I did find something strange.

But first, I no longer think there's an issue with libtool. It looks like
there's a fix running.

Secondly, I had to 'pkg install p5-BSD-Resource' dependency manually,
because the automatic installation by mod_perl2 didn't work.

And third, Can't really do 'make test' either because it has to run as a
priviledged user, and then Apache wants a non-priviledged user for the test
suite. Can't have both. So no dice.

But see below for where the real problem seems to be:

Short version:

Notice how gmake is installing mod_perl in ../ ../mach/5.18/ <--- correct
  but later tries to read from ../ ../5.18/mach/ <--- incorrect

Something is backward??? What is the right way to resolve this? I have been
at it way too long. Thanks,

--
Longer version:

[root@x /usr/ports/www/mod_perl2]# make install clean
===>  Staging for ap22-mod_perl2-2.0.8_2,3
===>   ap22-mod_perl2-2.0.8_2,3 depends on package: p5-BSD-Resource>=0 -
found
===>   ap22-mod_perl2-2.0.8_2,3 depends on file: /usr/local/sbin/apxs -
found
===>   ap22-mod_perl2-2.0.8_2,3 depends on file: /usr/local/bin/perl5.18.4 -
found
===>   Generating temporary packing list
gmake[1]: Entering directory '/usr/ports/www/mod_perl2/work/mod_perl-2.0.8'

... more stuff here

Installing
/usr/ports/www/mod_perl2/work/stage/usr/local/lib/perl5/site_perl/mach/5.18/

... more of the same here

 find:
/usr/ports/www/mod_perl2/work/stage/usr/local/lib/perl5/site_perl/5.18/mach/
auto: No such file or directory
> Compressing man pages (compress-man)
===>  Installing for ap22-mod_perl2-2.0.8_2,3
===>  Checking if ap22-mod_perl2 already installed
===>   Registering installation for ap22-mod_perl2-2.0.8_2,3
pkg-static: Unable to access file
/usr/ports/www/mod_perl2/work/stage/usr/local/===>
ap24-mod_perl2-2.0.8_2,3 depends on package: p5-BSD-Resource>=0 - not found:
No such file or directory
pkg-static: Unable to access file
/usr/ports/www/mod_perl2/work/stage/usr/local/===>Verifying install for
p5-BSD-Resource>=0 in /usr/ports/devel/p5-BSD-Resource: No such file or
directory
pkg-static: Unable to access file
/usr/ports/www/mod_perl2/work/stage/usr/local/===>  Installing for
p5-BSD-Resource-1.2907: No such file or directory

... more of the same here












RE: mod_perl and apache 2.4

2015-05-08 Thread GLG
Well, it does in version 2.0.8. They are functions you can see clearly in
'modperl_io.h' and 'modperl_io.c'.

But I wasn't exactly planning on learning the intricacies of mod_perl so I
can try fixing this for myself. Rather, I was really hoping of getting some
help from someone who would know first-hand how to deal with it. Better yet
get an upgrade, but I am seriously running out of time. Several websites I
manage are depending on this to work, as I am forced to switch servers.





-Original Message-
From: Jie Gao [mailto:j@sydney.edu.au] 
Sent: Friday, May 08, 2015 9:59 PM
To: i...@3dnetproductions.com; 'mod_perl list'
Subject: RE: mod_perl and apache 2.4

mod_perl.so indeed does not have "modperl_io_perlio_restore_stdout", nor
"modperl_io_perlio_restore_stdin";
it does have "modperl_io_perlio_restore", which does not seem to be defined
anywhere in the source. Not sure why.

-JIie

From: GLG [i...@3dnetproductions.com]
Sent: Saturday, May 09, 2015 10:55 AM
To: 'mod_perl list'
Subject: RE: mod_perl and apache 2.4

It doesn't matter how I install mod_perl (dynamic or static. Also tried via
Webmin), the end result is always the same. This on FreeBSD 10.1

As soon as I add this line to httpd.conf

LoadModule perl_module libexec/apache22/mod_perl.so

and attempt to restart Apache, I get this...


apachectl restart

Now reading network conf in..  /etc/rc.conf
Now reading network conf in..  /etc/rc.conf
Performing sanity check on apache22 configuration:
httpd: Syntax error on line 107 of /usr/local/etc/apache22/httpd.conf:
Cannot load /usr/local/libexec/apache22/mod_perl.so into server:
/usr/local/libexec/apache22/mod_perl.so: Undefined symbol
"modperl_io_perlio_restore_stdout"
-

I have verified that mod_perl.so is in place. What on Earth is

'Undefined symbol "modperl_io_perlio_restore_stdout"'???


Is this really a mod_perl list?

Thank you,





-Original Message-
From: GLG [mailto:i...@3dnetproductions.com]
Sent: Friday, May 01, 2015 7:12 PM
To: 'mod_perl list'
Subject: RE: mod_perl and apache 2.4

Thanks André. Your info was useful.  I can't say that I solved this yet, but
I did find something strange.

But first, I no longer think there's an issue with libtool. It looks like
there's a fix running.

Secondly, I had to 'pkg install p5-BSD-Resource' dependency manually,
because the automatic installation by mod_perl2 didn't work.

And third, Can't really do 'make test' either because it has to run as a
priviledged user, and then Apache wants a non-priviledged user for the test
suite. Can't have both. So no dice.

But see below for where the real problem seems to be:

Short version:

Notice how gmake is installing mod_perl in ../ ../mach/5.18/ <--- correct
  but later tries to read from ../ ../5.18/mach/ <--- incorrect

Something is backward??? What is the right way to resolve this? I have been
at it way too long. Thanks,

--
Longer version:

[root@x /usr/ports/www/mod_perl2]# make install clean
===>  Staging for ap22-mod_perl2-2.0.8_2,3
===>   ap22-mod_perl2-2.0.8_2,3 depends on package: p5-BSD-Resource>=0 -
found
===>   ap22-mod_perl2-2.0.8_2,3 depends on file: /usr/local/sbin/apxs -
found
===>   ap22-mod_perl2-2.0.8_2,3 depends on file: /usr/local/bin/perl5.18.4 -
found
===>   Generating temporary packing list
gmake[1]: Entering directory '/usr/ports/www/mod_perl2/work/mod_perl-2.0.8'

... more stuff here

Installing
/usr/ports/www/mod_perl2/work/stage/usr/local/lib/perl5/site_perl/mach/5.18/

... more of the same here

 find:
/usr/ports/www/mod_perl2/work/stage/usr/local/lib/perl5/site_perl/5.18/mach/
auto: No such file or directory
> Compressing man pages (compress-man)
===>  Installing for ap22-mod_perl2-2.0.8_2,3
===>  Checking if ap22-mod_perl2 already installed
===>   Registering installation for ap22-mod_perl2-2.0.8_2,3
pkg-static: Unable to access file
/usr/ports/www/mod_perl2/work/stage/usr/local/===>
ap24-mod_perl2-2.0.8_2,3 depends on package: p5-BSD-Resource>=0 - not found:
No such file or directory
pkg-static: Unable to access file
/usr/ports/www/mod_perl2/work/stage/usr/local/===>Verifying install for
p5-BSD-Resource>=0 in /usr/ports/devel/p5-BSD-Resource: No such file or
directory
pkg-static: Unable to access file
/usr/ports/www/mod_perl2/work/stage/usr/local/===>  Installing for
p5-BSD-Resource-1.2907: No such file or directory

... more of the same here














RE: mod_perl and apache 2.4

2015-05-08 Thread Jie Gao
mod_perl.so indeed does not have "modperl_io_perlio_restore_stdout", nor 
"modperl_io_perlio_restore_stdin";
it does have "modperl_io_perlio_restore", which does not seem to be defined 
anywhere in the source. Not sure why.

-JIie

From: GLG [i...@3dnetproductions.com]
Sent: Saturday, May 09, 2015 10:55 AM
To: 'mod_perl list'
Subject: RE: mod_perl and apache 2.4

It doesn't matter how I install mod_perl (dynamic or static. Also tried via
Webmin), the end result is always the same. This on FreeBSD 10.1

As soon as I add this line to httpd.conf

LoadModule perl_module libexec/apache22/mod_perl.so

and attempt to restart Apache, I get this...


apachectl restart

Now reading network conf in..  /etc/rc.conf
Now reading network conf in..  /etc/rc.conf
Performing sanity check on apache22 configuration:
httpd: Syntax error on line 107 of /usr/local/etc/apache22/httpd.conf:
Cannot load /usr/local/libexec/apache22/mod_perl.so into server:
/usr/local/libexec/apache22/mod_perl.so: Undefined symbol
"modperl_io_perlio_restore_stdout"
-

I have verified that mod_perl.so is in place. What on Earth is

'Undefined symbol "modperl_io_perlio_restore_stdout"'???


Is this really a mod_perl list?

Thank you,





-Original Message-
From: GLG [mailto:i...@3dnetproductions.com]
Sent: Friday, May 01, 2015 7:12 PM
To: 'mod_perl list'
Subject: RE: mod_perl and apache 2.4

Thanks André. Your info was useful.  I can't say that I solved this yet, but
I did find something strange.

But first, I no longer think there's an issue with libtool. It looks like
there's a fix running.

Secondly, I had to 'pkg install p5-BSD-Resource' dependency manually,
because the automatic installation by mod_perl2 didn't work.

And third, Can't really do 'make test' either because it has to run as a
priviledged user, and then Apache wants a non-priviledged user for the test
suite. Can't have both. So no dice.

But see below for where the real problem seems to be:

Short version:

Notice how gmake is installing mod_perl in ../ ../mach/5.18/ <--- correct
  but later tries to read from ../ ../5.18/mach/ <--- incorrect

Something is backward??? What is the right way to resolve this? I have been
at it way too long. Thanks,

--
Longer version:

[root@x /usr/ports/www/mod_perl2]# make install clean
===>  Staging for ap22-mod_perl2-2.0.8_2,3
===>   ap22-mod_perl2-2.0.8_2,3 depends on package: p5-BSD-Resource>=0 -
found
===>   ap22-mod_perl2-2.0.8_2,3 depends on file: /usr/local/sbin/apxs -
found
===>   ap22-mod_perl2-2.0.8_2,3 depends on file: /usr/local/bin/perl5.18.4 -
found
===>   Generating temporary packing list
gmake[1]: Entering directory '/usr/ports/www/mod_perl2/work/mod_perl-2.0.8'

... more stuff here

Installing
/usr/ports/www/mod_perl2/work/stage/usr/local/lib/perl5/site_perl/mach/5.18/

... more of the same here

 find:
/usr/ports/www/mod_perl2/work/stage/usr/local/lib/perl5/site_perl/5.18/mach/
auto: No such file or directory
> Compressing man pages (compress-man)
===>  Installing for ap22-mod_perl2-2.0.8_2,3
===>  Checking if ap22-mod_perl2 already installed
===>   Registering installation for ap22-mod_perl2-2.0.8_2,3
pkg-static: Unable to access file
/usr/ports/www/mod_perl2/work/stage/usr/local/===>
ap24-mod_perl2-2.0.8_2,3 depends on package: p5-BSD-Resource>=0 - not found:
No such file or directory
pkg-static: Unable to access file
/usr/ports/www/mod_perl2/work/stage/usr/local/===>Verifying install for
p5-BSD-Resource>=0 in /usr/ports/devel/p5-BSD-Resource: No such file or
directory
pkg-static: Unable to access file
/usr/ports/www/mod_perl2/work/stage/usr/local/===>  Installing for
p5-BSD-Resource-1.2907: No such file or directory

... more of the same here












RE: mod_perl and apache 2.4

2015-05-08 Thread GLG
It doesn't matter how I install mod_perl (dynamic or static. Also tried via
Webmin), the end result is always the same. This on FreeBSD 10.1

As soon as I add this line to httpd.conf

LoadModule perl_module libexec/apache22/mod_perl.so

and attempt to restart Apache, I get this...


apachectl restart

Now reading network conf in..  /etc/rc.conf
Now reading network conf in..  /etc/rc.conf
Performing sanity check on apache22 configuration:
httpd: Syntax error on line 107 of /usr/local/etc/apache22/httpd.conf:
Cannot load /usr/local/libexec/apache22/mod_perl.so into server:
/usr/local/libexec/apache22/mod_perl.so: Undefined symbol
"modperl_io_perlio_restore_stdout"
-

I have verified that mod_perl.so is in place. What on Earth is

'Undefined symbol "modperl_io_perlio_restore_stdout"'???


Is this really a mod_perl list?

Thank you,





-Original Message-
From: GLG [mailto:i...@3dnetproductions.com] 
Sent: Friday, May 01, 2015 7:12 PM
To: 'mod_perl list'
Subject: RE: mod_perl and apache 2.4

Thanks André. Your info was useful.  I can't say that I solved this yet, but
I did find something strange.

But first, I no longer think there's an issue with libtool. It looks like
there's a fix running.

Secondly, I had to 'pkg install p5-BSD-Resource' dependency manually,
because the automatic installation by mod_perl2 didn't work. 

And third, Can't really do 'make test' either because it has to run as a
priviledged user, and then Apache wants a non-priviledged user for the test
suite. Can't have both. So no dice. 

But see below for where the real problem seems to be: 

Short version:

Notice how gmake is installing mod_perl in ../ ../mach/5.18/ <--- correct
  but later tries to read from ../ ../5.18/mach/ <--- incorrect

Something is backward??? What is the right way to resolve this? I have been
at it way too long. Thanks,

-- 
Longer version:

[root@x /usr/ports/www/mod_perl2]# make install clean
===>  Staging for ap22-mod_perl2-2.0.8_2,3
===>   ap22-mod_perl2-2.0.8_2,3 depends on package: p5-BSD-Resource>=0 -
found
===>   ap22-mod_perl2-2.0.8_2,3 depends on file: /usr/local/sbin/apxs -
found
===>   ap22-mod_perl2-2.0.8_2,3 depends on file: /usr/local/bin/perl5.18.4 -
found
===>   Generating temporary packing list
gmake[1]: Entering directory '/usr/ports/www/mod_perl2/work/mod_perl-2.0.8'

... more stuff here

Installing
/usr/ports/www/mod_perl2/work/stage/usr/local/lib/perl5/site_perl/mach/5.18/

... more of the same here

 find:
/usr/ports/www/mod_perl2/work/stage/usr/local/lib/perl5/site_perl/5.18/mach/
auto: No such file or directory
> Compressing man pages (compress-man)
===>  Installing for ap22-mod_perl2-2.0.8_2,3
===>  Checking if ap22-mod_perl2 already installed
===>   Registering installation for ap22-mod_perl2-2.0.8_2,3
pkg-static: Unable to access file
/usr/ports/www/mod_perl2/work/stage/usr/local/===>
ap24-mod_perl2-2.0.8_2,3 depends on package: p5-BSD-Resource>=0 - not found:
No such file or directory
pkg-static: Unable to access file
/usr/ports/www/mod_perl2/work/stage/usr/local/===>Verifying install for
p5-BSD-Resource>=0 in /usr/ports/devel/p5-BSD-Resource: No such file or
directory
pkg-static: Unable to access file
/usr/ports/www/mod_perl2/work/stage/usr/local/===>  Installing for
p5-BSD-Resource-1.2907: No such file or directory

... more of the same here












RE: mod_perl and apache 2.4

2015-05-02 Thread GLG
Thanks André. Your info was useful.  I can't say that I solved this yet, but
I did find something strange.

But first, I no longer think there's an issue with libtool. It looks like
there's a fix running.

Secondly, I had to 'pkg install p5-BSD-Resource' dependency manually,
because the automatic installation by mod_perl2 didn't work. 

And third, Can't really do 'make test' either because it has to run as a
priviledged user, and then Apache wants a non-priviledged user for the test
suite. Can't have both. So no dice. 

But see below for where the real problem seems to be: 

Short version:

Notice how gmake is installing mod_perl in ../ ../mach/5.18/ <--- correct
  but later tries to read from ../ ../5.18/mach/ <--- incorrect

Something is backward??? What is the right way to resolve this? I have been
at it way too long. Thanks,

-- 
Longer version:

[root@x /usr/ports/www/mod_perl2]# make install clean
===>  Staging for ap22-mod_perl2-2.0.8_2,3
===>   ap22-mod_perl2-2.0.8_2,3 depends on package: p5-BSD-Resource>=0 -
found
===>   ap22-mod_perl2-2.0.8_2,3 depends on file: /usr/local/sbin/apxs -
found
===>   ap22-mod_perl2-2.0.8_2,3 depends on file: /usr/local/bin/perl5.18.4 -
found
===>   Generating temporary packing list
gmake[1]: Entering directory '/usr/ports/www/mod_perl2/work/mod_perl-2.0.8'

... more stuff here

Installing
/usr/ports/www/mod_perl2/work/stage/usr/local/lib/perl5/site_perl/mach/5.18/

... more of the same here

 find:
/usr/ports/www/mod_perl2/work/stage/usr/local/lib/perl5/site_perl/5.18/mach/
auto: No such file or directory
> Compressing man pages (compress-man)
===>  Installing for ap22-mod_perl2-2.0.8_2,3
===>  Checking if ap22-mod_perl2 already installed
===>   Registering installation for ap22-mod_perl2-2.0.8_2,3
pkg-static: Unable to access file
/usr/ports/www/mod_perl2/work/stage/usr/local/===>
ap24-mod_perl2-2.0.8_2,3 depends on package: p5-BSD-Resource>=0 - not found:
No such file or directory
pkg-static: Unable to access file
/usr/ports/www/mod_perl2/work/stage/usr/local/===>Verifying install for
p5-BSD-Resource>=0 in /usr/ports/devel/p5-BSD-Resource: No such file or
directory
pkg-static: Unable to access file
/usr/ports/www/mod_perl2/work/stage/usr/local/===>  Installing for
p5-BSD-Resource-1.2907: No such file or directory

... more of the same here










Re: mod_perl and apache 2.4

2015-04-30 Thread André Warnier

Hi.

I honestly don't know if this will help you, because I have no idea about 
FreeBSD.
But what I can tell you, is that I am running Apache 2.2 and mod_perl 2 succesfully on 
multiple servers, under various versions of Windows and under various versions of Linux, 
without any problems whatsoever.
So it looks at least that if you are having a problem, it should be something specific to 
the FreeBSD environment that you are using, and not about the Apache 2.2 / mod_perl 2 
combination in general.



GLG wrote:

Thanks everyone for earlier replies,

I now have Apache22 installed, but I am unable to start it with mod_perl2.


From my research, I am being led to believe that my mod_perl2 installation

may be faulty, due to the fact that Libtool needs to be patched, as it
incorrectly identifies FreeBSD 10 as FreeBSD 1.x, and that can be the source
of my problems (Undefined symbol "modperl_io_perlio_restore_stdout").

This information is several months old however. Does anyone know if the
above is fixed with Libtool 2.4.6? Can anyone here successfully load
mod_perl.so into apache22, or am I beating a dead horse?  


Thanks again,
GLG


* GLG  wrote:


Date: Thu, 16 Apr 2015 10:22:23 -0400
From: GLG 
To: modperl@perl.apache.org
Subject: mod_perl and apache 2.4
X-Mailer: Microsoft Office Outlook 12.0

Hello List, 


I am new here. In the process of moving several websites to a new server
running FreeBSD 10 and Apache 2.4. This needs to happen quickly. 


Unless I am mistaken, it would appear that there is currently no solution

as

far as running Perl with Apache 2.4 via mod_perl 2.0.8 (or is there a
version 2.0.9 out?). 


If indeed that is the case, then I must downgrade to a previous version of
Apache. But before I do, I'd like confirmation that my assumptions are
correct. Hopefully someone can answer this or suggest a better

alternative.

I've tried applying a previously released patch, and I've also tried

faking
it as described here. 


http://lists.freebsd.org/pipermail/freebsd-ports/2014-August/094405.html

But in both cases, mod_perl will not build. Please see partial output

below.


Thank you,
Gina


/usr/ports/www/mod_perl2 # make build
===>   ap24-mod_perl2-2.0.8_2,3 depends on package: p5-BSD-Resource>=0 -

not

found
===>Verifying install for p5-BSD-Resource>=0 in
/usr/ports/devel/p5-BSD-Resource
===>  Installing for p5-BSD-Resource-1.2907
===>   p5-BSD-Resource-1.2907 depends on file: /usr/local/bin/perl5.18.4 -
found
===>  Checking if p5-BSD-Resource already installed
===>   Registering installation for p5-BSD-Resource-1.2907 as automatic
pkg-static: Unable to access file


/usr/ports/devel/p5-BSD-Resource/work/stage/usr/local/lib/perl5/site_perl/5.

18/mach/BSD/Resource.pm: No such file or directory
pkg-static: Unable to access file


/usr/ports/devel/p5-BSD-Resource/work/stage/usr/local/lib/perl5/site_perl/5.

18/mach/auto/BSD/Resource/.packlist: No such file or directory
pkg-static: Unable to access file


/usr/ports/devel/p5-BSD-Resource/work/stage/usr/local/lib/perl5/site_perl/5.

18/mach/auto/BSD/Resource/Resource.so: No such file or directory
pkg-static: Unable to access file


/usr/ports/devel/p5-BSD-Resource/work/stage/usr/local/lib/perl5/site_perl/5.

18/mach/auto/BSD/Resource/_find_prio.al: No such file or directory



__
 * * Interactive Multimedia - Internet Management * *
  * * Virtual Reality  -  Application Programming  * *
   * 3D Net Productions 3dnetproductions.com *










RE: mod_perl and apache 2.4

2015-04-30 Thread GLG
Thanks everyone for earlier replies,

I now have Apache22 installed, but I am unable to start it with mod_perl2.

>From my research, I am being led to believe that my mod_perl2 installation
may be faulty, due to the fact that Libtool needs to be patched, as it
incorrectly identifies FreeBSD 10 as FreeBSD 1.x, and that can be the source
of my problems (Undefined symbol "modperl_io_perlio_restore_stdout").

This information is several months old however. Does anyone know if the
above is fixed with Libtool 2.4.6? Can anyone here successfully load
mod_perl.so into apache22, or am I beating a dead horse?  

Thanks again,
GLG


* GLG  wrote:

> Date: Thu, 16 Apr 2015 10:22:23 -0400
> From: GLG 
> To: modperl@perl.apache.org
> Subject: mod_perl and apache 2.4
> X-Mailer: Microsoft Office Outlook 12.0
> 
> Hello List, 
> 
> I am new here. In the process of moving several websites to a new server
> running FreeBSD 10 and Apache 2.4. This needs to happen quickly. 
> 
> Unless I am mistaken, it would appear that there is currently no solution
as
> far as running Perl with Apache 2.4 via mod_perl 2.0.8 (or is there a
> version 2.0.9 out?). 
> 
> If indeed that is the case, then I must downgrade to a previous version of
> Apache. But before I do, I'd like confirmation that my assumptions are
> correct. Hopefully someone can answer this or suggest a better
alternative.
> 
> I've tried applying a previously released patch, and I've also tried
faking
> it as described here. 
> 
> http://lists.freebsd.org/pipermail/freebsd-ports/2014-August/094405.html
> 
> But in both cases, mod_perl will not build. Please see partial output
below.
> 
> 
> Thank you,
> Gina
> 
> 
> /usr/ports/www/mod_perl2 # make build
> ===>   ap24-mod_perl2-2.0.8_2,3 depends on package: p5-BSD-Resource>=0 -
not
> found
> ===>Verifying install for p5-BSD-Resource>=0 in
> /usr/ports/devel/p5-BSD-Resource
> ===>  Installing for p5-BSD-Resource-1.2907
> ===>   p5-BSD-Resource-1.2907 depends on file: /usr/local/bin/perl5.18.4 -
> found
> ===>  Checking if p5-BSD-Resource already installed
> ===>   Registering installation for p5-BSD-Resource-1.2907 as automatic
> pkg-static: Unable to access file
>
/usr/ports/devel/p5-BSD-Resource/work/stage/usr/local/lib/perl5/site_perl/5.
> 18/mach/BSD/Resource.pm: No such file or directory
> pkg-static: Unable to access file
>
/usr/ports/devel/p5-BSD-Resource/work/stage/usr/local/lib/perl5/site_perl/5.
> 18/mach/auto/BSD/Resource/.packlist: No such file or directory
> pkg-static: Unable to access file
>
/usr/ports/devel/p5-BSD-Resource/work/stage/usr/local/lib/perl5/site_perl/5.
> 18/mach/auto/BSD/Resource/Resource.so: No such file or directory
> pkg-static: Unable to access file
>
/usr/ports/devel/p5-BSD-Resource/work/stage/usr/local/lib/perl5/site_perl/5.
> 18/mach/auto/BSD/Resource/_find_prio.al: No such file or directory
> 
> 
> 
> __
>  * * Interactive Multimedia - Internet Management * *
>   * * Virtual Reality  -  Application Programming  * *
>* 3D Net Productions 3dnetproductions.com *
> 
> 
> 



Re: mod_perl and apache 2.4

2015-04-16 Thread Jie Gao
Redhat Enterprise Linux 7 does not seem to have mod_perl in the core 
distribution channel.

Regards,

Jie 

* GLG  wrote:

> Date: Thu, 16 Apr 2015 10:22:23 -0400
> From: GLG 
> To: modperl@perl.apache.org
> Subject: mod_perl and apache 2.4
> X-Mailer: Microsoft Office Outlook 12.0
> 
> Hello List, 
> 
> I am new here. In the process of moving several websites to a new server
> running FreeBSD 10 and Apache 2.4. This needs to happen quickly. 
> 
> Unless I am mistaken, it would appear that there is currently no solution as
> far as running Perl with Apache 2.4 via mod_perl 2.0.8 (or is there a
> version 2.0.9 out?). 
> 
> If indeed that is the case, then I must downgrade to a previous version of
> Apache. But before I do, I'd like confirmation that my assumptions are
> correct. Hopefully someone can answer this or suggest a better alternative.
> 
> I've tried applying a previously released patch, and I've also tried faking
> it as described here. 
> 
> http://lists.freebsd.org/pipermail/freebsd-ports/2014-August/094405.html
> 
> But in both cases, mod_perl will not build. Please see partial output below.
> 
> 
> Thank you,
> Gina
> 
> 
> /usr/ports/www/mod_perl2 # make build
> ===>   ap24-mod_perl2-2.0.8_2,3 depends on package: p5-BSD-Resource>=0 - not
> found
> ===>Verifying install for p5-BSD-Resource>=0 in
> /usr/ports/devel/p5-BSD-Resource
> ===>  Installing for p5-BSD-Resource-1.2907
> ===>   p5-BSD-Resource-1.2907 depends on file: /usr/local/bin/perl5.18.4 -
> found
> ===>  Checking if p5-BSD-Resource already installed
> ===>   Registering installation for p5-BSD-Resource-1.2907 as automatic
> pkg-static: Unable to access file
> /usr/ports/devel/p5-BSD-Resource/work/stage/usr/local/lib/perl5/site_perl/5.
> 18/mach/BSD/Resource.pm: No such file or directory
> pkg-static: Unable to access file
> /usr/ports/devel/p5-BSD-Resource/work/stage/usr/local/lib/perl5/site_perl/5.
> 18/mach/auto/BSD/Resource/.packlist: No such file or directory
> pkg-static: Unable to access file
> /usr/ports/devel/p5-BSD-Resource/work/stage/usr/local/lib/perl5/site_perl/5.
> 18/mach/auto/BSD/Resource/Resource.so: No such file or directory
> pkg-static: Unable to access file
> /usr/ports/devel/p5-BSD-Resource/work/stage/usr/local/lib/perl5/site_perl/5.
> 18/mach/auto/BSD/Resource/_find_prio.al: No such file or directory
> 
> 
> 
> __
>  * * Interactive Multimedia - Internet Management * *
>   * * Virtual Reality  -  Application Programming  * *
>* 3D Net Productions 3dnetproductions.com *
> 
> 
> 


Re: mod_perl and apache 2.4

2015-04-16 Thread Lathan Bidwell
I know it doesn't help you, but Debian has been shipping with apache 2.4
and mod_perl working since last year.

Of course with Debian, they compile it and stuff it into a package, so we
avoid compilation problems.


On Thu, Apr 16, 2015 at 10:27 AM, Kevin A. McGrail 
wrote:

> On 4/16/2015 10:22 AM, GLG wrote:
>
>> Unless I am mistaken, it would appear that there is currently no solution
>> as
>> far as running Perl with Apache 2.4 via mod_perl 2.0.8 (or is there a
>> version 2.0.9 out?).
>>
>
> That is currently the case.  I believe there is an SVN version that will
> build and work but unless you have a driving need for a feature in 2.4, 2.2
> is your better bet right now.
>
> Though I noticed last week CentOS 7 shipped with 2.4 and no mod_perl so
> hopefully we can get that mod_perl 2.4 compatible release soon and they'll
> retrofit it for 2.4 for those users who rely on package distros.
>
> Regards,
> KAM
>
>
>


Re: mod_perl and apache 2.4

2015-04-16 Thread Kevin A. McGrail

On 4/16/2015 10:22 AM, GLG wrote:

Unless I am mistaken, it would appear that there is currently no solution as
far as running Perl with Apache 2.4 via mod_perl 2.0.8 (or is there a
version 2.0.9 out?).


That is currently the case.  I believe there is an SVN version that will 
build and work but unless you have a driving need for a feature in 2.4, 
2.2 is your better bet right now.


Though I noticed last week CentOS 7 shipped with 2.4 and no mod_perl so 
hopefully we can get that mod_perl 2.4 compatible release soon and 
they'll retrofit it for 2.4 for those users who rely on package distros.


Regards,
KAM