Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: how to Install/compile module as single threaded

by syphilis (Canon)
on Aug 31, 2012 at 01:49 UTC ( #990893=note: print w/ replies, xml ) Need Help??


in reply to how to Install/compile module as single threaded

undefined symbol: Perl_Gthr_key_ptr

That symbol is defined in 5.10.1 for the "x86_64-linux-thread-multi" architecture, but not for the "x86_64-linux" architecture.
You cannot use extensions (modules containing compiled-in C code) built by a perl with "x86_64-linux-thread-multi" architecture on a perl that has been built with "x86_64-linux" architecture (and vice-versa) - even if both perls have the same version number.
If you do that, you'll likely end up with errors of the sort you're seeing.

It all adds up to there being 2 separate perl executables, built with different architecures - one which needs to access /usr/local/lib/perl5/site_perl/5.10.1/x86_64-linux-thread-multi, and another that needs to access /usr/local/lib/perl5/site_perl/5.10.1/x86_64-linux.
If you want to update extensions for the latter, then you'll need to build those extensions using the latter.

Cheers,
Rob


Comment on Re: how to Install/compile module as single threaded
Re^2: how to Install/compile module as single threaded
by barsh (Novice) on Aug 31, 2012 at 16:08 UTC
    Hi, Thanks for the reply Rob. I kinda figured that it must be the case of having different perl executables but it is nice to have that confirmed.

    I guess the solution will have to be to recompile modperl with the default system perl version (multi-thread).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://990893]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2014-10-23 18:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (126 votes), past polls