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

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

  • Comment on Re^2: cpan -i Language::Prolog::Yaswi gives undefined symbol: __gmpz_get_si
  • Download Code

Replies are listed 'Best First'.
Re^3: cpan -i Language::Prolog::Yaswi gives undefined symbol: __gmpz_get_si
by Anonymous Monk on Jul 03, 2012 at 11:24 UTC

    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