Can't use crypt

Michael Hudson mwh21 at cam.ac.uk
Tue Aug 24 08:20:27 EDT 1999


"Kieran O' Sullivan" <kosullivan at snet.wit.ie> writes:

> 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.

So edit Modules/Setup to add -lcrypt then...

> When I use -lcrypt instead python will compile but I can't use cthe crypt
> function.

Oh. What goes wrong now?

Michael




More information about the Python-list mailing list