[Pkg-bluetooth-maintainers] Bug#553960: FTBFS with binutils-gold

Peter Fritzsche peter.fritzsche at gmx.de
Mon Nov 2 11:19:50 UTC 2009

Package: bluez
Version: 4.56-2
Severity: normal

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.

/bin/bash ./libtool  --tag=CC   --mode=link cc -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I/usr/include/glib-2.0 -
I/usr/lib/glib-2.0/include -DBLUETOOTH_PLUGIN_BUILTIN -DPLUGINDIR=\""/usr/lib/bluetooth/plugins"\" -g -O2 -g -Wall -O2 -
D_FORTIFY_SOURCE=2 -fPIC -g  -pie -o sbc/sbctester sbc/sbctester.o -lsndfile   
libtool: link: cc -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -
DBLUETOOTH_PLUGIN_BUILTIN -DPLUGINDIR=\"/usr/lib/bluetooth/plugins\" -g -O2 -g -Wall -O2 -D_FORTIFY_SOURCE=2 -fPIC -g -pie -o 
sbc/sbctester sbc/sbctester.o  /usr/lib/libsndfile.so
/usr/bin/ld: sbc/sbctester.o: in function sampletobits:sbc/sbctester.c:64: error: undefined reference to 'pow'
/usr/bin/ld: sbc/sbctester.o: in function main:sbc/sbctester.c:150: error: undefined reference to 'sqrt'
collect2: ld returned 1 exit status
make[2]: *** [sbc/sbctester] Error 1

More information about the Pkg-bluetooth-maintainers mailing list