[lfs-support] Issues compiling File 5.10

Ken Moffat zarniwhoop at ntlworld.com
Thu Jan 3 10:37:00 PST 2013


On Thu, Jan 03, 2013 at 09:01:18AM -0600, Prudhomme, Harold wrote:
> I have tried compiling File-5.10 and 5.11 and both keep coming up with
> the same errors: 
> 
>  
> 
> /tools/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../x86_64-unknown
> -linux-gnu/bin/ld: /usr/lib/libz.a(inflate.o): relocation R_x86_64_32S
> against `zcalloc` could not be used when making a shared object;
> recompile with -fPIC
> 
>  
> 
> /usr/lib/libz.a: could not read symbols: Bad value

 On x86_64 a static library cannot be linked into a shared object.
At one time a lot of BLFS programs needed to be recompiled with
CFLAGS including -fPIC passed to configure (or, in the really silly
cases, added into the Makefile).  But in this case I think you broke
libz.so : we move the library to /lib and need to fix up the
symlinks.  In this case, your symlink from /usr/lib is missing or
dangling.  On LFS-7.2 I have:
ken at jtm1 ~ $ls -l {/usr,}/lib/libz.so*
lrwxrwxrwx 1 root root     13 Nov 25 20:19 /lib/libz.so.1 -> libz.so.1.2.7
-rwxr-xr-x 1 root root 124401 Nov 25 20:19 /lib/libz.so.1.2.7
lrwxrwxrwx 1 root root     23 Nov 25 20:19 /usr/lib/libz.so -> ../../lib/libz.so.1.2.7

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce



More information about the lfs-support mailing list