Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: how to Install/compile module as single threaded

by syphilis (Chancellor)
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.

  • Comment on Re: how to Install/compile module as single threaded

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://990893]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2018-03-18 00:31 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (228 votes). Check out past polls.