On Tuesday 06 April 2004 06:27 am, Stas Bekman wrote: > Beau E. Cox wrote: > > -------------8<---------- Start Bug Report ------------8<---------- > > 1. Problem Description: > > > > When I do a modperl 'make test' and have Embperl enabled, the > > test does not start: > > > > console log: > > ... > > waiting 120 seconds for server to start: .Syntax error on line 48 > > of /home/test/httpd/2.1/src/modperl2/modperl-2.0/t/conf/httpd.conf: > > Cannot > > load > > /home/test/perl/5.8.3-apache2.1/lib/site_perl/5.8.3/i686-linux-thread-mul > >ti/auto/Embperl/Embperl.so into > > server: > > /home/test/perl/5.8.3-apache2.1/lib/site_perl/5.8.3/i686-linux-thread-mul > >ti/auto/Embperl/Embperl.so: undefined symbol: Perl_gv_stashpv > > [ error] > > 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 > > ... > > > > Perl_gv_stashpv - give me a break! Of course that's there. > > > > my httpd.conf > > ... > > LoadModule perl_module /home/test/usr/apache2.1/lib/apache/mod_perl.so > > LoadModule apreq_module /home/test/usr/apache2.1/lib/apache/mod_apreq.so > > LoadModule cgid_module /home/test/usr/apache2.1/lib/apache/mod_cgid.so > > LoadModule embperl_module > > "/home/test/perl/5.8.3-apache2.1/lib/site_perl/5.8.3/i686-linux-thread-mu > >lti/auto/Embperl/Embperl.so" (the above is really one line) > > ... > > > > t/conf/httpd.conf: > > > > <IfModule !Embperl.c> > > LoadModule embperl_module > > "/home/test/perl/5.8.3-apache2.1/lib/site_perl/5.8.3/i686-linux-thread-mu > >lti/auto/Embperl/Embperl.so" </IfModule> > > > > <IfModule !mod_perl.c> > > LoadModule perl_module > > "/home/test/httpd/2.1/src/modperl2/modperl-2.0/src/modules/perl/mod_perl. > >so" </IfModule> > > ... > > My guess is that these two entries need to be swapped, to make mod_perl.so > loaded first. I've never used embperl, so I can't tell why if it's used as > a standalone Apache module it doesn't link against libperl.so. Or does it > work only when mod_perl is loaded?
Swaping the modules doesn't help. Investigating further. > > > NOW, if I skip the test and install modperl, the server WORKS. > > > > BUT, using a continuation line in my httpd.conf as such: > > ... > > LoadModule embperl_module \ > > "/home/test/perl/5.8.3-apache2.1/lib/site_perl/5.8.3/i686-linux-thread-mu > >lti/auto/Embperl/Embperl.so" ... > > > > 'make test' does NOT try to include Embperl.so in t/conf/httpd.conf, and > > the tests run FINE. > > > > I guess Apache::Test cannot parse httpd.conf continuation syntax. > > Probably. Patches to fix that are welcome, Beau. But if I fix that, I negate my current work-around ;) Aloha => Beau; -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html