[Help-gnutls] duplicate symbols complaint on Mac OS X 10.5.2
David Reiser
dbreiser at gmail.com
Tue Mar 18 06:16:34 CET 2008
I'm trying to build gnutls 2.2.2 with fink installed dependencies on a
ppc Mac running OS X 10.5.2.
If I use --disable-guile, the build seems to go fine. But if I leave
out the --disable switch, the build fails with:
gcc -std=gnu99 -dynamiclib ${wl}-undefined ${wl}dynamic_lookup -o
.libs/libguile-gnutls-v-1.0.0.0.dylib
.libs/libguile_gnutls_v_1_la-core.o
.libs/libguile_gnutls_v_1_la-errors.o
.libs/libguile_gnutls_v_1_la-utils.o
.libs/libguile-gnutls-v-1.lax/liblgnu.a/asnprintf.o
.libs/libguile-gnutls-v-1.lax/liblgnu.a/dummy.o
.libs/libguile-gnutls-v-1.lax/liblgnu.a/gc-libgcrypt.o
.libs/libguile-gnutls-v-1.lax/liblgnu.a/gc-pbkdf2-sha1.o
.libs/libguile-gnutls-v-1.lax/liblgnu.a/md2.o
.libs/libguile-gnutls-v-1.lax/liblgnu.a/memmem.o
.libs/libguile-gnutls-v-1.lax/liblgnu.a/printf-args.o
.libs/libguile-gnutls-v-1.lax/liblgnu.a/printf-parse.o
.libs/libguile-gnutls-v-1.lax/liblgnu.a/read-file.o
.libs/libguile-gnutls-v-1.lax/liblgnu.a/strverscmp.o
.libs/libguile-gnutls-v-1.lax/liblgnu.a/vasnprintf.o
-L/sw/lib ../../lib/.libs/libgnutls.dylib
/sw/lib/libtasn1.dylib
/sw/lib/libgcrypt.dylib
/sw/lib/libpth.dylib
/sw/lib/libgpg-error.dylib
/sw/lib/libintl.dylib
/sw/lib/libiconv.dylib
-lc /sw/lib/libguile.dylib
/sw/lib/libgmp.dylib
-lm /sw/lib/libltdl.dylib
-install_name /sw/lib/libguile-gnutls-v-1.0.dylib
-compatibility_version 1
-current_version 1.0
-Wl,-single_module
ld: duplicate symbol ___gmpz_abs in
.libs/libguile_gnutls_v_1_la-errors.o and
.libs/libguile_gnutls_v_1_la-core.o
and grepping in the source tree suggests the same symbol is defined in
yet a third file:
$ grep -R ___gmpz_abs .
Binary file ./guile/src/.libs/libguile_gnutls_v_1_la-core.o matches
Binary file ./guile/src/.libs/libguile_gnutls_v_1_la-errors.o matches
Binary file ./guile/src/.libs/libguile_gnutls_v_1_la-utils.o matches
Binary file ./guile/src/libguile_gnutls_v_1_la-core.o matches
Binary file ./guile/src/libguile_gnutls_v_1_la-errors.o matches
Binary file ./guile/src/libguile_gnutls_v_1_la-utils.o matches
Apple's linker isn't known for being particularly bug free, but does
anyone have any suggestions as to how I can fix this?
Dave
--
David Reiser
dbreiser at gmail.com
More information about the Gnutls-help
mailing list