1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
I've got it now! |
5 |
|
6 |
The problem was, that the module-libraries weren't even linked to the |
7 |
corresponding system libraries |
8 |
|
9 |
TL;DR: export LDFLAGS="-L/lib" && emerge python |
10 |
|
11 |
On a native gentoo system, I got: |
12 |
$ ldd crypt.so |
13 |
... |
14 |
libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7690000) |
15 |
... |
16 |
$ equery b /lib/libcrypt.so.1 |
17 |
* Searching for /lib/libcrypt.so.1 ... |
18 |
sys-libs/glibc-2.12.2 (/lib/libcrypt-2.12.2.so) |
19 |
sys-libs/glibc-2.12.2 (/lib/libcrypt.so.1 -> libcrypt-2.12.2.so) |
20 |
|
21 |
$ ldd nis.so |
22 |
... |
23 |
libnsl.so.1 => /lib/libnsl.so.1 (0xb7713000) |
24 |
... |
25 |
$ equery b /lib/libnsl.so.1 |
26 |
* Searching for /lib/libnsl.so.1 ... |
27 |
sys-libs/glibc-2.12.2 (/lib/libnsl.so.1 -> libnsl-2.12.2.so) |
28 |
sys-libs/glibc-2.12.2 (/lib/libnsl-2.12.2.so) |
29 |
|
30 |
But crypt_failed.so and nis_failed.so in the prefix build dir just |
31 |
linked to the default libraries (which I excluded up there) and not the |
32 |
ones that define the symbols they need esepecially. |
33 |
|
34 |
Propably it would be better to do that with -rpath but I haven't figured |
35 |
that out yet :D |
36 |
|
37 |
Am 24.09.2011 23:57, schrieb Martin Luessi: |
38 |
> On Sat, Sep 24, 2011 at 11:21 AM, justin <jlec@g.o> wrote: |
39 |
>> On 9/24/11 4:58 PM, Moritz Schlarb wrote: |
40 |
>>> Hi! |
41 |
>>> |
42 |
>>> On SLES 10.1 (glibc-2.4), building Python fails because the modules |
43 |
>>> crypt and nis cannot be built. |
44 |
>>> I worked around this by editing the ebuild to exclude these from |
45 |
>>> building, hoping that they were not needed for any critical |
46 |
>>> functionality, but maybe there's some other things that can be done! |
47 |
>>> |
48 |
>>> |
49 |
>>> I get this at the end: |
50 |
>>> |
51 |
>>> Python build finished, but the necessary bits to build these modules |
52 |
>>> were not found: |
53 |
>>> _sqlite3 _tkinter bsddb185 |
54 |
>>> dl imageop sunaudiodev |
55 |
>>> To find the necessary bits, look in setup.py in detect_modules() for the |
56 |
>>> module's name. |
57 |
>>> |
58 |
>>> |
59 |
>>> Failed to build these modules: |
60 |
>>> crypt nis |
61 |
>>> |
62 |
>>> The warnings during build are: |
63 |
>>> |
64 |
>>> building 'nis' extension |
65 |
>>> x86_64-pc-linux-gnu-gcc -pthread -fPIC -fno-strict-aliasing -O2 -pipe |
66 |
>>> -fomit-frame-pointer -fwrapv -I/homes/2/schlarbm/gentoo/usr/include -L/ho |
67 |
>>> mes/2/schlarbm/gentoo/lib -L/homes/2/schlarbm/gentoo/usr/lib -DNDEBUG |
68 |
>>> -I/homes/2/schlarbm/gentoo/usr/include -I. -IInclude -I./Include -I/tmp/s |
69 |
>>> chlarbm/gentoo/portage/dev-lang/python-2.7.2/work/Python-2.7.2/Include |
70 |
>>> -I/tmp/schlarbm/gentoo/portage/dev-lang/python-2.7.2/work/Python-2.7.2 |
71 |
>>> -c |
72 |
>>> /tmp/schlarbm/gentoo/portage/dev-lang/python-2.7.2/work/Python-2.7.2/Modules/nismodule.c |
73 |
>>> -o |
74 |
>>> build/temp.linux-x86_64-2.7/tmp/schlarbm/gentoo/portage/dev-lang/python-2.7.2/work/Python-2.7.2/Modules/nismodule.o |
75 |
>>> x86_64-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -L. -Wl,-O1 -L. |
76 |
>>> -fno-strict-aliasing -O2 -pipe -fomit-frame-pointer -fwrapv |
77 |
>>> -I/homes/2/schlarbm/gentoo/usr/include -L/homes/2/schlarbm/gentoo/lib |
78 |
>>> -L/homes/2/schlarbm/gentoo/usr/lib -DNDEBUG -I. -IInclude -I./Include |
79 |
>>> build/temp.linux-x86_64-2.7/tmp/schlarbm/gentoo/portage/dev-lang/python-2.7.2/work/Python-2.7.2/Modules/nismodule.o |
80 |
>>> -L/homes/2/schlarbm/gentoo/usr/lib -L. -lpython2.7 -o |
81 |
>>> build/lib.linux-x86_64-2.7/nis.so |
82 |
>>> *** WARNING: renaming "nis" since importing it failed: |
83 |
>>> build/lib.linux-x86_64-2.7/nis.so: undefined symbol: yp_get_default_domain |
84 |
>>> building 'crypt' extension |
85 |
>>> x86_64-pc-linux-gnu-gcc -pthread -fPIC -fno-strict-aliasing -O2 -pipe |
86 |
>>> -fomit-frame-pointer -fwrapv -I/homes/2/schlarbm/gentoo/usr/include -L/ho |
87 |
>>> mes/2/schlarbm/gentoo/lib -L/homes/2/schlarbm/gentoo/usr/lib -DNDEBUG |
88 |
>>> -I/homes/2/schlarbm/gentoo/usr/include -I. -IInclude -I./Include -I/tmp/s |
89 |
>>> chlarbm/gentoo/portage/dev-lang/python-2.7.2/work/Python-2.7.2/Include |
90 |
>>> -I/tmp/schlarbm/gentoo/portage/dev-lang/python-2.7.2/work/Python-2.7.2 - |
91 |
>>> c |
92 |
>>> /tmp/schlarbm/gentoo/portage/dev-lang/python-2.7.2/work/Python-2.7.2/Modules/cryptmodule.c |
93 |
>>> -o build/temp.linux-x86_64-2.7/tmp/schlarbm/gentoo |
94 |
>>> /portage/dev-lang/python-2.7.2/work/Python-2.7.2/Modules/cryptmodule.o |
95 |
>>> x86_64-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -L. -Wl,-O1 -L. |
96 |
>>> -fno-strict-aliasing -O2 -pipe -fomit-frame-pointer -fwrapv |
97 |
>>> -I/homes/2/schlarb |
98 |
>>> m/gentoo/usr/include -L/homes/2/schlarbm/gentoo/lib |
99 |
>>> -L/homes/2/schlarbm/gentoo/usr/lib -DNDEBUG -I. -IInclude -I./Include |
100 |
>>> build/temp.linux-x86_ |
101 |
>>> 64-2.7/tmp/schlarbm/gentoo/portage/dev-lang/python-2.7.2/work/Python-2.7.2/Modules/cryptmodule.o |
102 |
>>> -L/homes/2/schlarbm/gentoo/usr/lib -L. -lpytho |
103 |
>>> n2.7 -o build/lib.linux-x86_64-2.7/crypt.so |
104 |
>>> *** WARNING: renaming "crypt" since importing it failed: |
105 |
>>> build/lib.linux-x86_64-2.7/crypt.so: undefined symbol: crypt |
106 |
>>> |
107 |
>>> Is there something that can be done? |
108 |
>>> |
109 |
>>> |
110 |
>>> |
111 |
>> |
112 |
>> There is an open bug: |
113 |
>> |
114 |
>> https://bugs.gentoo.org/show_bug.cgi?id=381163 |
115 |
>> |
116 |
>> |
117 |
> |
118 |
> I had the same problem on CentOS. As a workaround I disabled the crypt |
119 |
> and nis modules in the ebuild |
120 |
> |
121 |
> |
122 |
|
123 |
- -- |
124 |
Moritz Schlarb |
125 |
-----BEGIN PGP SIGNATURE----- |
126 |
Version: GnuPG v2.0.17 (GNU/Linux) |
127 |
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ |
128 |
|
129 |
iQEcBAEBAgAGBQJOkEDmAAoJEEXT29373YiIdI8H/31QLWsSdoxeK6fmeSDoaT3o |
130 |
0gPi8z4giVKGsjMsy7UXWp0PboLZ0u9diz1xV3qD/Sx1TjujlOOGCxPUUPFO1rg0 |
131 |
wlUO58kK6I8kSuDFcvTMP3CKN2Wghvu1wJ8CmWtd92peX61FbQKb3ovCf+3K/cMe |
132 |
jwLawjVE8IwFZI6UU83ZNXl+GHQQuNv3tm4rIJeGI/5LpvYmtrvusR2JLQHk1xqJ |
133 |
ZQIhhwtPTwiezLLsjwOBJJw4dUXp8AdVI+MARZyTUxKUFjHrplIYqKXJ6ri9ws3u |
134 |
y6GSllAw4AxIF+uFKLbTCv9e8rHCqqH++koa8tnTAxVADTJDCWZsruNGTPOocKs= |
135 |
=HUin |
136 |
-----END PGP SIGNATURE----- |