httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject config and error handling issues
Date Thu, 25 Mar 2004 01:08:23 GMT
I've two issue with the current status. I have lots of httpd builds and apreq 
test suite always finds the latest build which could be totally incorrect 
(e.g. it loads mod_perl.so built with a different perl).


1) So first, when this happens, I get all kind of weird error messages (and 
all tests fail):

For example when running the cookie test I get lots of these:

[Tue Mar 23 10:04:38 2004] [error] [client 127.0.0.1] Can't use an undefined 
value as a HASH reference at 
/home/stas/apache.org/httpd-apreq-2/glue/perl/blib/lib/Apache2/Apache/Cookie.pm 
line 78.

[Tue Mar 23 10:04:38 2004] [error] [client 127.0.0.1] Can't use string
("apache") as a HASH ref while "strict refs" in use at
/home/stas/apache.org/httpd-apreq-2/glue/perl/blib/lib/Apache2/Apache/Cookie.pm
line 78

which comes from:

     return wantarray ? %{(scalar $jar->cookie) || {}} : $jar->cookie;

so $jar->cookie returns either undef or 'apache' instead of a hash
ref. This is probably a problem in the core and should probably be
handled on the C size, with croak.

2) Second the misconfiguration happens because A-T test doesn't know which 
module/httpd it needs to configure and it picks the default. A-T provides the 
-httpd flag to specify a specific httpd, which is needed for static build 
(which will come hopefully soon), for now with DSO mod_perl A-T allows you to 
specify the path to the modperl shared object via -libmodperl

So I can fix the problem by running:

cd glue/perl
t/TEST -libmodperl /home/stas/httpd/worker/modules/mod_perl-5.8.3-ithread.so

if I'm testing prel-5.8.3-ithread. but it's not good, since 'make test' fails. 
normally you'd pass this option to Makefile.PL, which runs filter_args, and 
glue/perl/Makefile.PL runs it. But the top level Makefile.PL doesn't pass 
those options. e.g. if I run:

/home/stas/perl/5.8.3-ithread/bin/perl Makefile.PL \
CCFLAGS='-Werror -O0 -g'  \
--with-apache2-apxs=/home/stas/httpd/worker/bin/apxs \
-libmodperl /home/stas/httpd/worker/modules/mod_perl-5.8.3-ithread.so

I don't get -libmodperl option through. It shouldn't look specifically for
-libmodperl, but just pass any unknown options further to the next Makefile.PL 
(because there are other options as well). I'm not sure how to do that though.

to give you an idea what kind of environment I run in, I have:

