[102495] in RedHat Linux List
Re: Tacacs+ compilation error on RH5.1
daemon@ATHENA.MIT.EDU (Igmar Palsenberg)
Thu Dec 3 13:54:46 1998
From: "Igmar Palsenberg" <palsenberg@tebenet.nl>
To: <redhat-list@redhat.com>
Date: Thu, 3 Dec 1998 18:04:29 +0100
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
>Hello !
>I have tacacs+ v2.1 and I could compiled it on Slackware 3.4 >successfully.
>I cannot compile tacacs+ v2.1 on RH5.1. When I try to compile it, the
>message below is displayed
>/tmp/cc044181.: In functin `main':
>/usr/local/etc/tacplus.2.1/generatespasswd.c:69: undefined >reference to
`crypt'
>make: *** [genertespasswd] Errr 1
>[root@kaos tacplus.2.1]#
>In "generatepasswd.c", there is a function call to "crypt()". But >unistd.h
>(including crypt() func.) has already included. And why is slackware >not
>giving me any error message altough RH5.1 gives error ???
Because Slackware uses libc 5 and RedHat libc 6. In Libc6 (GLIBC) the crypt
function is a separate library, called crypt.
You must tell gcc where wo find it : -lcrypt
Put this in the good place in your Makefile.
>Was there anybody facing with the same problem ever before ?
Igmar
>Thanks lot...
>Umut Ceyhan
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.