Re: undefined symbol: PL_stack_base

2003-06-11 Thread NM Lists
On Wed, 2003-06-11 at 04:34, Stas Bekman wrote:

> Are you sure that you compiled with the same perl that gets loaded?
> 
> ldd /etc/apache/extramodules/libperl.so
> 
> will show you which libperl.so (this time perl's) it's linked against. Then 
> you check that libperl.so to see if it has the symbol defined:
> 
> nm /path/to/CORE/libperl.so | grep PL_stack_base
> 
> My guess is that you may have more than one perls on your machine and mod_perl 
> picks the wrong library at the startup.

I just fixed the problem, it's because I had perl compiled with threads
enabled. I think there's a bug in Gentoo WRT this. Supposedly this bug
happens when perl and libperl are compiled with and without threads
resp.



Re: undefined symbol: PL_stack_base

2003-06-10 Thread Stas Bekman
Nicolas MONNET wrote:
Hi, I can't seem to find what's going wrong, I'm trying to run mod_perl
on Gentoo, but I get this:
# /etc/init.d/apache start
 * Starting apache...
Syntax error on line 58 of /etc/apache/conf/apache.conf:
Cannot load /etc/apache/extramodules/libperl.so into server:
/etc/apache/extramodules/libperl.so: undefined symbol:
PL_stack_base   [ !! ] 
Are you sure that you compiled with the same perl that gets loaded?

ldd /etc/apache/extramodules/libperl.so

will show you which libperl.so (this time perl's) it's linked against. Then 
you check that libperl.so to see if it has the symbol defined:

nm /path/to/CORE/libperl.so | grep PL_stack_base

My guess is that you may have more than one perls on your machine and mod_perl 
picks the wrong library at the startup.


I looked extensively through Google and mailing list archives, and can't
seem to find what the problem is. Please note that I have some extensive
experience with Apache+mod_perl, but I can't seem to pinpoint what's
going wrong. Any idea where to look?
I have recompiled everything (perl, libperl, Apache, mod_perl, several
perl modules) but it did'nt solve the problem. Any idea how I can find
out what fucks up? 

If I can't I'll try compiling by hand but I wanted to avoid this. 

I have:
gcc 3.3
glibc 2.3.2-r1
apache-1.3.27-r4


--

__
Stas BekmanJAm_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


undefined symbol: PL_stack_base

2003-06-10 Thread Nicolas MONNET
Hi, I can't seem to find what's going wrong, I'm trying to run mod_perl
on Gentoo, but I get this:

# /etc/init.d/apache start
 * Starting apache...
Syntax error on line 58 of /etc/apache/conf/apache.conf:
Cannot load /etc/apache/extramodules/libperl.so into server:
/etc/apache/extramodules/libperl.so: undefined symbol:
PL_stack_base   [ !! ] 

I looked extensively through Google and mailing list archives, and can't
seem to find what the problem is. Please note that I have some extensive
experience with Apache+mod_perl, but I can't seem to pinpoint what's
going wrong. Any idea where to look?

I have recompiled everything (perl, libperl, Apache, mod_perl, several
perl modules) but it did'nt solve the problem. Any idea how I can find
out what fucks up? 

If I can't I'll try compiling by hand but I wanted to avoid this. 

I have:
gcc 3.3
glibc 2.3.2-r1
apache-1.3.27-r4