From owner-freebsd-isp Tue Nov 26 17:36:25 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C98F37B401 for ; Tue, 26 Nov 2002 17:36:24 -0800 (PST) Received: from blue.centerone.com (blue.centerone.com [204.133.183.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86BC043E88 for ; Tue, 26 Nov 2002 17:36:23 -0800 (PST) (envelope-from rf-list@centerone.com) Received: from DELIVERANCE-XP.centerone.com (hs5-ifw.wiaas.org [65.102.239.61]) by blue.centerone.com (8.9.3/8.9.3) with ESMTP id SAA03473 for ; Tue, 26 Nov 2002 18:55:12 -0700 Message-Id: <5.1.0.14.2.20021126183345.0190a880@mail.centerone.com> X-Sender: rf-list@mail.centerone.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 26 Nov 2002 18:36:20 -0700 To: freebsd-isp@freebsd.org From: Ralph Forsythe Subject: Compiling BIND9 with SDB (LDAP) - help! Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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