gnu mp make check 4.1.3 error

Kevin Ryde user42 at
Fri Jul 9 01:32:52 CEST 2004

"Giuliano Castelli" <g.castelli at> writes:
> gcc -g -O2 -fomit-frame-pointer -mcpu=pentiumpro -march=pentiumpro -o .libs/t-bswap t-bswap.o  ./.libs/libtests.a /home/castelli/my/myNotSimple/IntegerClass/gmp-4.1.3/.libs/ ../.libs/ -Wl,--rpath -Wl,/usr/local/lib

This is the right sort of command.

> /home/castelli/my/myNotSimple/IntegerClass/gmp-4.1.3/tests/t-bswap.c:40: undefined reference to `__gmpn_random'

All these unresolved bits are meant to be in libgmp, you can check if
.lib/ seems right.  readelf or maybe nm will show the symbols
in it.

(If the problem is related to shared libraries, you might be able to
configure gmp with --disable-shared to get something that at least

All followups to gmp-bugs at please.

More information about the gmp-bugs mailing list