Add '-lresolv' to LDAPLIBS in Makefile
Chris
On Wed, 24 Apr 2002, Flavio Fonseca wrote:
> Hello to all,
>
> while compiling qmail-ldap patch, it came out with this error:
>
> ./load qmail-lspawn spawn.o prot.o slurpclose.o coe.o control.o \
> check.o qldap-ldaplib.o qldap-debug.o output.o sig.a strerr.a constmap.o \
> 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 auto_break.o -L/lib -lldap -llber
> /lib/libldap.so: undefined reference to `__dn_expand'
> /lib/libldap.so: undefined reference to `__res_query'
> collect2: ld returned 1 exit status
> make: *** [qmail-lspawn] Error 1
>
> I have openldap 2.0.23 installed. I've done this serval times in redhat.
>
> Now I making a server with SuSe 7.2,with the same openldap compiled and
> installed and nothing works. On redhat it works...
>
> Anyone can tell me why? And how to solve it?
>
> Thanks in advance.
>
> Flavio.
>