perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: [mp2.0] make test fails; mod_perl also does not work
Date Mon, 26 May 2003 08:06:47 GMT
Olaf Bohlen wrote:
> Stas Bekman <stas@stason.org> writes:
> 
> Hi,
> 
> 
>>You have built mod_perl with /usr/local/bin/perl but start mod_perl
>>with /usr/bin/perl. Is that the same perl executable (symlinked)?
> 
> 
> It's not symlinked, but it is the same executable:
> -rwxr-xr-x   3 root     other      16384 May 21 21:35 /usr/bin/perl
> -rwxr-xr-x   3 root     other      16384 May 21 21:35 /usr/local/bin/perl

So you probably have a hard link.

>>if not, I'm not sure why the wrong perl was picked, but what happens if you run:
>>
>>/usr/local/bin/perl t/TEST

 > Can't load 
'/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/Apache2/auto/ModPerl/Const/Const.so' 
 > for module ModPerl::Const: ld.so.1: /usr/bin/perl: fatal: relocation error: 
file 
/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/Apache2/auto/ModPerl/Const/Const.so: 
symbol Perl_sv_2pv: referenced symbol not found at 
/usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
 >  at 
/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/Apache2/Apache/Const.pm line 3

it should have been resolved when mod_perl.so was loaded.

You can check:

% nm /usr/local/lib/perl5/5.8.0/sun4-solaris/CORE/libperl.so | grep Perl_sv_2pv

should show this symbol. And mod_perl.so should depend on that libperl.so:

% ldd src/modules/perl/mod_perl.so

should show the path to libperl.so above.

If it's all in place and it doesn't work, that means that sun4-solaris may 
needs different linking options that are used. I'd check how mod_perl 1.0 DSO 
is built on the same platform and compare if the linking options differ.

__________________________________________________________________
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: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message