Gentoo Archives: gentoo-amd64

From: Daniel Gryniewicz <dang@g.o>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] binary 32-bit libs, LDPATH questions
Date: Tue, 27 Sep 2005 01:40:12
Message-Id: 1127785125.11469.3.camel@localhost
In Reply to: Re: [gentoo-amd64] binary 32-bit libs, LDPATH questions by Richard Freeman
1 On Mon, 2005-09-26 at 17:44 -0400, Richard Freeman wrote:
2 > -----BEGIN PGP SIGNED MESSAGE-----
3 > Hash: SHA1
4 >
5 > Daniel Gryniewicz wrote:
6 > >
7 > > Best guess is that /usr/NX/lib is listed before /emul/linux/x86/usr/lib
8 > > in ld.so.conf, and so 32-bit programs trying to resolve the X libs get
9 > > the NX libs rather than the emul-linux-x86-xlibs. (NX provides X libs)
10 > > Try moving the /etc/env.d/ file that provides the /usr/NX LDPATH to
11 > > after (higher number prefix) the 04multilib file?
12 > >
13 >
14 > It is listed as 50.
15 >
16 > Snip from ld.so.conf:
17 > ...
18 > /lib32
19 > /usr/lib32
20 > /usr/local/lib32
21 > /lib64
22 > /usr/lib64
23 > /usr/local/lib64
24 > /usr/x86_64-pc-linux-gnu/lib
25 > /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4
26 > /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/32
27 > /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.3
28 > /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.3/32
29 > /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.2
30 > /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.2/32
31 > ...
32 > /usr/NX/lib
33 > ...
34 > /emul/linux/x86/lib
35 > /emul/linux/x86/usr/lib
36 > ...
37 >
38 > I noticed I also have by 32-bit chroot way at the bottom - not sure if
39 > that helps/hurts...
40
41 Okay, so that's presumably the problem. The NX libs are coming before
42 the emul-linux libs. Emul-linux is 75emul-linux-x86-base, try moving
43 the NX libs after and re-running ldconfig.
44
45 Another problem is NX installing 32-bit libs in /usr. That will break
46 multilib-strict, but that's a separate issue.
47
48 Daniel
49
50 --
51 gentoo-amd64@g.o mailing list

Replies

Subject Author
Re: [gentoo-amd64] binary 32-bit libs, LDPATH questions Richard Freeman <rich@××××××××××××××.net>