bluez-4.61 fails to build if configured with "--disable-gstreamer --disable-alsa --enable-test"
It fails with:
CC test/ipctest.o CC audio/ipc.o CCLD test/ipctest
gcc: sbc/.libs/libsbc.a: No such file or directory make[1]: *** [test/ipctest] Error 1
make: *** [all] Error 2
Also, other combinations (like --enable-services, --enable-audio...) can end up with errors like:
libtool: link: x86_64-pc-linux-gnu-gcc -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DBLUETOOTH_PLUGIN_BUILTIN -DPLUGINDIR=\"/usr/lib64/bluetooth/plugins\" -O2 -march=athlon64-sse3 -mtune=athlon64-sse3 -pipe -D_FORTIFY_SOURCE=2 -fPIC -Wl,-O1 -pie -o test/ipctest test/ipctest.o audio/ipc.o /usr/lib64/libglib-2.0.so sbc/.libs/libsbc.atest/ipctest.o: In function `set_conf':
ipctest.c:(.text+0x1462): undefined reference to sbc_reinit' ipctest.c:(.text+0x14af): undefined reference to sbc_init' ipctest.c:(.text+0x161b): undefined reference to `sbc_get_codesize'
collect2: ld returned 1 exit status
make[1]: *** [test/ipctest] Error 1
make: *** [all] Error 2
Thanks a lot for your help
Hi Pacho,
Quoted 17 lines · Pacho Ramos
It fails with:
CC test/ipctest.o CC audio/ipc.o CCLD test/ipctestgcc: sbc/.libs/libsbc.a: No such file or directory make[1]: *** [test/ipctest] Error 1
make: *** [all] Error 2Also, other combinations (like --enable-services, --enable-audio...) can end up with errors like:
libtool: link: x86_64-pc-linux-gnu-gcc -I/usr/include/dbus-1.0(quoted diff) +0
-4-I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DBLUETOOTH_PLUGIN_BUILTIN -DPLUGINDIR=\"/usr/lib64/bluetooth/plugins\" -O2 -march=athlon64-sse3 -mtune=athlon64-sse3 -pipe -D_FORTIFY_SOURCE=2 -fPIC -Wl,-O1 -pie -otest/ipctest
test/ipctest.oaudio/ipc.o/usr/lib64/libglib-2.0.so
Quoted 8 lines
sbc/.libs/libsbc.a
test/ipctest.o: In function `set_conf':
ipctest.c:(.text+0x1462): undefined reference tosbc_reinit' ipctest.c:(.text+0x14af): undefined reference tosbc_init' ipctest.c:(.text+0x161b): undefined reference to `sbc_get_codesize'
collect2: ld returned 1 exit status
make[1]: *** [test/ipctest] Error 1
make: *** [all] Error 2
Vinicius has a patch to fix this. Let's wait he send the patch to the mailing list.
Quoted 2 lines
Thanks a lot for your help
Signature · 4 lines
Gustavo F. Padovan http://padovan.org ProFUSION embedded systems - http://profusion.mobi
Quoted 24 lines · Gustavo F. Padovan
Hi Pacho,
Quoted 20 lines · Pacho Ramos
It fails with:
CC test/ipctest.o CC audio/ipc.o CCLD test/ipctestgcc: sbc/.libs/libsbc.a: No such file or directory make[1]: *** [test/ipctest] Error 1
make: *** [all] Error 2Also, other combinations (like --enable-services, --enable-audio...) can end up with errors like:
libtool: link: x86_64-pc-linux-gnu-gcc -I/usr/include/dbus-1.0(quoted diff) +0
-4-I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DBLUETOOTH_PLUGIN_BUILTIN -DPLUGINDIR=\"/usr/lib64/bluetooth/plugins\" -O2 -march=athlon64-sse3 -mtune=athlon64-sse3 -pipe -D_FORTIFY_SOURCE=2 -fPIC -Wl,-O1 -pie -otest/ipctest
test/ipctest.oaudio/ipc.o/usr/lib64/libglib-2.0.sosbc/.libs/libsbc.atest/ipctest.o: In function `set_conf':
ipctest.c:(.text+0x1462): undefined reference to `sbc_reinit'
Quoted 9 lines
Quoted 5 lines
ipctest.c:(.text+0x14af): undefined reference to
sbc_init' ipctest.c:(.text+0x161b): undefined reference tosbc_get_codesize'
collect2: ld returned 1 exit status
make[1]: *** [test/ipctest] Error 1
make: *** [all] Error 2Vinicius has a patch to fix this. Let's wait he send the patch to the mailing list.
Fine :-D
Thanks a lot for the information