[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#556498: FTBFS with binutils-gold



Source: tpm-tools
Version: 1.3.3-2
Severity: minor
User: peter.fritzsche@gmx.de
Usertags: no-add-needed

Tried to build your package and it fails to build with GNU binutils-gold. The
important difference is that --no-add-needed is the default behavior of of GNU
binutils-gold. Please provide all needed libraries to the linker when building
your executables.

Objects inside an .a archive aren't linked yet. This means that you must resolve
their symbols when linking them to a program.

More informations can be found at
 http://wiki.debian.org/qa.debian.org/FTBFS#A2009-11-02Packagesfailingbecausebinutils-gold.2BAC8-indirectlinking

/bin/bash ../../libtool --tag=CC   --mode=link gcc  -g -O2 -m64 -Wall -Werror -Wreturn-type -Wsign-compare   -o tpmtoken_init data_init.o ../../lib/libtpm_pkcs11.la -ltspi 
libtool: link: gcc -g -O2 -m64 -Wall -Werror -Wreturn-type -Wsign-compare -o tpmtoken_init data_init.o  ../../lib/.libs/libtpm_pkcs11.a /usr/lib/libtspi.so -lpthread -lcrypto
/usr/bin/ld: ../../lib/.libs/libtpm_pkcs11.a(tpm_pkcs11.o): in function closeToken:tpm_pkcs11.c:287: error: undefined reference to 'dlclose'
/usr/bin/ld: ../../lib/.libs/libtpm_pkcs11.a(tpm_pkcs11.o): in function openToken:tpm_pkcs11.c:157: error: undefined reference to 'dlopen'
/usr/bin/ld: ../../lib/.libs/libtpm_pkcs11.a(tpm_pkcs11.o): in function openToken:tpm_pkcs11.c:163: error: undefined reference to 'dlsym'
/usr/bin/ld: ../../lib/.libs/libtpm_pkcs11.a(tpm_pkcs11.o): in function openToken:tpm_pkcs11.c:263: error: undefined reference to 'dlclose'
/usr/bin/ld: ../../lib/.libs/libtpm_pkcs11.a(tpm_pkcs11.o): in function openToken:tpm_pkcs11.c:159: error: undefined reference to 'dlerror'
/usr/bin/ld: ../../lib/.libs/libtpm_pkcs11.a(tpm_pkcs11.o): in function openToken:tpm_pkcs11.c:165: error: undefined reference to 'dlerror'
collect2: ld returned 1 exit status
make[3]: *** [tpmtoken_init] Error 1



Reply to: