Gentoo Archives: gentoo-alt

From: Martin Luessi <mluessi@×××××.com>
To: gentoo-alt@l.g.o
Subject: [gentoo-alt] gentoo prefix: dev-libs/libxml2 tries to link to system zlib
Date: Wed, 21 Sep 2011 21:28:47
Message-Id: CANyH56-7D2FOKR8HrSLfH1xpqFOniU2W+htrcZJQukpzhCjyaQ@mail.gmail.com
1 Hi,
2
3 I have the following problem with my gentoo prefix installation on
4 CentOS (amd64): Emerging dev-libs/libxml2-2.7.8-r2 fails with the
5 following error:
6 ...
7 libtool: link: x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native
8 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch
9 -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized
10 -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings
11 -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes
12 -Wnested-externs -Winline -Wredundant-decls -Wl,-O1 -o
13 .libs/testAutomata testAutomata.o ./.libs/libxml2.so -ldl -lz -lm
14 -Wl,-rpath -Wl,/local_mount/space/megcon/3/users/mluessi/gentoo/usr/lib
15 ./.libs/libxml2.so: undefined reference to `gzopen64'
16 ...
17
18 It seems like the linker is trying to the system "libz.so" (which does
19 not have "gzopen64") instead of the "libz.so" in the prefix:
20
21 system:
22 objdump -T /usr/lib/libz.so.1 | grep gzopen
23 00815810 g DF .text 00000014 Base gzopen
24
25 in prefix:
26 objdump -T $EPREFIX/lib/libz.so.1.2.5 | grep gzopen
27 0000000000006320 g DF .text 000000000000000d Base gzopen
28 0000000000006310 g DF .text 000000000000000d ZLIB_1.2.3.3 gzopen64
29
30 What's a bit strange is that "$EPREFIX/lib" is not in the library
31 search path. I tried copying "$EPREFIX/lib/libz.so.1.2.5" into
32 "$EPREFIX/usr/lib/" but it doesn't help (and it would be an ugly
33 solution anyways).
34
35 It seems like this
36 http://www.mail-archive.com/gentoo-alt@l.g.o/msg05874.html
37 is the same problem. Unfortunately no solution was posted. Does anyone
38 have an idea how to fix this?
39
40 Thanks,
41
42 Martin