On Saturday at 9:22am, SB=>Stas Bekman <[EMAIL PROTECTED]> wrote:
SB> I think the issue is very simple: @INC had system libraries dirs
SB> before the freshly build ones, so dumping @INC contents prior to libs
SB> loading should aid the debug. But please use the latest cvs, since
SB> I've messed with @INC a bit recently.
SB> SB> In parallel, we are planning to verify .so objects that they were
SB> created by the same mod_perl.so to avoid completely this kind of
SB> problems. Well it won't prevent the pickup of wrong libraries, it'll
SB> just scream aloud when this will happen. So your debug is still very
SB> important.
SB>
Seeing that you were answering emails even on a Saturday, I feel guilty about taking that out of town trip yesterday. Oh well! I think we should be able to enjoy the little bit of summer that we get here in Canada to the fullest.
Actually it was Sunday (future!) and it's winter (past?) here in Melbourne ;)
Now onto serious stuff. /usr/bin/perl here is the system-wide perl install that came bundled with Redhat.
/usr/bin/perl -MApache2 -Mmod_perl -le 'print mod_perl->VERSION' 1.9908
I posted t/REPORT output in the beginning of the thread and can repost upon request.
no need to
I did a cvs up, and issued:
* /usr/bin/perl Makefile.PL MP_AP_PREFIX=/servers/httpd-2.0.44-pl * make
* make test
and was greeted by the now familiar output (same as originally reported)
/usr/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -clean
*** setting ulimit to allow core files
ulimit -c unlimited; t/TEST -clean
sh: line 1: ulimit: core file size: cannot modify limit: Operation not permitted
APACHE_USER= APACHE_GROUP= APACHE_PORT= APACHE= APXS= \
/usr/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -verbose=0 *** setting ulimit to allow core files
ulimit -c unlimited; t/TEST -verbose=0
sh: line 1: ulimit: core file size: cannot modify limit: Operation not permitted
/servers/httpd-2.0.44-pl/bin/httpd -d /home/haroon/src/build/modperl-2.0/t -f /home/haroon/src/build/modperl-2.0/t/conf/httpd.conf -DAPACHE2 -DPERL_USEITHREADS
using Apache/2.0.44 (prefork MPM)
waiting for server to start: ..[Mon Jun 09 09:38:20 2003] [info] 22 Apache:: modules loaded
[Mon Jun 09 09:38:20 2003] [info] 5 APR:: modules loaded
[Mon Jun 09 09:38:20 2003] [info] base server + 9 vhosts ready to run tests
[Mon Jun 09 09:38:20 2003] [error] Invalid CODE attribute: TestFilter::in_init_basic at /home/haroon/src/build/modperl-2.0/t/filter/TestFilter/in_init_basic.pm line 30
BEGIN failed--compilation aborted at /home/haroon/src/build/modperl-2.0/t/filter/TestFilter/in_init_basic.pm line 30.
Compilation failed in require at (eval 35) line 3.
[Mon Jun 09 09:38:20 2003] [error] Can't load Perl module TestFilter::in_init_basic for server localhost.localdomain:8529, exiting...
!!! server has died with status 255 (t/logs/error_log wasn't created, start the server in the debug mode)
make: *** [run_tests] Error 143
Well, nothing has changed, hasn't it? Now try to figure out which .so gets loaded and why it is not the locally built one. The module in question is Apache::Filter
For example change TestFilter/in_init_basic.pm to dump the location of the Apache::Filter library.
Index: t/filter/TestFilter/in_init_basic.pm =================================================================== RCS file: /home/cvs/modperl-2.0/t/filter/TestFilter/in_init_basic.pm,v retrieving revision 1.2 diff -u -r1.2 in_init_basic.pm --- t/filter/TestFilter/in_init_basic.pm 9 May 2003 03:33:37 -0000 1.2 +++ t/filter/TestFilter/in_init_basic.pm 9 Jun 2003 23:45:58 -0000 @@ -11,6 +11,8 @@
use base qw(Apache::Filter);
+BEGIN { warn "Apache::Filter $INC{'Apache/Filter.pm'}" } + use Apache::Const -compile => qw(OK M_POST);
use constant READ_SIZE => 1024;
Then, if it's indeed your globally installed Apache::Filter and not the local one, dump @INC (in the same place) to see whether the global path comes before the local one.
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com