perl: symbol lookup error: /usr/lib/perl5/auto/Cwd/Cwd.so: undefined
symbol: Perl_Gthr_key_ptr
error: Bad exit status from
/home/rpjday/WindRiver/prj/4.3/vrf/build/perl-Convert-ASN1-0.21/rpm-tmp.42187
(%build)
can someone explain in general why these errors are happening? is
this a mismatch of some kind between the software and the perl
module? is it the software's fault? since i'm getting the ugly
feeling that i may not have seen the last of these so i'd like to know
what's behind these things. thanks.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
> perl: symbol lookup error: /usr/lib/perl5/auto/Cwd/Cwd.so: undefined
> symbol: Perl_Gthr_key_ptr
> error: Bad exit status from
> /home/rpjday/WindRiver/prj/4.3/vrf/build/perl-Convert-ASN1-0.21/rpm-tmp.42187
> (%build)
>
which looks like a symbol isn't in the symbol table of the shared object Cwd.so.
> can someone explain in general why these errors are happening? is
> this a mismatch of some kind between the software and the perl
> module? is it the software's fault? since i'm getting the ugly
> feeling that i may not have seen the last of these so i'd like to know
> what's behind these things. thanks.
I would hazard a guess that the software is asking for a Perl_Gthr_key_ptr
function which doesn't exist in the shared object Cwd.so so there may well be a
mismatch between the software requirements and what you have installed.
I suggest you fix the first bug first in case your skipping it is causing this
bug.
Regards
Lesley
> i'd love to, but i'm still not clear on how or, more importantly,
> *why* there's that kind of mismatch. i think i mentioned this
> already but, *officially*, this build should complete on ubuntu 10.04,
I don't think you did.
> whereas i'm using ubuntu 11.04. so that suggests there's been some
> sort of change with one or more perl modules in between that's causing
> this grief. but i don't just want to start installing CPAN modules
> until i think i understand what that would be fixing.
>
> rday
>
> p.s. is there a way to identify which perl module supplies the
> Perl_Gthr_key_ptr symbol? perhaps it's just a dependency issue that
> didn't exist in 10.04 but is somehow in 11.04.
That symbol would be defined in libperl.so and is on my system.. It
sounds very much as if this software is not playing nicely. Does it
have its own version of perl, perhaps embedded? Is it messing with
LD_LIBRARY_PATH or something similar?
You could track this down, depending on how much effort you wanted to
put into it. You could start by stracing the whole process. Or you
could locate a correct version of the package. Or you could try
compiling everything up yourself. Or just the source for that package.
Or you could log a bug somewhere. I depends on how much it's worth to
you and how much time and effort you have to invest.
--
Paul Johnson - pa...@pjcj.net
http://www.pjcj.net
> On Wed, Sep 21, 2011 at 09:17:40AM -0400, Robert P. J. Day wrote:
... snip ...
> > but there's a possible solution. when one initially configures
> > the project, one can select that *all* of those host tools will be
> > rebuilt from scratch. that would obviously take longer and it's
> > not clear it would solve the problem since they might just be
> > rebuilt with all the same properties and mismatches.
>
> You'll probably need to do something like that. Or tell it to use
> your system tools somehow. Or get your system tools out of the way
> somehow.
as a quick first attempt, i'm going to start a new project that
first builds all of the host tools from scratch, then i'll try to
build just one of the offending packages from before with those new
tools.
if that still fails the same way, i'll move on to the next
suggestion. thanks, all, for the help.
rday
p.s. i'm not convinced that rebuilding the host tools will fix things
since, theoretically, they should produce exactly what's already
there. but, hey, that's just the theory.
> On Wed, Sep 21, 2011 at 08:31:10AM -0400, Robert P. J. Day wrote:
... snip ...
> > p.s. is there a way to identify which perl module supplies the
> > Perl_Gthr_key_ptr symbol? perhaps it's just a dependency issue
> > that didn't exist in 10.04 but is somehow in 11.04.
>
> That symbol would be defined in libperl.so and is on my system.. It
> sounds very much as if this software is not playing nicely. Does it
> have its own version of perl, perhaps embedded? Is it messing with
> LD_LIBRARY_PATH or something similar?
i think i'm close, just need another push. i tried building all my
host tools on this system and the build of "git" still failed with the
same error i've seen before:
/home/rpjday/WindRiver/prj/4.3/vrf_host/host-cross/bin/perl
Makefile.PL
PREFIX='/home/rpjday/WindRiver/prj/4.3/vrf_host/host-cross'
/home/rpjday/WindRiver/prj/4.3/vrf_host/host-cross/bin/perl: symbol
lookup error: /usr/lib/perl5/auto/Cwd/Cwd.so: undefined symbol:
Perl_Gthr_key_ptr
Makefile:41: *** [perl.mak] Error 127
and now another google shows me this:
https://bugs.archlinux.org/task/24575
ah, so the build might just be picking up the totally wrong Cwd.so
file, and a quick "find" shows, yes indeed, there are two of them on
my system:
/usr/lib/perl/5.10.1/auto/Cwd/Cwd.so
/usr/lib/perl5/auto/Cwd/Cwd.so
and checking which packages they belong to:
$ dpkg -S /usr/lib/perl/5.10.1/auto/Cwd/Cwd.so
perl-base: /usr/lib/perl/5.10.1/auto/Cwd/Cwd.so
$ dpkg -S /usr/lib/perl5/auto/Cwd/Cwd.so
libfile-spec-perl: /usr/lib/perl5/auto/Cwd/Cwd.so
$
and it seems clear that the build is picking up the second one of
those. any guesses that the first one is the right one? and what
would be the proper solution here? if i try to remove
libfile-spec-perl, "apt-get" tells me that's the only package that
would go so dependencies wouldn't be an issue.
and why would i have ended up with two packages each containing
Cwd.so? that sounds like a recipe for confusion and badness. but i
don't want to delete anything just yet until i'm feeling more
confident.
rday