perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: [MP2+Embperl(cvs)] Strange mod_perl 'make test' glitch
Date Tue, 06 Apr 2004 16:27:56 GMT
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-multi/auto/Embperl/Embperl.so

> into 
> server: /home/test/perl/5.8.3-apache2.1/lib/site_perl/5.8.3/i686-linux-thread-multi/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-multi/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-multi/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?

> 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-multi/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.

__________________________________________________
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

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message