ld fails under Solaris/i386

Marc Glisse marc.glisse at normalesup.org
Fri Nov 20 11:42:39 CET 2009


On Fri, 20 Nov 2009, Vincent Lefevre wrote:

> When building GMP, ld fails under Solaris (see attachment for
> config.log and make output). First error is:
>
> ld: fatal: symbol `__gmpz_abs' is multiply-defined:
>        (file .libs/assert.o type=FUNC; file mpz/.libs/abs.o type=FUNC);

In gmp.h, for sunpro, there is a line that says "extern inline" where it 
should be just "inline" (see previous discussions here). It looks like it 
hasn't been fixed in mercurial yet.

> ld: fatal: file /usr/ucblib/libucb.so: wrong ELF class: ELFCLASS32

Get /usr/ucb out of your PATH, or at least after /usr/ccs/bin, 
/usr/xpg*/bin and /usr/bin. Although I don't know why gmp would call ld 
directly instead of cc, and I believe cc hardcodes the PATH to ld.


-- 
Marc Glisse


More information about the gmp-bugs mailing list