http://www.perlmonks.org?node_id=1023728

tqisjim has asked for the wisdom of the Perl Monks concerning the following question:

This is vaguely a follow-up question to one I asked earlier about building Perl v5.10.

Cpantesters reports that my dist, NoSQL::PL2SQL, is failing on v5.10 and v5.12, but ok on previous and later versions. I ended up testing on Perl 5.12 and got this error:

perl: symbol lookup error: /home/jim/perl5/lib/perl5/i686-linux/auto/X +ML/Parser/Expat/Expat.so: undefined symbol: Perl_xs_apiversion_bootch +eck
As far as I can tell, cpantesters has not experienced similar problems: http://www.cpantesters.org/cpan/report/211e1a46-7e7b-11e2-8ed7-f0cfab4d37fd. Notwithstanding, I also found this report: https://bugs.mageia.org/show_bug.cgi?id=3731.

Can anyone here shed any illumination?

Thanks!

Replies are listed 'Best First'.
Re: undefined symbol: Perl_xs_apiversion_bootcheck
by tobyink (Canon) on Mar 15, 2013 at 16:28 UTC

    Tried installing on a clean 5.12.5 here, and it failed. Here's what I did:

    $ cpanm NoSQL::PL2SQL ... (this installed 20 deps then failed during NoSQL::PL2SQL's test suite) $ cd ~/.cpanm/work/1363363212.13296/NoSQL-PL2SQL-1.20/ $ strace -o strace.log prove -vmb >prove-vbm.log

    The cpanm build.log, plus strace.log and prove-vbm.log can be found in this github gist.

    Hope that helps.

    package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

      OK. There are actually 3 questions. The original question is implicitly answered: "I don't have a clean build".

      The second question would be "Why don't I have a clean build?". That answer seems to be that CPAN caches everything in a perl5 directory that doesn't reflect the build version. Anyways, by deleting ~/perl5, I am able to get the same results you posted on github.

      The $10,000,000 third question, what throws a Attempt to free unreferenced scalar error? My problem seems unrelated to this bug.

      This 2007 post is probably the most promising to pursue. Since I'm posting anyways, does anyone have additional insights? Thanks again!
        I reposted a new thread. Sorry for any violations of protocol!

        -Jim