Haroon Rafique wrote:
On Today at 9:46am, SB=>Stas Bekman <[EMAIL PROTECTED]> wrote:

SB> SB> Actually it was Sunday (future!) and it's winter (past?) here in
SB> Melbourne ;)


I figured we were a few continents away.

SB> SB> Then, if it's indeed your globally installed Apache::Filter and not
SB> the local one, dump @INC (in the same place) to see whether the global
SB> path comes before the local one.
SB>


Apache::Filter is indeed the globally installed one as evidenced by:

Apache::Filter /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Apache2/Apache/Filter.pm at /home/haroon/src/build/modperl-2.0/t/filter/TestFilter/in_init_basic.pm line 15.

Here's what @INC looks like:

/home/haroon/src/build/modperl-2.0/Apache-Test/lib
/home/haroon/src/build/modperl-2.0/lib
/home/haroon/src/build/modperl-2.0/t/response
/home/haroon/src/build/modperl-2.0/t/protocol
/home/haroon/src/build/modperl-2.0/t/preconnection
/home/haroon/src/build/modperl-2.0/t/hooks
/home/haroon/src/build/modperl-2.0/t/filter
/home/haroon/src/build/modperl-2.0/t
/home/haroon/src/build/modperl-2.0/t/htdocs/testdirective/perlmodule-vh
/home/haroon/src/build/modperl-2.0/t/htdocs/testdirective/main
/home/haroon/src/build/modperl-2.0/t/
/home/haroon/src/build/modperl-2.0/t/lib/perl
/home/haroon/src/build/modperl-2.0/blib/lib
/home/haroon/src/build/modperl-2.0/blib/arch
Apache-Test/lib
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Apache2
/usr/lib/perl5/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl at /home/haroon/src/build/modperl-2.0/t/filter/TestFilter/in_init_basic.pm line 16.


I used the following diff to gather this diagnostic output:
===================================================================
--- t/filter/TestFilter/in_init_basic.pm 9 May 2003 03:33:37 -0000 1.2
+++ t/filter/TestFilter/in_init_basic.pm 10 Jun 2003 14:46:33 -0000
@@ -11,6 +11,11 @@
use base qw(Apache::Filter);
+BEGIN {
+ warn "Apache::Filter $INC{'Apache/Filter.pm'}";
+ warn join "\n", @INC;
+}
+
use Apache::Const -compile => qw(OK M_POST);
use constant READ_SIZE => 1024;



What's next to try?

That now explains everything:


> *** using lib/Apache/BuildConfig.pm
> *** Makefile.PL options:
>   MP_AP_PREFIX   => /servers/httpd-2.0.44-pl
>   MP_COMPAT_1X   => 1
>   MP_GENERATE_XS => 1
>   MP_LIBNAME     => mod_perl
>   MP_USE_DSO     => 1
>   MP_USE_STATIC  => 1

previously you have built mod_perl with MP_INST_APACHE2=1, this time you did without, so the Apache2/ from the old install was getting into @INC first. Hence the local blib was going after the global .../i386-linux-thread-multi/Apache2/.

How do we prevent this problem from re-curring is a question. Perhaps we should autogenerate Apache2.pm and make it:

package Apache2;

1;

in case, MP_INST_APACHE2=1 wasn't used.



__________________________________________________________________
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



Reply via email to