I had this problem add -lresolv to LDAPLIBS in your Makefile.

steve



Eric Paynter <[EMAIL PROTECTED]> said:

> I just installed OpenLDAP 2.0.11 (release date 20010524) and then tried to 
> build qmail with the ldap patch applied (qmail-ldap-1.03-20010501.patch)... 
I 
> notice that the qmail patch date is older than the ldap release, so that 
may 
> be the problem. On build, it's choking on a library reference to the 
> libldap.so file. The last few lines of the make follow:
> 
> ./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
> 
> 
> Should I install an older ldap? Any other ideas?
> 
> Thanks,
> 
> -Eric
> 
> --
> arctic bears - the internet - your way.
> email hosting from US$8/month, domains from US$19/year.
> http://www.arcticbears.com
> 
> 



-- 
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
Steve Risteter
"Math illiteracy affects 8 out of every 5 people."


Reply via email to