I'm trying to compile xfdesktop on redhat 4 update 5 64 bit. I have everything else compiled for 4.4.2 and xfdesktop is the only thing missing so it's pretty critical to get it working for a full 4.4.2 release. Here's the error: gcc -shared .libs/xfce4_desktop_menu_la-desktop-menu.o .libs/xfce4_desktop_menu_la-desktop-menu-cache.o .libs/xfce4_desktop_menu_la-desktop-menu-file.o .libs/xfce4_desktop_menu_la-desktop-menu-dentry.o .libs/xfce4_desktop_menu_la-desktop-menuspec.o -Wl,--whole-archive ../../common/.libs/libxfdesktop.a -Wl,--no-whole-archive -Wl,--rpath -Wl,/opt/xfce-4.4.2/lib -Wl,--rpath -Wl,/opt/xfce-4.4.2//lib -Wl,--rpath -Wl,/opt/xfce-4.4.2/lib -Wl,--rpath -Wl,/opt/xfce-4.4.2//lib -L/opt/xfce-4.4.2/lib -L/usr/X11R6/lib64 -lSM -lICE -lX11 -L/opt/xfce-4.4.2//lib /opt/xfce-4.4.2/lib/libxfcegui4.so -L/usr/lib64 /opt/xfce-4.4.2/lib/libgtk-x11-2.0.so /opt/xfce-4.4.2//lib/libxfce4util.so /opt/xfce-4.4.2/lib/libgdk-x11-2.0.so /opt/xfce-4.4.2//lib/libatk-1.0.so /opt/xfce-4.4.2/lib/libgio-2.0.so /opt/xfce-4.4.2//lib/libpangoft2-1.0.so /opt/xfce-4.4.2/lib/libgdk_pixbuf-2.0.so /opt/xfce-4.4.2//lib/libpangocairo-1.0.so /opt/xfce-4.4.2//lib/libcairo.so /opt/xfce-4.4.2//lib/libpango-1.0.so /opt/xfce-4.4.2/lib/libfreetype.so -lz /opt/xfce-4.4.2//lib/libfontconfig.so /opt/xfce-4.4.2/lib/libgobject-2.0.so /opt/xfce-4.4.2/lib/libgmodule-2.0.so /opt/xfce-4.4.2/lib/libglib-2.0.so -Wl,--export-dynamic -Wl,-soname -Wl,xfce4_desktop_menu.so -o .libs/xfce4_desktop_menu.so /usr/bin/ld: .libs/xfce4_desktop_menu_la-desktop-menu-dentry.o: relocation R_X86_64_PC32 against `desktop_menuspec_path_free' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make[3]: *** [xfce4_desktop_menu.la] Error 1 make[3]: Leaving directory `/home/mc7/xfce/xfdesktop-4.4.2/modules/menu' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/mc7/xfce/xfdesktop-4.4.2/modules' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/mc7/xfce/xfdesktop-4.4.2' make: *** [all] Error 2
Do 'make distclean', and then try passing --with-pic to configure. Does that help?
the --with-pic didn't work.. before contacting you I actually added -fPIC everywhere I could and it didn't make a difference. I contacted another user who had the exact same problem: https://fcp.surfsite.org/modules/newbb/viewtopic.php?topic_id=51900&forum=11&post_id=240992 and he pointed me to a fix: http://cvs.fedoraproject.org/viewcvs/*checkout*/rpms/xfdesktop/devel/xfdesktop-4.4.2-gcc43.patch Can this be added to a list of fixes and addressed please? Is this a proper fix? I compiled the xfdesktop last night on a 32 bit system as a sanity check on fedora core 3 and I was able to compile it fine. So this looks like it might be a really bad bug on linux 64 bit systems. Can this be addressed? Was the patch "ok" to apply? thanks for getting back to me so quickly.. great to see the xfce community helping out!! Can't say enough! thanks, Mike
No, that's probably a bug on my part. That G_INLINE_FUNC keyword should have been removed since it can cause problems on various systems (including yours, apparently). It wasn't really meant for use in headers like that. Fix checked in.
Created attachment 1754 remove-g_inline_func.diff Sorry for the spam... attaching patch with fix for people who might need it.
*** Bug 4352 has been marked as a duplicate of this bug. ***