Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: [gentoo-alt] Re: Building python fails on SLES10.1 (python-2.7.2)
Date: Sat, 08 Oct 2011 13:04:58
Message-Id: 20111008130446.GK704@gentoo.org
In Reply to: [gentoo-alt] Re: Building python fails on SLES10.1 (python-2.7.2) by Moritz Schlarb
1 On 08-10-2011 14:24:06 +0200, Moritz Schlarb wrote:
2 > I've got it now!
3 >
4 > The problem was, that the module-libraries weren't even linked to the
5 > corresponding system libraries
6
7 Can you explain this a bit more? How do the prefix-built libs look
8 like? E.g. what's missing there?
9
10 > TL;DR: export LDFLAGS="-L/lib" && emerge python
11 >
12 > On a native gentoo system, I got:
13 > $ ldd crypt.so
14 > ...
15 > libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7690000)
16 > ...
17 > $ equery b /lib/libcrypt.so.1
18 > * Searching for /lib/libcrypt.so.1 ...
19 > sys-libs/glibc-2.12.2 (/lib/libcrypt-2.12.2.so)
20 > sys-libs/glibc-2.12.2 (/lib/libcrypt.so.1 -> libcrypt-2.12.2.so)
21 >
22 > $ ldd nis.so
23 > ...
24 > libnsl.so.1 => /lib/libnsl.so.1 (0xb7713000)
25 > ...
26 > $ equery b /lib/libnsl.so.1
27 > * Searching for /lib/libnsl.so.1 ...
28 > sys-libs/glibc-2.12.2 (/lib/libnsl.so.1 -> libnsl-2.12.2.so)
29 > sys-libs/glibc-2.12.2 (/lib/libnsl-2.12.2.so)
30 >
31 > But crypt_failed.so and nis_failed.so in the prefix build dir just
32 > linked to the default libraries (which I excluded up there) and not the
33 > ones that define the symbols they need esepecially.
34 >
35 > Propably it would be better to do that with -rpath but I haven't figured
36 > that out yet :D
37
38
39 --
40 Fabian Groffen
41 Gentoo on a different level

Attachments

File name MIME type
signature.asc application/pgp-signature