! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-panel should link to libm directly
Status:
RESOLVED: FIXED
Product:
Xfce4-panel
Component:
General

Comments

Description Kevin Fenzi 2010-02-14 05:36:38 CET
xfce4-panel needs a symbol from libm, but only indrectly links to it. It should explicitly link to it. 

See: https://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking
for more info. 

/usr/bin/ld: xfce4_panel-panel-properties.o: undefined reference to symbol 'rint@@GLIBC_2.2.5'
/usr/bin/ld: note: 'rint@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line

hacky patch: 

diff -Nur xfce4-panel-4.6.3.orig/panel/Makefile.in xfce4-panel-4.6.3/panel/Makefile.in
--- xfce4-panel-4.6.3.orig/panel/Makefile.in	2010-02-13 19:51:28.000000000 -0700
+++ xfce4-panel-4.6.3/panel/Makefile.in	2010-02-13 20:49:00.000000000 -0700
@@ -325,7 +325,7 @@
 	$(LIBXFCEGUI4_LIBS)							\
 	$(LIBSTARTUP_NOTIFICATION_LIBS)						\
 	$(GMODULE_LIBS)								\
-	$(LIBX11_LIBS)
+	$(LIBX11_LIBS) -lm
 
 xfce4_panel_DEPENDENCIES = \
 	$(top_builddir)/libxfce4panel/libxfce4panel.la
Comment 1 Nick Schermer editbugs 2010-02-24 13:42:25 CET
Fixed in 2904023.

Bug #6233

Reported by:
Kevin Fenzi
Reported on: 2010-02-14
Last modified on: 2010-02-24

People

Assignee:
Nick Schermer
CC List:
0 users

Version

Version:
Unspecified

Attachments

Additional information