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 634446 - invalid DSO linking with gnome-panel
invalid DSO linking with gnome-panel
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: panel
2.32.x
Other Linux
: Normal normal
: ---
Assigned To: Panel Maintainers
Panel Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-11-09 18:00 UTC by Didier Roche
Modified: 2010-11-17 14:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix DSO linking issue (1.14 KB, patch)
2010-11-09 18:04 UTC, Didier Roche
rejected Details | Review

Description Didier Roche 2010-11-09 18:00:32 UTC
In debian and ubuntu, we are now linking with strict DSO rules (wiki.debian.org/ToolChain/DSOLinking), which means, not indirect link between libraries.

I noted 2 issues in gnome-panel when trying to rebuilding it: one with xrandr and the other with x11 library. 

The kind of output with such a build is the following:
libtool: link: gcc -Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare -g -O2 -g -Wall -O2 -Wl,-Bsymbolic-functions -o gnome-desktop-item-edit gnome-desktop-item-edit.o panel-ditem-editor.o panel-marshal.o panel-util.o xstuff.o -pthread  ../gnome-panel/libpanel-util/.libs/libpanel-util.a -L/lib -lgnome-desktop-2 -lstartup-notification-1 /usr/lib/libgconf-2.so -lgnome-menu -lcanberra-gtk -lcanberra /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgio-2.0.so /usr/lib/libpangoft2-1.0.so /usr/lib/libpangocairo-1.0.so -lgdk_pixbuf-2.0 -lm /usr/lib/libcairo.so -lpng12 /usr/lib/libpango-1.0.so /usr/lib/libfreetype.so -lfontconfig /usr/lib/libgmodule-2.0.so -ldbus-glib-1 -ldbus-1 -lpthread /usr/lib/libgobject-2.0.so /usr/lib/libgthread-2.0.so -lrt /usr/lib/libglib-2.0.so -pthread
/usr/bin/ld: xstuff.o: undefined reference to symbol 'XDeleteProperty'
/usr/bin/ld: note: 'XDeleteProperty' is defined in DSO /usr/lib/libX11.so.6 so try adding it to the linker command line
/usr/lib/libX11.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status

Here is a patch to fix those build issues. Do not hesitate if you have any questions.
Comment 1 Didier Roche 2010-11-09 18:04:33 UTC
Created attachment 174148 [details] [review]
Fix DSO linking issue
Comment 2 Vincent Untz 2010-11-17 14:59:27 UTC
Apparently not needed anymore thanks to http://git.gnome.org/browse/gnome-panel/commit/?id=d38428d78ca5a3e51e0cf472875652fd2d787ada, according to chat on IRC.