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

Bug#556686: FTBFS with binutils-gold



Source: wv2
Version: 0.4.1.dfsg-1
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.

It is maybe better in your case that libwv2.so gets linked against
the needed libraries to fix that problem. You can use --no-undefined (or
respective -Wl,--no-undefined when linking with g++ or gcc) to check your
libraries if they still have symbols which doesn't get resolved by them.

dpkg-shlibdeps will also print warnings about unresolved symbols when it gets
run in your debian/rules.

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

cd /home/peter/rebuild/build/wv2/wv2-0.4.1.dfsg/obj-x86_64-linux-gnu/tests && /usr/bin/cmake -E cmake_link_script CMakeFiles/ustringtest.dir/link.txt --verbose=1
/usr/bin/c++   -g -O2    CMakeFiles/ustringtest.dir/ustringtest.cpp.o  -o ustringtest -rdynamic ../src/libwv2.so.4.0.0 -lgsf-1 -lz -lgsf-1 -lc -lglib-2.0 -Wl,-rpath,/home/peter/rebuild/build/wv2/wv2-0.4.1.dfsg/obj-x86_64-linux-gnu/src 
/usr/bin/ld: ../src/libwv2.so.4.0.0: error: undefined reference to 'g_type_check_instance_cast'
/usr/bin/ld: ../src/libwv2.so.4.0.0: error: undefined reference to 'g_object_unref'
/usr/bin/ld: ../src/libwv2.so.4.0.0: error: undefined reference to 'g_type_check_instance_is_a'
collect2: ld returned 1 exit status
make[4]: *** [tests/ustringtest] Error 1



Reply to: