This comes up a fair bit, I think.

You need to link with the -lresolv on your system. The functions it is
looking for are used in DNS host lookups.

You may also want to use a newer patch than 2001 03 01 (the most recent
being 2001 11 01a, last I knew). Look in the Makefile and set the LDAPLIBS
line to also include -lresolv.

This should do it for you.

On Sun, 7 Oct 2001, Vishwanath K wrote:

=>Hello all,
=>I patch clean qmail-1.03 with qmail-ldap-1.03-20010301.patch, when i
=>make the qmail
=>it shows the error as below:
=>
=>.....
=>./compile auto_uids.c
=>./auto-str auto_usera `head -1 conf-users` > auto_usera.c
=>./compile auto_usera.c
=>./compile  -I/usr/local/include  qldap-ldaplib.c
=>./compile   qldap-debug.c
=>./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/lib -lldap -llber
=>/usr/local/lib/libldap.so: undefined reference to `res_query'
=>/usr/local/lib/libldap.so: undefined reference to `dn_expand'
=>collect2: ld returned 1 exit status
=>make: *** [qmail-lspawn] Error 1
=>
=>Am not understanding what exactly its looking for, i have all the ldap
=>related .so in /usr/local/lib
=>Kindly help
=>
=>---------------------------
=>K Vishwanath
=>iNabling Technologies Pvt Ltd
=>Rajajinagar
=>Ph: 3104686, 3104687
=>---------------------------
=>
=>

--
| Stephen "Slepp" Olesen / VE6SLP
| Edmonton, Alberta, Canada / (780) 425-4798
| President of Geeks Anonymous + http://www.geeksanon.ca/
+---------------------------------


Reply via email to