How to fix "undefined reference to crypt'" while compiling qmail with vpopmail?

~ 0 min
20-07-2011 13:10

If you have a problem like this:

./load qmail-tcpto ip.o now.o open.a lock.a substdio.a  error.a str.a fs.a auto_qmail.o

/home/vpopmail/lib/libvpopmail.a(vpopmail.o): In function mkpasswd3':

/usr/local/src/vpopmail-5.4.4/vpopmail.c:602: undefined reference to crypt'

/home/vpopmail/lib/libvpopmail.a(vauth.o): In function vauth_crypt':

/usr/local/src/vpopmail-5.4.4/vauth.c:1118: undefined reference to crypt'

*** Error code 1

1 error

Do this:

echo "gcc -lcrypt -s" > conf-ld

Should fix everything for you ...

Average rating 1 (1 Vote)

You cannot comment on this entry