! 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 !
Implicit linking against libm
Status:
RESOLVED: DUPLICATE
Product:
Xfce4-radio-plugin
Component:
General

Comments

Description Christoph Wickert editbugs 2012-02-29 00:04:12 CET
+++ This bug was initially created as a clone of Bug #8514 +++

The plugin - like most other plugins - implicitly links against libm. This can cause overlinking and become a security problem, thus distributions like Fedora and Ubuntu have changed the default behavior of ld to no longer emit DT_NEEDED. on these distributions the build will then fail with:

/bin/sh ../libtool --tag=CC   --mode=link gcc -std=gnu99 -pthread -I/usr/include/xfce4/libxfce4panel-1.0 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/xfce4 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15   -pthread -I/usr/include/xfce4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/atk-1.0   -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables  -Wl,-z,relro  -o xfce4-diskperf-plugin xfce4_diskperf_plugin-main.o xfce4_diskperf_plugin-config_gui.o xfce4_diskperf_plugin-devperf.o -Wl,--export-dynamic -pthread -lxfce4panel-1.0 -lgtk-x11-2.0 -lgmodule-2.0 -lrt -lxfce4util -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0   -lxfcegui4 -lgtk-x11-2.0 -lxfce4util -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0   
libtool: link: gcc -std=gnu99 -pthread -I/usr/include/xfce4/libxfce4panel-1.0 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/xfce4 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -pthread -I/usr/include/xfce4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/atk-1.0 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -Wl,-z -Wl,relro -o xfce4-diskperf-plugin xfce4_diskperf_plugin-main.o xfce4_diskperf_plugin-config_gui.o xfce4_diskperf_plugin-devperf.o -Wl,--export-dynamic -pthread  -lxfce4panel-1.0 -lgmodule-2.0 -lrt -lxfcegui4 -lgtk-x11-2.0 -lxfce4util -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 -pthread
/usr/bin/ld: xfce4_diskperf_plugin-main.o: undefined reference to symbol 'roundf@@GLIBC_2.1'
/usr/bin/ld: note: 'roundf@@GLIBC_2.1' is defined in DSO /lib/libm.so.6 so try adding it to the linker command line
/lib/libm.so.6: could not read symbols: Invalid operation

Version number:
xfce4-radio-plugin 0.5.6

For more info see
http://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking and
For reference http://fedoraproject.org/wiki/UnderstandingDSOLinkChange
Comment 1 Christoph Wickert editbugs 2012-02-29 00:05:31 CET
(In reply to comment #0)
> Version number:
> xfce4-radio-plugin 0.5.6

Sorry, it's 0.5.1.
Comment 2 Lionel Le Folgoc 2012-11-10 18:30:44 CET

*** This bug has been marked as a duplicate of bug 7983 ***

Bug #8515

Reported by:
Christoph Wickert
Reported on: 2012-02-29
Last modified on: 2012-11-10

People

Assignee:
Stefan Ott
CC List:
1 user

Version

Version:
unspecified

Attachments

Additional information