GNOME Bugzilla – Bug 665639
bluetooth-applet fails to link
Last modified: 2011-12-16 16:35:07 UTC
No idea how to fix this failure: CCLD bluetooth-applet /usr/bin/ld: main.o: undefined reference to symbol 'bluetooth_chooser_new' /usr/bin/ld: note: 'bluetooth_chooser_new' is defined in DSO /home/daniele/Programmazione/gnome-bluetooth/lib/.libs/libgnome-bluetooth.so.9 so try adding it to the linker command line /home/daniele/Programmazione/gnome-bluetooth/lib/.libs/libgnome-bluetooth.so.9: could not read symbols: Invalid operation collect2: ld returned 1 exit status make[2]: *** [bluetooth-applet] Error 1 The file applet/libgnome-bluetooth-applet.la seems to contain the right library path: dependency_libs=' /home/daniele/Programmazione/gnome-bluetooth/lib/libgnome-bluetooth.la [...] I'm using libtool (GNU libtool) 2.4 on Ubuntu 11.10 on a new git clone.
Created attachment 202948 [details] [review] link applet with libgnome-bluetooth explicitly to fix build failure
*** Bug 665839 has been marked as a duplicate of this bug. ***
In my case it is failing with the linking in the library itself. So the above patch by itself is not enough to resolve the issue.
Created attachment 203196 [details] [review] fix build issues in libgnome-bluetooth This patch will allow gnome-bluetooth to build on Ubuntu 11.10. I am not really sure if that was the correct way to fix it however.
Comment on attachment 202948 [details] [review] link applet with libgnome-bluetooth explicitly to fix build failure commit 8a8ae41a1b7fa595f114036ecbe061d07c475fd7 Author: Krzysztof Klimonda <kklimonda@syntaxhighlighted.com> Date: Tue Dec 6 22:13:33 2011 +0100 applet: Fix linking error due to DSO linking changes Link with the libgnome-bluetooth explicitly to fix the build failure on platforms where ld's --as-needed option is enabled by default. https://bugzilla.gnome.org/show_bug.cgi?id=665639
Comment on attachment 203196 [details] [review] fix build issues in libgnome-bluetooth Already fixed in master.
*** Bug 665638 has been marked as a duplicate of this bug. ***
*** Bug 666345 has been marked as a duplicate of this bug. ***