Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Nov 2002 18:36:20 -0700
From:      Ralph Forsythe <rf-list@centerone.com>
To:        freebsd-isp@freebsd.org
Subject:   Compiling BIND9 with SDB (LDAP) - help!
Message-ID:  <5.1.0.14.2.20021126183345.0190a880@mail.centerone.com>

next in thread | raw e-mail | index | archive | help
Here is a copy of the email I sent to the author of the SDB LDAP addon for 
BIND9.  I wouldn't post here except I need to get this working ASAP so I'm 
trying all possible avenues.  If anyone has built this on FreeBSD and can 
offer some pointers, I'd be most grateful!

--------------------------
I'm trying to install SDB into BIND 9.2.1, and am following your
instructions. I have modified main.c, and Makefile.in, copied the
ldapdb.c/h files as required, etc. In the bind source dir, I run:

./configure --with-openssl
make depend (<-- recommended by the BIND docs if using outside code)
make

It runs for a while, then gives me this:
------------------------------
gcc -g -O2 -I/usr/home/rforsythe/bind-9.2.1 -I./include -I./unix/include
-I/usr/home/rforsythe/bind-9.2.1/lib/lwres/include
-I../../lib/lwres/unix/include -I../../lib/lwres/include
-I/usr/home/rforsythe/bind-9.2.1/lib/dns/include -I../../lib/dns/include
-I../../lib/dns/sec/dst/include
-I/usr/home/rforsythe/bind-9.2.1/lib/isccfg/include
-I../../lib/isccfg/include
-I/usr/home/rforsythe/bind-9.2.1/lib/isccc/include
-I../../lib/isccc/include -I/usr/home/rforsythe/bind-9.2.1/lib/isc/include
-I../../lib/isc -I../../lib/isc/include -I../../lib/isc/unix/include
-I../../lib/isc/nothreads/include -I/usr/local/include -W -Wall
-Wmissing-prototypes -Wcast-qual -Wwrite-strings -c ldapdb.c
ldapdb.c: In function `ldapdb_search':
ldapdb.c:194: warning: `names' might be used uninitialized in this
function
gcc -g -O2 -o named aclconf.o client.o config.o control.o controlconf.o
interfacemgr.o listenlist.o log.o logconf.o main.o notify.o query.o
server.o sortlist.o tkeyconf.o tsigconf.o update.o xfrout.o zoneconf.o
lwaddr.o lwresd.o lwdclient.o lwderror.o lwdgabn.o lwdgnba.o lwdgrbn.o
lwdnoop.o lwsearch.o ldapdb.o unix/os.o ../../lib/lwres/liblwres.a
../../lib/dns/libdns.a -L/usr/lib -lcrypto ../../lib/isccfg/libisccfg.a
../../lib/isccc/libisccc.a ../../lib/isc/libisc.a -L/usr/local/lib -lldap
-llber -lresolv
/usr/libexec/elf/ld: cannot find -lresolv
*** Error code 1
Stop in /usr/home/rforsythe/bind-9.2.1/bin/named.
*** Error code 1
Stop in /usr/home/rforsythe/bind-9.2.1/bin.
*** Error code 1
Stop in /usr/home/rforsythe/bind-9.2.1.
---------------------------

I am attempting this on a FreeBSD 4.7 box (running current -STABLE
binaries), with OpenLDAP2 as my LDAP server. I have ISPMAN (where I found
out about your code) running against LDAP successfully, but nothing had to
compile there either...

When I look in /usr/local/include I see ldap.h and lber.h, but no
lresolv.h so I assume this is my problem, but I'm not sure how to correct
it, or change the SDB code to let me compile this. I tried removing the
-lresolv word from the DBDRIVER_LIBS= line but the results did not change.
I appreciate any help you can give me on this!

Thanks,
Ralph Forsythe 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.2.20021126183345.0190a880>