Build kdebase fails )-:

Ken Moffat ken at linuxfromscratch.org
Wed Mar 15 04:57:52 PST 2006


On Wed, 15 Mar 2006, John Gay wrote:

> Well, everything was going along swimmingly, till I got to kdebase )-:
>
> During make, it fails for:
[...]
> /usr/lib/gcc/x86_64-unknown-linux-gnu/4.0.2/../../../../x86_64-unknown-linux-gnu
> /bin/ld: /usr/X11R6/lib/libXau.a(AuFileName.o): relocation R_X86_64_32 against
> `
> a local symbol' can not be used when making a shared object; recompile with
> -fPI
> C
> /usr/X11R6/lib/libXau.a: could not read symbols: Bad value
> <NOTE>Don't have /usr/X11R6/lib/libXau.a?</NOTE>

  You will get these messages on x86_64 any place that libtool tries to 
use a static (.a) library in a .la, and as it says, it can't link. 
These "recompile with -fPIC" messages fall into three types -

(i) recompile the current package with -fPIC
(ii) fix a broken symlink (I had a dangling symlink for ncurses in my 
scripts, because of a typo - on x86 libtool couldn't find the .so but 
took the .a and ran with it, on x86_64 it barfed).
(iii) convert a Makefile to use .la instead of .a (very uncommon).

  On my pure64 system :

ken at bluesbreaker ~ $ls -l /usr/X11R6/lib/libXau*
lrwxrwxrwx 1 root root    13 2006-03-03 13:40 /usr/X11R6/lib/libXau.so 
-> libXau.so.6.0
lrwxrwxrwx 1 root root    13 2006-03-03 13:40 /usr/X11R6/lib/libXau.so.6 
-> libXau.so.6.0
-rwxr-xr-x 1 root root 15649 2006-03-03 13:40 
/usr/X11R6/lib/libXau.so.6.0
ken at bluesbreaker ~ $

  - Do you have these, and if you do, are the symlinks correct ?

libXau is built while X is building general libraries, I imagine you 
would have to do something fairly unusual to not build it in 6.9 - if 
it's missing, did you log X, and if so, did it error out somewhere 
(search for 'Error:' or 'Error ' to avoid Error.h) ?

Ken
  --
  das eine Mal als Tragödie, das andere Mal als Farce


More information about the cross-lfs mailing list