httpd/prefork-2.0.46/modules/mod_perl.so
httpd/prefork-all-shared/modules/mod_perl.so
httpd/prefork/modules1/mod_perl.so
httpd/prefork/modules/mod_perl-5.6.1-ithread.so
httpd/prefork/modules/mod_perl-5.6.1.so
httpd/prefork/modules/mod_perl-5.6.2-ithread.so
httpd/prefork/modules/mod_perl-5.6.2-perlio.so
httpd/prefork/modules/mod_perl-5.6.2.so
httpd/prefork/modules/mod_perl-5.8.0-ithread.so
httpd/prefork/modules/mod_perl-5.8.0.so
httpd/prefork/modules/mod_perl-5.8.1-ithread-nouseshrplib.so
httpd/prefork/modules/mod_perl-5.8.1-ithread.so
httpd/prefork/modules/mod_perl-5.8.1-nouseperlio.so
httpd/prefork/modules/mod_perl-5.8.1.so
httpd/prefork/modules/mod_perl-5.8.2-ithread-nouseshrplib.so
httpd/prefork/modules/mod_perl-5.8.2-ithread.so
httpd/prefork/modules/mod_perl-5.8.2-nouseperlio.so
httpd/prefork/modules/mod_perl-5.8.2.so
httpd/prefork/modules/mod_perl-5.8.3-ithread-nouseshrplib.so
httpd/prefork/modules/mod_perl-5.8.3-ithread.so
httpd/prefork/modules/mod_perl-5.8.3-nouseperlio.so
httpd/prefork/modules/mod_perl-5.8.3.so
httpd/prefork/modules/mod_perl-5.8.4-ithread-nouseshrplib.so
httpd/prefork/modules/mod_perl-5.8.4-ithread.so
httpd/prefork/modules/mod_perl-5.8.4-nouseperlio.so
httpd/prefork/modules/mod_perl-5.8.4.so
httpd/prefork/modules/mod_perl-blead-ithread.so
httpd/prefork/modules/mod_perl-blead.so
httpd/prefork/modules/mod_perl.so
httpd/worker/modules/mod_perl-5.8.0-ithread.so
httpd/worker/modules/mod_perl-5.8.1-ithread-nouseshrplib.so
httpd/worker/modules/mod_perl-5.8.1-ithread.so
httpd/worker/modules/mod_perl-5.8.2-ithread-nouseshrplib.so
httpd/worker/modules/mod_perl-5.8.2-ithread.so
httpd/worker/modules/mod_perl-5.8.3-ithread-nouseshrplib.so
httpd/worker/modules/mod_perl-5.8.3-ithread.so
httpd/worker/modules/mod_perl-5.8.4-ithread-nouseshrplib.so
httpd/worker/modules/mod_perl-5.8.4-ithread.so
httpd/worker/modules/mod_perl-blead-ithread.so
httpd/worker/modules/mod_perl.so
httpd/1.3-dynamic/libexec/libperl-5.005_03-noshrplib.so
httpd/1.3-dynamic/libexec/libperl-5.6.0-ithread.so
httpd/1.3-dynamic/libexec/libperl-5.6.2-ithread.so
httpd/1.3-dynamic/libexec/libperl-5.6.2-perlio.so
httpd/1.3-dynamic/libexec/libperl-5.6.2.so
httpd/1.3-dynamic/libexec/libperl-5.8.0-ithread.so
httpd/1.3-dynamic/libexec/libperl-5.8.0.so
httpd/1.3-dynamic/libexec/libperl-5.8.1-ithread.so
httpd/1.3-dynamic/libexec/libperl-5.8.1.so
httpd/1.3-dynamic/libexec/libperl-5.8.2-ithread.so
httpd/1.3-dynamic/libexec/libperl-5.8.2.so
httpd/1.3-dynamic/libexec/libperl-5.8.3-ithread.so
httpd/1.3-dynamic/libexec/libperl-5.8.3.so
httpd/1.3-dynamic/libexec/libperl-5.8.4-ithread.so
httpd/1.3-dynamic/libexec/libperl-5.8.4.so
httpd/1.3-dynamic/libexec/libperl-blead-ithread.so
httpd/1.3-dynamic/libexec/libperl-blead.so
httpd/1.3-dynamic/libexec/libperl.so
httpd/1.3-static/bin/httpd-5.005_03-noshrplib
httpd/1.3-static/bin/httpd-5.6.0
httpd/1.3-static/bin/httpd-5.6.0-ithread
httpd/1.3-static/bin/httpd-5.6.1
httpd/1.3-static/bin/httpd-5.6.1-ithread
httpd/1.3-static/bin/httpd-5.6.2
httpd/1.3-static/bin/httpd-5.6.2-ithread
httpd/1.3-static/bin/httpd-5.6.2-perlio
httpd/1.3-static/bin/httpd-5.8.0
httpd/1.3-static/bin/httpd-5.8.0-ithread
httpd/1.3-static/bin/httpd-5.8.1
httpd/1.3-static/bin/httpd-5.8.1-ithread
httpd/1.3-static/bin/httpd-5.8.2
httpd/1.3-static/bin/httpd-5.8.2-ithread
httpd/1.3-static/bin/httpd-5.8.3
httpd/1.3-static/bin/httpd-5.8.3-ithread
httpd/1.3-static/bin/httpd-5.8.4
httpd/1.3-static/bin/httpd-5.8.4-ithread
httpd/1.3-static/bin/httpd-blead
httpd/1.3-static/bin/httpd-blead-ithread




__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Mime
View raw message