After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 665639 - bluetooth-applet fails to link
bluetooth-applet fails to link
Status: RESOLVED FIXED
Product: gnome-bluetooth
Classification: Core
Component: applet
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-bluetooth-general-maint@gnome.bugs
gnome-bluetooth-general-maint@gnome.bugs
: 665638 665839 666345 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-12-05 23:43 UTC by Daniele Forsi
Modified: 2011-12-16 16:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
link applet with libgnome-bluetooth explicitly to fix build failure (981 bytes, patch)
2011-12-06 21:18 UTC, Krzysztof Klimonda
committed Details | Review
fix build issues in libgnome-bluetooth (823 bytes, patch)
2011-12-10 23:08 UTC, darkxst
none Details | Review

Description Daniele Forsi 2011-12-05 23:43:57 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.
Comment 1 Krzysztof Klimonda 2011-12-06 21:18:38 UTC
Created attachment 202948 [details] [review]
link applet with libgnome-bluetooth explicitly to fix build failure
Comment 2 Daniele Forsi 2011-12-09 09:13:02 UTC
*** Bug 665839 has been marked as a duplicate of this bug. ***
Comment 3 darkxst 2011-12-10 23:06:10 UTC
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.
Comment 4 darkxst 2011-12-10 23:08:09 UTC
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 5 Bastien Nocera 2011-12-16 16:27:21 UTC
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 6 Bastien Nocera 2011-12-16 16:27:45 UTC
Comment on attachment 203196 [details] [review]
fix build issues in libgnome-bluetooth

Already fixed in master.
Comment 7 Bastien Nocera 2011-12-16 16:28:35 UTC
*** Bug 665638 has been marked as a duplicate of this bug. ***
Comment 8 Bastien Nocera 2011-12-16 16:29:18 UTC
*** Bug 666345 has been marked as a duplicate of this bug. ***