Bug#556482: FTBFS with binutils-gold
Source: sysprof
Version: 1.0.12-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.
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
gcc -Wall -g -O2 -o sysprof binfile.o process.o profile.o sfile.o stackstash.o sysprof.o treeviewutils.o watch.o -pthread -lgthread-2.0 -lrt -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lgio-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 /usr/lib/libbfd.a -liberty -liberty
/usr/bin/ld: /usr/lib/libbfd.a(compress.o): in function bfd_uncompress_section_contents:../../bfd/compress.c:96: error: undefined reference to 'inflateInit_'
/usr/bin/ld: /usr/lib/libbfd.a(compress.o): in function bfd_uncompress_section_contents:../../bfd/compress.c:103: error: undefined reference to 'inflate'
/usr/bin/ld: /usr/lib/libbfd.a(compress.o): in function bfd_uncompress_section_contents:../../bfd/compress.c:106: error: undefined reference to 'inflateReset'
/usr/bin/ld: /usr/lib/libbfd.a(compress.o): in function bfd_uncompress_section_contents:../../bfd/compress.c:108: error: undefined reference to 'inflateEnd'
/usr/bin/ld: /usr/lib/libbfd.a(plugin.o): in function try_load_plugin:../../bfd/plugin.c:127: error: undefined reference to 'dlopen'
/usr/bin/ld: /usr/lib/libbfd.a(plugin.o): in function try_load_plugin:../../bfd/plugin.c:134: error: undefined reference to 'dlsym'
/usr/bin/ld: /usr/lib/libbfd.a(plugin.o): in function try_load_plugin:../../bfd/plugin.c:130: error: undefined reference to 'dlerror'
collect2: ld returned 1 exit status
make[3]: *** [sysprof] Error 1
Reply to: