On 08-10-2011 14:24:06 +0200, Moritz Schlarb wrote:
> I've got it now!
> 
> The problem was, that the module-libraries weren't even linked to the
> corresponding system libraries

Can you explain this a bit more?  How do the prefix-built libs look
like?  E.g. what's missing there?

> TL;DR: export LDFLAGS="-L/lib" && emerge python
> 
> On a native gentoo system, I got:
>  $ ldd crypt.so
> ...
>       libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7690000)
> ...
>  $ equery b /lib/libcrypt.so.1
>  * Searching for /lib/libcrypt.so.1 ...
> sys-libs/glibc-2.12.2 (/lib/libcrypt-2.12.2.so)
> sys-libs/glibc-2.12.2 (/lib/libcrypt.so.1 -> libcrypt-2.12.2.so)
> 
>  $ ldd nis.so
> ...
>       libnsl.so.1 => /lib/libnsl.so.1 (0xb7713000)
> ...
>  $ equery b /lib/libnsl.so.1
>  * Searching for /lib/libnsl.so.1 ...
> sys-libs/glibc-2.12.2 (/lib/libnsl.so.1 -> libnsl-2.12.2.so)
> sys-libs/glibc-2.12.2 (/lib/libnsl-2.12.2.so)
> 
> But crypt_failed.so and nis_failed.so in the prefix build dir just
> linked to the default libraries (which I excluded up there) and not the
> ones that define the symbols they need esepecially.
> 
> Propably it would be better to do that with -rpath but I haven't figured
> that out yet :D


-- 
Fabian Groffen
Gentoo on a different level

Attachment: signature.asc
Description: Digital signature

Reply via email to