ld fails under Solaris/i386
Vincent Lefevre
vincent at vinc17.net
Fri Nov 20 10:33:59 CET 2009
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);
but also:
ld: fatal: file /usr/lib/libc.so: wrong ELF class: ELFCLASS32
ld: fatal: file /usr/ucblib/libucb.so: wrong ELF class: ELFCLASS32
ld: fatal: file /usr/lib/libresolv.so: wrong ELF class: ELFCLASS32
ld: fatal: file /usr/lib/libsocket.so: wrong ELF class: ELFCLASS32
ld: fatal: file /usr/lib/libnsl.so: wrong ELF class: ELFCLASS32
ld: fatal: file /usr/lib/libelf.so: wrong ELF class: ELFCLASS32
GMP version: 4.3.1
GMP was configured with:
./configure --prefix=/home/vlefevre --exec-prefix=/home/vlefevre/i386-solaris
"what `which cc`" says in particular:
RELEASE VERSION Sun C 5.9 SunOS_i386 Patch 124868-10 2009/04/30
$ uname -a
SunOS allo-psmn 5.10 Generic_141445-09 i86pc i386 i86pc
$ ./config.guess
athlon64-pc-solaris2.10
$ ./configfsf.guess
i386-pc-solaris2.10
$ env|grep LD_
LD_LIBRARY_PATH=/home/vlefevre/i386-solaris/lib:/home/vlefevre/lib
but /home/vlefevre/i386-solaris/lib doesn't exist and ~/lib doesn't
contain any library.
--
Vincent Lefèvre <vincent at vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gmp-build.tar.bz2
Type: application/octet-stream
Size: 23789 bytes
Desc: not available
URL: <http://gmplib.org/list-archives/gmp-bugs/attachments/20091120/fe80e778/attachment-0001.obj>
More information about the gmp-bugs
mailing list