Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: cpan -i Language::Prolog::Yaswi gives undefined symbol: __gmpz_get_si

by Anonymous Monk
on Jun 16, 2012 at 23:01 UTC ( [id://976608]=note: print w/replies, xml ) Need Help??


in reply to cpan -i Language::Prolog::Yaswi gives undefined symbol: clock_gettime

Remember What's happened to Yaswi?

This error

perl: symbol lookup error: /usr/local/lib/perl/5.14.2/auto/Language/Pr +olog/Yaswi/Low/Low.so: undefined symbol: clock_gettime
means you should run ldd /usr/local/lib/perl/5.14.2/auto/Language/Prolog/Yaswi/Low/Low.so and then adjust your LD_LIBRARY_PATH, or whatever, so that Low.so can find the correct libgmp.so which exports a __gmpz_get_si symbol
  • Comment on Re: cpan -i Language::Prolog::Yaswi gives undefined symbol: __gmpz_get_si
  • Download Code

Replies are listed 'Best First'.
Re^2: cpan -i Language::Prolog::Yaswi gives undefined symbol: __gmpz_get_si
by Steve_BZ (Chaplain) on Jun 17, 2012 at 00:13 UTC

    Dear Anon,

    Well, umm, slightly embarassing, and only a year ago. But thanks anyway.

    Regards

    Steve.

Re^2: cpan -i Language::Prolog::Yaswi gives undefined symbol: __gmpz_get_si
by Steve_BZ (Chaplain) on Jul 02, 2012 at 21:46 UTC

    Hi Anon,

    Well I'm not sure if you're still tracking this, but I ran ldd (it's on a remote computer and I had to get teamviewer installed first) and got:

    ldd /usr/local/lib/perl/5.14.2/auto/Language/Prolog/Yaswi/Low/Low.so linux-gate.so.1 => (0xb770f000) libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7461000) /lib/ld-linux.so.2 (0xb7710000)

    I get no "file not found" entries, although there must be.

    Does this mean that there are no unlinked files?

    What should I do?

    Regards

    Steve

      I get no "file not found" entries, although there must be. Does this mean that there are no unlinked files? What should I do?

      Well, I don't see anything resembling libgmp... where is libgmp... located? (does ldd -v show anything gmp related?)

      You should recompile, say with an updated LIBS= or LD_RUN_PATH= join ':', qw{ /usr/lib/i386-linux-gnu /lib/i386-linux-gnu /usr/lib/swi-prolog/lib/i386/ };

        Hi Anon,

        Thanks for your post. Well I'm not sure how you picked up on libgmp.so, I don't see it in the dump, but it is located in /usr/lib/i386-linux-gnu/.

        I've just recompiled Low.pm on both 11.10 and 12.04 here are their compile listings, though neither seems to error. See below for dumps. Then when Yaswi itself finishes compiling, which it does without incident, the make test fails (dump also follows). I'm at present trying to recompile with LIBS set as you suggest using:

        wget http://ftp.heanet.ie/mirrors/ftp.perl.org/pub/CPAN/authors/id/S/S +A/SALVA/Language-Prolog-Yaswi-0.19.tar.gz tar -zxvf Language-Prolog-Yaswi-0.19.tar.gz cd Language-Prolog-Yaswi-0.19 LIBS=/usr/lib/i386-linux-gnu export LIBS perl Makefile.PL make make test
        And at this point it crashes.

        11.10

        12.04

        Yaswi make test on 12.04

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-24 16:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found