multiple definition errors during gmp build

Mirko Vukovic mirko.vukovic at
Wed Jan 26 16:06:08 CET 2011


I am building gmp 4.3.2 on a RHEL5

After doing configure, make fails with multiple definitions when linking:

gcc -std=gnu99 -shared  .libs/assert.o .libs/compat.o .libs/errno.o
scanf/.libs/vscanf.o scanf/.libs/vsscanf.o   -m64 -mtune=core2 -Wl,-soname
-Wl, -o .libs/
.libs/compat.o: In function `feof_unlocked':
compat.c:(.text+0x0): multiple definition of `feof_unlocked'
.libs/assert.o:assert.c:(.text+0x0): first defined here
.libs/compat.o: In function `ferror_unlocked':
compat.c:(.text+0x10): multiple definition of `ferror_unlocked'
vsscanf.c:(.text+0x380): multiple definition of `strtoimax'
.libs/assert.o:assert.c:(.text+0x180): first defined here
scanf/.libs/vsscanf.o: In function `__strsep_1c':
vsscanf.c:(.text+0x390): multiple definition of `__strsep_1c'
mpf/.libs/set_str.o:set_str.c:(.text+0xe30): first defined here
collect2: ld returned 1 exit status

Thank you for your help,


More information about the gmp-discuss mailing list