gmp-4.2.1 make check problem on OpenSuSE 10.0

James M Anderson anderson at jive.nl
Thu May 3 13:35:32 CEST 2007


Hello.  I have found a problem with "make check" on my OpenSuSE 10.0
system.  My sysadmin at work recently changed my system installation
to OpenSuSe 10.0 on my pc.  This already includes a gmp library
installed in the system area, but I wanted to install a new version of
gmp.  I need to use gcc 3.4.6 for compatibility with other software
rather than the gcc 4 installed with the system.

The configuration and build go ok, but when I run make check, t-sub
fails with a segmentation fault in urandom().

I have traced this down to the fact that when t-sub is executed, it
uses the sytem library libgmp.so.3 rather than the new libgmp.so.3 I
have just built.  If I manually set LD_LIBRARY_PATH to have the build
directory/.libs set first before the system library paths, then
everything passes.

So, 

/configure --prefix=/aps3/ALBUS
make
make check

fails, but

setenv LD_LIBRARY_PATH /aps3/ALBUS/anderson/C/gmp-4.2.1/.libs:{$LD_LIBRARY_PATH}
make check

then works fine.

Linux jop30 2.6.13-15.15-smp #1 SMP Mon Feb 26 14:11:33 UTC 2007 i686 i686 i386 GNU/Linux

jop30[145]% gcc -v
Reading specs from /auto/aps3/ALBUS/bin/../lib/gcc/i686-pc-linux-gnu/3.4.6/specs
Configured with: ../gcc-3.4.6/configure --prefix=/aps3/ALBUS --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6

jop30[69]% ./config.guess
pentium4-pc-linux-gnu

jop30[70]% ./configfsf.guess
i686-pc-linux-gnu




//****************************************************************************
Dr James M Anderson               Joint Institute for VLBI in Europe
Software Scientist                Postbus 2
e-mail: anderson at jive.nl          7990 AA Dwingeloo
Telephone: +31 (0)521 596 542     The Netherlands



More information about the gmp-bugs mailing list