Xfce Forum

Sub domains
 

You are not logged in.

#1 2007-03-24 11:38:50

Arichy
Member
Registered: 2007-03-24
Posts: 9

Failed to install xfprint: relocation R_X86_64_32 ; recompile with -fPIC

Hi,

$ sh xfce4-4.4.0-installer.run

results in the following on my AMD64 Debian Etch machine:

...

test -z "/home/arne/local/lib/xfce4/mcs-plugins" || mkdir -p -- . "/tmp/xfce4-4.4.0-installer/destdir.22485/home/arne/local/lib/xfce4/mcs-plugins"
 /usr/bin/install -c -m 644 'xfce-xfprint-settings.desktop' '/tmp/xfce4-4.4.0-installer/destdir.22485/home/arne/local/share/applications/xfce-xfprint-settings.desktop'
 /bin/sh ../libtool --mode=install /usr/bin/install -c  'xfprint_plugin.la' '/tmp/xfce4-4.4.0-installer/destdir.22485/home/arne/local/lib/xfce4/mcs-plugins/xfprint_plugin.la'
libtool: install: warning: relinking `xfprint_plugin.la'
(cd /tmp/xfce4-4.4.0-installer/xfprint/mcs-plugin; /bin/sh ../libtool  --tag=CC --mode=relink gcc -I/home/arne/local/include -I/usr/include -I/usr/include -L/home/arne/local/lib -Wl,-rpath -Wl,/home/arne/local/lib -L/usr/lib -L/usr/lib -o xfprint_plugin.la -rpath /home/arne/local/lib/xfce4/mcs-plugins -avoid-version -module xfprint_plugin_la-xfprint_plugin.lo ../libxfprint/libxfprint.la -L/home/arne/local/lib -lxfcegui4 -lgtk-x11-2.0 -lxfce4util -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -L/home/arne/local/lib -lxfce4mcs-manager -lxfce4util -lglib-2.0 -inst-prefix-dir /tmp/xfce4-4.4.0-installer/destdir.22485)
gcc -shared  .libs/xfprint_plugin_la-xfprint_plugin.o  -Wl,--rpath -Wl,/home/arne/local/lib -Wl,--rpath -Wl,/usr/lib -L/home/arne/local/lib -L/usr/lib -L/tmp/xfce4-4.4.0-installer/destdir.22485/home/arne/local/lib -lxfprint -lxfcegui4 -L/tmp/xfce4-4.4.0-installer/destdir.22485/usr/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lxfce4mcs-manager -lxfce4util -lglib-2.0  -Wl,-rpath -Wl,/home/arne/local/lib -Wl,-soname -Wl,xfprint_plugin.so -o .libs/xfprint_plugin.so
/usr/bin/ld: /usr/lib/libxfprint.a(libxfprint_la-printing-system.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/libxfprint.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
libtool: install: error: relink `xfprint_plugin.la' with the above command before installing it
make[2]: *** [install-xfprint_pluginLTLIBRARIES] Fehler 1
make[2]: Leaving directory `/tmp/xfce4-4.4.0-installer/xfprint/mcs-plugin'
make[1]: *** [install-am] Fehler 2
make[1]: Leaving directory `/tmp/xfce4-4.4.0-installer/xfprint/mcs-plugin'
make: *** [install-recursive] Fehler 1
!! Failed to install xfprint, see the errors above
!! for details on the problem.

So what to do?


Debian Etch

Offline

#2 2007-03-24 21:20:50

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,144
Website

Re: Failed to install xfprint: relocation R_X86_64_32 ; recompile with -fPIC

I've seen this warning a couple of times and to be honest, I don't know how to solve it. Maybe it's some gcc regression with 64 bit computers (because 32 bit does not has this problem), so no help here from /me :cry:

Offline

#3 2007-03-25 00:45:55

weibullguy
Member
From: Kalamazoo, Michigan, USA
Registered: 2007-01-17
Posts: 37
Website

Re: Failed to install xfprint: relocation R_X86_64_32 ; recompile with -fPIC

PIC is an abbreviation for Position Independent Code.  It is object code that can execute at different locations in memory.  PIC is commonly used for shared libraries.  On certain architectures (AMD64 amongst them), shared libraries must be "PIC-enabled".

There are several reasons that you may have -fPIC problems:

  • Broken compiler - not likely since everything else built.

  • Broken -fPIC support checks in the configure scripts - not so in XFCE because it has been built on AMD64 platforms.

  • Lack of -fPIC flag in the software to be built - not so in XFCE because it has been built on AMD64 platforms.

  • Attempting to link dynamically against static libraries - probably the most common (in my limited experience).

You can tell from the error message that #4 is your problem.

relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/libxfprint.a: could not read symbols: Bad value

things are attempting to link against libxfprint.a.  This is not a shared library so ... failure.  To solve this problem, you need to rebuild libxfprint as a shared -fPIC library.

I do not use the installer, but prefer to build each package by hand.  So....I really can't help you work around the issue if you use the install script.  Best I can do is recommend you build xfprint by hand.

BTW, I also noted that things are linking against libraries in /lib.  Not where it should be on an AMD64 system unless Debian isn't compliant with the FHS.  If Debian is FHS-compliant, your 64-bit libraries should be in /lib64.


1. Help the ReliaFree Project --> http://reliafree.sourceforge.net
2. Distribution --> Cross Linux from Scratch
3. Registered Linux user #413054
4. (C)LFS user #17727.
5. Ask smart --> http://www.catb.org/%7Eesr/faqs/smart-questions.html

Offline

#4 2007-04-12 14:46:23

Arichy
Member
Registered: 2007-03-24
Posts: 9

Re: Failed to install xfprint: relocation R_X86_64_32 ; recompile with -fPIC

Same error with 4.4.1-Installer


Debian Etch

Offline

#5 2007-04-12 18:59:35

weibullguy
Member
From: Kalamazoo, Michigan, USA
Registered: 2007-01-17
Posts: 37
Website

Re: Failed to install xfprint: relocation R_X86_64_32 ; recompile with -fPIC

Same answer for 4.4.1 installer.


1. Help the ReliaFree Project --> http://reliafree.sourceforge.net
2. Distribution --> Cross Linux from Scratch
3. Registered Linux user #413054
4. (C)LFS user #17727.
5. Ask smart --> http://www.catb.org/%7Eesr/faqs/smart-questions.html

Offline

Board footer

Powered by FluxBB