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 620201 - gnome-main-menu fails to build in Fedora 13
gnome-main-menu fails to build in Fedora 13
Status: RESOLVED FIXED
Product: gnome-main-menu
Classification: Other
Component: general
0.9.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME main menu maintainers
GNOME main menu maintainers
Depends on:
Blocks:
 
 
Reported: 2010-06-01 01:31 UTC by Joel Barrios
Modified: 2010-06-28 13:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Joel Barrios 2010-06-01 01:31:14 UTC
gnome-main-menu-0.9.15 builds perfectly with Fedora 12 (libxml2-devel-2.7.6), but fails to build with Fedora 13 (libxml2-devel-2.7.7). 

/usr/bin/ld: main-menu-ui.o: undefined reference to symbol 'xmlNodeGetContent@@LIBXML2_2.4.30'
/usr/bin/ld: note: 'xmlNodeGetContent@@LIBXML2_2.4.30' is defined in DSO /usr/lib/libxml2.so.2 so try adding it to the linker command line
/usr/lib/libxml2.so.2: could not read symbols: Invalid operation

I found a doc related to this issue:
https://fedoraproject.org/wiki/UnderstandingDSOLinkChange

Basically it says that if the folowing fails:
gcc -o foo1 foo1.o foo2.so -Wl,--rpath-link=.

The fix will be to add foo3.o:
gcc -o foo1 foo1.o foo2.so foo3.so -Wl,--rpath-link=.

This is the output when trying to build with Fedora 13:

gcc -DHAVE_CONFIG_H -I. -I../.. -pthread -DORBIT2=1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2 -I/usr/include/gnome-desktop-2.0 -I/usr/include/gnome-menus -I/usr/include/gconf/2 -I/usr/include/startup-notification-1.0 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/panel-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libxml2 -I/usr/include/libbonobo-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/gail-1.0 -I/usr/include/libart-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/libgtop-2.0   -pthread -I/usr/include/NetworkManager -I/usr/include/libnm-glib -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -Wall -Wmissing-prototypes  -DDATADIR=\""/usr/share"\" -DGNOMELOCALEDIR=\""/usr/share/locale"\"   -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 -c network-status-agent.c
gcc -DHAVE_CONFIG_H -I. -I../.. -pthread -DORBIT2=1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2 -I/usr/include/gnome-desktop-2.0 -I/usr/include/gnome-menus -I/usr/include/gconf/2 -I/usr/include/startup-notification-1.0 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/panel-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libxml2 -I/usr/include/libbonobo-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/gail-1.0 -I/usr/include/libart-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/libgtop-2.0   -pthread -I/usr/include/NetworkManager -I/usr/include/libnm-glib -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -Wall -Wmissing-prototypes  -DDATADIR=\""/usr/share"\" -DGNOMELOCALEDIR=\""/usr/share/locale"\"   -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 -c network-status-info.c
/bin/sh ../../libtool --tag=CC   --mode=link gcc  -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   -o main-menu main-menu.o main-menu-ui.o main-menu-migration.o tile-table.o hard-drive-status-tile.o tomboykeybinder.o eggaccelerators.o network-status-tile.o network-status-agent.o network-status-info.o -pthread -lslab -lgnome-menu -lpanel-applet-2 -lbonoboui-2 -lgnomecanvas-2 -lgnome-2 -lpopt -lart_lgpl_2 -lbonobo-2 -lbonobo-activation -lORBit-2 -lgnome-desktop-2 -lgtk-x11-2.0 -lstartup-notification-1 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lgconf-2 -lgtop-2.0 -lglib-2.0 -lX11 -lcairo   -pthread -L/lib -lnm-glib -lnm-util -ldbus-glib-1 -ldbus-1 -lpthread -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0   -liw -lm 
libtool: link: gcc -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 -o main-menu main-menu.o main-menu-ui.o main-menu-migration.o tile-table.o hard-drive-status-tile.o tomboykeybinder.o eggaccelerators.o network-status-tile.o network-status-agent.o network-status-info.o -pthread -pthread  -lslab -lgnome-menu -lpanel-applet-2 -lbonoboui-2 -lgnomecanvas-2 -lgnome-2 -lpopt -lart_lgpl_2 -lbonobo-2 -lbonobo-activation -lORBit-2 -lgnome-desktop-2 -lgtk-x11-2.0 -lstartup-notification-1 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lfreetype -lfontconfig -lgmodule-2.0 -lgconf-2 -lgtop-2.0 -lX11 -lcairo -L/lib -lnm-glib -lnm-util -ldbus-glib-1 -ldbus-1 -lpthread -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 -liw -lm -pthread
/usr/bin/ld: main-menu-ui.o: undefined reference to symbol 'xmlNodeGetContent@@LIBXML2_2.4.30'
/usr/bin/ld: note: 'xmlNodeGetContent@@LIBXML2_2.4.30' is defined in DSO /usr/lib/libxml2.so.2 so try adding it to the linker command line
/usr/lib/libxml2.so.2: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [main-menu] Error 1
make[2]: Leaving directory `/home/jbarrios/rpmbuild/BUILD/gnome-main-menu-0.9.15/main-menu/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jbarrios/rpmbuild/BUILD/gnome-main-menu-0.9.15'
make: *** [all] Error 2
Comment 1 Vincent Untz 2010-06-28 13:22:51 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.