1 |
On Sat, Sep 24, 2011 at 11:21 AM, justin <jlec@g.o> wrote: |
2 |
> On 9/24/11 4:58 PM, Moritz Schlarb wrote: |
3 |
>> Hi! |
4 |
>> |
5 |
>> On SLES 10.1 (glibc-2.4), building Python fails because the modules |
6 |
>> crypt and nis cannot be built. |
7 |
>> I worked around this by editing the ebuild to exclude these from |
8 |
>> building, hoping that they were not needed for any critical |
9 |
>> functionality, but maybe there's some other things that can be done! |
10 |
>> |
11 |
>> |
12 |
>> I get this at the end: |
13 |
>> |
14 |
>> Python build finished, but the necessary bits to build these modules |
15 |
>> were not found: |
16 |
>> _sqlite3 _tkinter bsddb185 |
17 |
>> dl imageop sunaudiodev |
18 |
>> To find the necessary bits, look in setup.py in detect_modules() for the |
19 |
>> module's name. |
20 |
>> |
21 |
>> |
22 |
>> Failed to build these modules: |
23 |
>> crypt nis |
24 |
>> |
25 |
>> The warnings during build are: |
26 |
>> |
27 |
>> building 'nis' extension |
28 |
>> x86_64-pc-linux-gnu-gcc -pthread -fPIC -fno-strict-aliasing -O2 -pipe |
29 |
>> -fomit-frame-pointer -fwrapv -I/homes/2/schlarbm/gentoo/usr/include -L/ho |
30 |
>> mes/2/schlarbm/gentoo/lib -L/homes/2/schlarbm/gentoo/usr/lib -DNDEBUG |
31 |
>> -I/homes/2/schlarbm/gentoo/usr/include -I. -IInclude -I./Include -I/tmp/s |
32 |
>> chlarbm/gentoo/portage/dev-lang/python-2.7.2/work/Python-2.7.2/Include |
33 |
>> -I/tmp/schlarbm/gentoo/portage/dev-lang/python-2.7.2/work/Python-2.7.2 |
34 |
>> -c |
35 |
>> /tmp/schlarbm/gentoo/portage/dev-lang/python-2.7.2/work/Python-2.7.2/Modules/nismodule.c |
36 |
>> -o |
37 |
>> 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 |
38 |
>> x86_64-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -L. -Wl,-O1 -L. |
39 |
>> -fno-strict-aliasing -O2 -pipe -fomit-frame-pointer -fwrapv |
40 |
>> -I/homes/2/schlarbm/gentoo/usr/include -L/homes/2/schlarbm/gentoo/lib |
41 |
>> -L/homes/2/schlarbm/gentoo/usr/lib -DNDEBUG -I. -IInclude -I./Include |
42 |
>> 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 |
43 |
>> -L/homes/2/schlarbm/gentoo/usr/lib -L. -lpython2.7 -o |
44 |
>> build/lib.linux-x86_64-2.7/nis.so |
45 |
>> *** WARNING: renaming "nis" since importing it failed: |
46 |
>> build/lib.linux-x86_64-2.7/nis.so: undefined symbol: yp_get_default_domain |
47 |
>> building 'crypt' extension |
48 |
>> x86_64-pc-linux-gnu-gcc -pthread -fPIC -fno-strict-aliasing -O2 -pipe |
49 |
>> -fomit-frame-pointer -fwrapv -I/homes/2/schlarbm/gentoo/usr/include -L/ho |
50 |
>> mes/2/schlarbm/gentoo/lib -L/homes/2/schlarbm/gentoo/usr/lib -DNDEBUG |
51 |
>> -I/homes/2/schlarbm/gentoo/usr/include -I. -IInclude -I./Include -I/tmp/s |
52 |
>> chlarbm/gentoo/portage/dev-lang/python-2.7.2/work/Python-2.7.2/Include |
53 |
>> -I/tmp/schlarbm/gentoo/portage/dev-lang/python-2.7.2/work/Python-2.7.2 - |
54 |
>> c |
55 |
>> /tmp/schlarbm/gentoo/portage/dev-lang/python-2.7.2/work/Python-2.7.2/Modules/cryptmodule.c |
56 |
>> -o build/temp.linux-x86_64-2.7/tmp/schlarbm/gentoo |
57 |
>> /portage/dev-lang/python-2.7.2/work/Python-2.7.2/Modules/cryptmodule.o |
58 |
>> x86_64-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -L. -Wl,-O1 -L. |
59 |
>> -fno-strict-aliasing -O2 -pipe -fomit-frame-pointer -fwrapv |
60 |
>> -I/homes/2/schlarb |
61 |
>> m/gentoo/usr/include -L/homes/2/schlarbm/gentoo/lib |
62 |
>> -L/homes/2/schlarbm/gentoo/usr/lib -DNDEBUG -I. -IInclude -I./Include |
63 |
>> build/temp.linux-x86_ |
64 |
>> 64-2.7/tmp/schlarbm/gentoo/portage/dev-lang/python-2.7.2/work/Python-2.7.2/Modules/cryptmodule.o |
65 |
>> -L/homes/2/schlarbm/gentoo/usr/lib -L. -lpytho |
66 |
>> n2.7 -o build/lib.linux-x86_64-2.7/crypt.so |
67 |
>> *** WARNING: renaming "crypt" since importing it failed: |
68 |
>> build/lib.linux-x86_64-2.7/crypt.so: undefined symbol: crypt |
69 |
>> |
70 |
>> Is there something that can be done? |
71 |
>> |
72 |
>> |
73 |
>> |
74 |
> |
75 |
> There is an open bug: |
76 |
> |
77 |
> https://bugs.gentoo.org/show_bug.cgi?id=381163 |
78 |
> |
79 |
> |
80 |
|
81 |
I had the same problem on CentOS. As a workaround I disabled the crypt |
82 |
and nis modules in the ebuild |