! 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 !
can't compile xfdesktop on redhat 4 update 5 64 bit.
Status:
RESOLVED: FIXED
Priority:
Very High
Severity:
blocker
Product:
Xfdesktop
Component:
General

Comments

Description mike ciccarelli 2008-07-02 21:33:30 CEST
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
Comment 1 Brian J. Tarricone (not reading bugmail) 2008-07-02 22:45:24 CEST
Do 'make distclean', and then try passing --with-pic to configure.  Does that help?
Comment 2 mike ciccarelli 2008-07-03 13:41:06 CEST
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
Comment 3 Brian J. Tarricone (not reading bugmail) 2008-07-03 18:14:48 CEST
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.
Comment 4 Brian J. Tarricone (not reading bugmail) 2008-08-04 17:35:08 CEST
Created attachment 1754 
remove-g_inline_func.diff

Sorry for the spam... attaching patch with fix for people who might need it.
Comment 5 Brian J. Tarricone (not reading bugmail) 2008-09-05 07:42:09 CEST
*** Bug 4352 has been marked as a duplicate of this bug. ***

Bug #4193

Reported by:
mike ciccarelli
Reported on: 2008-07-02
Last modified on: 2009-07-14
Duplicates (1):
  • 4352 xfdesktop cannot find symbol "_desktop_menuspec_path_free"

People

Assignee:
Brian J. Tarricone (not reading bugmail)
CC List:
1 user

Version

Attachments

remove-g_inline_func.diff (1.82 KB, patch)
2008-08-04 17:35 CEST , Brian J. Tarricone (not reading bugmail)
no flags

Additional information