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 726693 - Build failure: lib/bluetooth-settings-widget.c:280: undefined reference to `pow'
Build failure: lib/bluetooth-settings-widget.c:280: undefined reference to `pow'
Status: RESOLVED FIXED
Product: gnome-bluetooth
Classification: Core
Component: general
3.11.x
Other All
: Normal normal
: ---
Assigned To: gnome-bluetooth-general-maint@gnome.bugs
gnome-bluetooth-general-maint@gnome.bugs
Depends on:
Blocks:
 
 
Reported: 2014-03-19 10:14 UTC by Olav Vitters
Modified: 2014-03-26 23:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
build: Explicitely link to libm (1.52 KB, patch)
2014-03-25 13:25 UTC, Bastien Nocera
committed Details | Review

Description Olav Vitters 2014-03-19 10:14:21 UTC
make[3]: Entering directory '/home/iurt/rpmbuild/BUILD/gnome-bluetooth-3.11.91/lib'
  CCLD     libgnome-bluetooth.la
.libs/bluetooth-settings-widget.o: In function `get_random_pincode':
/home/iurt/rpmbuild/BUILD/gnome-bluetooth-3.11.91/lib/bluetooth-settings-widget.c:280: undefined reference to `pow'
/home/iurt/rpmbuild/BUILD/gnome-bluetooth-3.11.91/lib/bluetooth-settings-widget.c:279: undefined reference to `pow'
collect2: error: ld returned 1 exit status
Makefile:600: recipe for target 'libgnome-bluetooth.la' failed


Happening since a few releases, think never filed a bug. Probably caused by --as-needed linking.

Full build log log available at:
http://pkgsubmit.mageia.org/uploads/failure/cauldron/core/release/20140318111519.ovitters.valstar.1402/log/gnome-bluetooth-3.11.91-1.mga5/build.0.20140318111605.log
Comment 1 Bastien Nocera 2014-03-25 13:25:54 UTC
Created attachment 272850 [details] [review]
build: Explicitely link to libm

For the "pow()" call.
Comment 2 Bastien Nocera 2014-03-25 13:32:17 UTC
Can you check whether that fixes the build?
Comment 3 Olav Vitters 2014-03-26 22:34:03 UTC
Works!!
Comment 4 Bastien Nocera 2014-03-26 23:52:53 UTC
Attachment 272850 [details] pushed as 34f21ee - build: Explicitely link to libm