You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by S D <su...@yahoo.com> on 2004/01/22 09:18:25 UTC

ERROR : "httpd: relocation error with Parser.so"

When using LWP::UserAgent module, I get following
error : 
/opt/ora9/product/9.2/Apache/Apache/bin/httpd:
relocation error:
/opt/ora9/product/9.2/Apache/perl/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/HTML/Parser/Parser.so:
undefined symbol: Perl_Tstack_sp_ptr

The system is Apache v1.30 (actually it is part of
Oracle Application server installation) on RHL9.

How do I get out of this mess ? Any pointers plz ? 

Thanks,
SD


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

-- 
Reporting bugs: 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


Re: ERROR : "httpd: relocation error with Parser.so"

Posted by Stas Bekman <st...@stason.org>.
S D wrote:
> ok - ldd /opt/ora9/product/9.2/Apache/Apache/bin/httpd
> shows:
> ~~~
> libpthread.so.0 => /lib/tls/libpthread.so.0
> (0x40034000)
> libdb.so.2 => /usr/lib/libdb.so.2 (0x40041000)
> libnsl.so.1 => /lib/libnsl.so.1 (0x40050000)
> libm.so.6 => /lib/tls/libm.so.6 (0x40065000)
> libcrypt.so.1 => /lib/libcrypt.so.1 (0x40087000)
> libdl.so.2 => /lib/libdl.so.2 (0x400b4000)
> libc.so.6 => /lib/tls/libc.so.6 (0x42000000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> ~~~
> I'm completely at loss. How does this tell if the
> Parser module is compatible with version of Perl in
> Apache ?

Well you didn't tell us what is your mod_perl build. Apparently it's not 
static but DSO. Find your libperl.so mod_perl module (check your httpd.conf 
for the location) and run ldd on it (in mod_perl 1.0 the modperl shared 
library is confusing called the same way as the perl shared library)

> For one, how do I know correct version of Perl in
> Apache ? Under Apache, there are directories
> ./perl/lib/5.00503 and ./perl/lib/perl5/5.8.0. So
> what's the version of Perl here - 5.00503 or 5.8.0 ??
> 
> The module which is being used here -HTML-Parser-, its
>  README mentions version of Perl required as 5.005 or
> higher. So I guess the Apache is compatible .

Yes, but different perl versions are not binary compatible.

> I even downloaded older versions of the perl module,
> but they did not even contain the 'Parser.so' , so I
> guess I'm using the correct version.

That's the problem with downloding different versions of binary builds. When 
you build things by yourself you know which perl you have used and you don't 
encounter.

You should be able to figure out which is the right perl by following my 
suggestion above.

[please also read:
http://perl.apache.org/maillist/email-etiquette.html#toc_Extracts_From_Other_Posts]

__________________________________________________________________
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


-- 
Reporting bugs: 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


Re: ERROR : "httpd: relocation error with Parser.so"

Posted by S D <su...@yahoo.com>.
ok - ldd /opt/ora9/product/9.2/Apache/Apache/bin/httpd
shows:
~~~
libpthread.so.0 => /lib/tls/libpthread.so.0
(0x40034000)
libdb.so.2 => /usr/lib/libdb.so.2 (0x40041000)
libnsl.so.1 => /lib/libnsl.so.1 (0x40050000)
libm.so.6 => /lib/tls/libm.so.6 (0x40065000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x40087000)
libdl.so.2 => /lib/libdl.so.2 (0x400b4000)
libc.so.6 => /lib/tls/libc.so.6 (0x42000000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
~~~
I'm completely at loss. How does this tell if the
Parser module is compatible with version of Perl in
Apache ?

For one, how do I know correct version of Perl in
Apache ? Under Apache, there are directories
./perl/lib/5.00503 and ./perl/lib/perl5/5.8.0. So
what's the version of Perl here - 5.00503 or 5.8.0 ??

The module which is being used here -HTML-Parser-, its
 README mentions version of Perl required as 5.005 or
higher. So I guess the Apache is compatible .

I even downloaded older versions of the perl module,
but they did not even contain the 'Parser.so' , so I
guess I'm using the correct version.

Any pointers please ?? 

Thanks,
SD

--- Stas Bekman <st...@stason.org> wrote:
> S D wrote:
> > When using LWP::UserAgent module, I get following
> > error : 
> > /opt/ora9/product/9.2/Apache/Apache/bin/httpd:
> > relocation error:
> >
>
/opt/ora9/product/9.2/Apache/perl/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/HTML/Parser/Parser.so:
> > undefined symbol: Perl_Tstack_sp_ptr
> 
> Usually that means that mod_perl and HTML::Parser
> weren't compiled using the 
> same perl.
> 
> Do:
> 
> ldd /opt/ora9/product/9.2/Apache/Apache/bin/httpd
> 
> and it'll tell you which perl library it's compiled
> against (assuming it's a 
> static build) then check that HTML::Parser was built
> with the same perl.
> 
> 
>
__________________________________________________________________
> 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
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

-- 
Reporting bugs: 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


Re: ERROR : "httpd: relocation error with Parser.so"

Posted by Stas Bekman <st...@stason.org>.
S D wrote:
> When using LWP::UserAgent module, I get following
> error : 
> /opt/ora9/product/9.2/Apache/Apache/bin/httpd:
> relocation error:
> /opt/ora9/product/9.2/Apache/perl/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/HTML/Parser/Parser.so:
> undefined symbol: Perl_Tstack_sp_ptr

Usually that means that mod_perl and HTML::Parser weren't compiled using the 
same perl.

Do:

ldd /opt/ora9/product/9.2/Apache/Apache/bin/httpd

and it'll tell you which perl library it's compiled against (assuming it's a 
static build) then check that HTML::Parser was built with the same perl.


__________________________________________________________________
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


-- 
Reporting bugs: 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


Re: ERROR : "httpd: relocation error with Parser.so"

Posted by Ged Haywood <ge...@www2.jubileegroup.co.uk>.
Hi there,

On Thu, 22 Jan 2004, S D wrote:

> When using LWP::UserAgent module, I get following error : 
> /opt/ora9/product/9.2/Apache/Apache/bin/httpd: relocation error:
> /opt/ora9/product/9.2/Apache/perl/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/HTML/Parser/Parser.so:
> undefined symbol: Perl_Tstack_sp_ptr
> 
> The system is Apache v1.30 (actually it is part of
> Oracle Application server installation) on RHL9.
> 
> How do I get out of this mess ? Any pointers plz ? 

Please read the documentation on the mod_perl Website to find what
information you need to post.

73,
Ged.



-- 
Reporting bugs: 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