[Python] Can't use crypt on SuSE 6.0

Kieran O' Sullivan kosullivan at snet.wit.ie
Wed Aug 25 12:47:58 CEST 1999


When I tyr to compile python 1.5.2 on SuSE Linux 6.0 with the crypt module
I get the following error.
 
make[1]: Entering directory `/Python-1.5.2/Modules'
gcc  -Xlinker -export-dynamic python.o \
          ../libpython1.5.a   -lieee -ldl  -lm  -o python
../libpython1.5.a(cryptmodule.o): In function `crypt_crypt':
/Python-1.5.2/Modules/./cryptmodule.c:21: undefined reference to `crypt'
collect2: ld returned 1 exit status
make[1]: *** [link] Error 1
make[1]: Leaving directory `/Python-1.5.2/Modules'
make: *** [python] Error 2

I have compiled python 1.5.2 with crypt on SuSE 5.2 with no problems.
There was a previous copy of python 1.5.1 on the SuSE 6.0 machine but
python 1.5.2 cpmpiles without any problem when crypt is not included.
 
When I use -lcrypt option in the Setup file python will compile but I
can't use the crypt function.

When I try I get ImportError: no module named crypt

I have tried the following command with crypt inabled:

  strace -o /tmp/foo -f make install 

but the file that this produced is not a lot of help. 





More information about the Python-list mailing list