[kaffe] Linking problem with gmp

Patrick Tullmann tullmann@cs.utah.edu
Sun, 28 Apr 2002 15:56:14 -0600


For future reference, if you get problems linking Kaffe statically
like this:

/usr/lib/libgmp.a(get_str.o): In function `mpz_get_str':
get_str.o(.text+0xed): undefined reference to `__mpn_get_str'

(plus a bunch of other __mpn_* missing references).

The fix is to upgrade your libgmp installation.  My Debian box seemed
to have an old libgmp.a, but more recent .so and header files for
libgmp.  So 'apt-get install'ing libgmp2 libgmp2-dev fixed the problem
for me.

I expect that this is a Debian-specific problem.

-Pat

----- ----- ---- ---  ---  --   -    -      -         -               -
Pat Tullmann                                       tullmann@cs.utah.edu
       It said "Windows 95 or better" so FreeBSD should run it.