Building an Advanced Mail Server
Subject:   Problem with vpopmail make
Date:   2005-03-25 05:06:34
From:   peecee
I'm getting an error during make in vpopmail...

gcc -g -O2 -Wall -o vchkpw vchkpw.o md5.o hmac_md5.o libvpopmail.a -L/usr/lib/mysql -lmysqlclient -lz -lcrypt
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make[2]: *** [vchkpw] Error 1
make[2]: Leaving directory `/tmp/vpopmail-5.4.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/vpopmail-5.4.2'
make: *** [all] Error 2

My configure statement looks like this:

./configure \
--enable-auth-module=mysql \
--enable-incdir=/usr/include/mysql \
--enable-libdir=/usr/lib/mysql \
--enable-auth-logging=n \
--enable-mysql-logging=n \
--enable-logging=e \
--enable-valias=y \
--enable-passwd=n \

What am I missing? I'm running FC3, kernel 2.6.10-1.770. I've got mysql running and the mysql environment defined in ~vpopmail/etc/vpopmail.mysql (the define statements that were deprecated out of vmysql.h).