Sameer N I wrote:
Hi,
I am compiling qmail on debian sarge with qmail-ldap patch.
qmail compiles without qmail-patch but breaks with qmail ldap.
The error it gives..
---< snip >---
passwd.o(.text+0x55): In function `cmp_passwd':
: undefined reference to `crypt'
passwd.o(.text+0x7e): In function `cmp_passwd':
: undefined reference to `crypt'
passwd.o(.text+0x328): In function `do_crypt':
: undefined reference to `crypt'
collect2: ld returned 1 exit status
make: *** [auth_pop] Error 1
---< /snip >---
My Makefile options..
---< snip >---
LDAPFLAGS=-DALTQUEUE -DBIGBROTHER -DBIGTODO -DIGNOREVERISIGN
-DQLDAP_CLUSTER -DEXTERNAL_TODO -DDASH_EXT -DDATA_COMPRESS
-DQMQP_COMPRESS -DSMTPEXECCHECK
LDAPLIBS=-L/usr/local/lib -lldap -llber
LDAPINCLUDES=-I/usr/local/include
ZLIB=-lz
ZLIB=-L/usr/lib -lz
ZINCLUDES=-I/usr/include
---< /snip >---
Rest of the Makefile options are unchanged.
You'll have to uncomment
SHADOWLIBS=-lcrypt
Philipp