Hi,
I have some trouble with the Jedi's checklocalpwd.c programm. (see
ftp://ftp.ldh.org/pub/j/qmail/checklocalpwd.c )
I can compile it on a unix platform, but that's not possible on a linux
platform. (I tried a redhat 4.2 and a red hat 6.0 ..)
Here is the message that I got :
With gcc
% gcc checklocalpwd.c
/tmp/cc4V6NRr.o: In function `main':
/tmp/cc4V6NRr.o(.text+0x3d4): undefined reference to `crypt'
collect2: ld returned 1 exit status
With g++
% g++ checklocalpwd.c
checklocalpwd.c: In function `char * str1e2(char *, char *)':
checklocalpwd.c:39: warning: ANSI C++ forbids implicit conversion from
`void *' in assignment
/tmp/ccQgJYGy.o: In function `main':
/tmp/ccQgJYGy.o(.text+0x3d4): undefined reference to `crypt'
collect2: ld returned 1 exit status
with cc
cc checklocalpwd.c
/tmp/ccw8ZBlP.o: In function `main':
/tmp/ccw8ZBlP.o(.text+0x3d4): undefined reference to `crypt'
collect2: ld returned 1 exit status
I have no idea about the problem.
Any idea are welcome.
Thanks!
Stephan