"Mike A. Harris" wrote:
> 
> Much better...  Here is line 343 from ttysnoops.c:
> 
> #ifndef SHADOW_PWD
>          if (strcmp(pw->pw_passwd,crypt(buff, pw->pw_passwd)) == 0)
> #else
> 
> I change it to:
> 
> #ifndef SHADOW_PWD
>          if (strcmp(pw->pw_passwd,(char *) crypt(buff, pw->pw_passwd)) == 0)
> #else
> 
> Now I make clean ; make again.
> 
> 1 root@asdf:/usr/src/redhat/SOURCES/ttysnoop-0.12c# make
> gcc -O2 -c -o ttysnoops.o ttysnoops.c
> gcc -O2 -c -o common.o common.c
> gcc ttysnoops.o common.o -o ttysnoops
> ttysnoops.o: In function `authenticate':
> ttysnoops.o(.text+0x6ac): undefined reference to `crypt'
> collect2: ld returned 1 exit status
> make: *** [ttysnoops] Error 1
> 
> Looks like some library is missing, or something.  I just turned

I'd agree. 
add '-lcrypt' to the last compile command.

What version of crypt are you using though?

man crypt:

crypt(3)
#define _XOPEN_SOURCE
#include <unistd.h>
char *crypt(const char *key, const char *salt);

which doesn't look like what you have in the code.
But I've never used crypt either.

        -Thomas



_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to