You probably need to add  -lresolv to the end of the LDAPLIBS line in the
Makefile. See the example line in the Makefile where it says you might need
this for Solaris (turns out I need it on redhat too).

> From: "Danilo Ingami" <[EMAIL PROTECTED]>
> Date: Fri, 14 Dec 2001 14:47:29 +0100
> To: "Qmail-LDAP" <[EMAIL PROTECTED]>
> Subject: compiling problem
> 
> hi there,
> i've tried to compile the qmail-103 +  qmail-ldap-1.03-20010501.patch but
> when i try to compile i found this error. can one ofu can help me?
> thanks in advance
> 
> ./load qmail-lspawn spawn.o prot.o slurpclose.o coe.o control.o \
> check.o qldap-ldaplib.o qldap-debug.o sig.a strerr.a getln.a \
> wait.a case.a cdb.a fd.a seek.a open.a env.a stralloc.a alloc.a \
> substdio.a str.a qldap-errno.o error.a fs.a auto_qmail.o \
> auto_uids.o auto_usera.o
> auto_spawn.o -L/usr/local/openldap/lib -lldap -llber
> /usr/local/openldap/lib/libldap.so: undefined reference to `__dn_expand'
> /usr/local/openldap/lib/libldap.so: undefined reference to `__res_query'
> collect2: ld returned 1 exit status
> make: *** [qmail-lspawn] Error 1
> _________________________________________________
> Danilo Ingami
> Tecnologie nelle Reti e nei Sistemi S.p.A.
> Sistemi Informativi
> Via della Bufalotta, 378 - 00139 Roma
> Tel. + 39 06 87 28 14 07
> Fax + 39 06 87 28 15 50
> Cell.+ 39 33 57 74 82 34
> _________________________________________________
> 
> 

Reply via email to