Hey all, I’m
pretty new to the whole LDAP experience, but my boss tells me we need to do it,
so I am. Here’s the deal: I’m trying to set up OpenLDAP
with the back-sql database. I’ve followed the
instructions as follows: 1) Download tar file, unpack, etc. etc. 2) Installed iODBC (I used the
FreeBSD port for this one because the source gives me a weird error that I have
yet to get into) 3) I use sh and issue the
following command: LDFLAGS=”-L/usr/local/lib”
CPPFLAGS=”-I/usr/local/include” ./configure –disable-bdb
–enable-sql This configures for me just fine and sets up the Makefile. 5) I “make depend” and this runs fine as well. 6) When I do a “make”, it runs for quite a while
going through the OpenLDAP source and gets to the
back-sql directory then produces the following error: cd back-sql; make
all rm -f version.c ../../../build/mkversion
-v "2.1.22" back_sql > version.c /bin/sh /usr/local/src/openldap-2.1.22/libtool --mode=compile cc -g -O2 -I../../../include -I../../../include -I.. -I./.. -I/usr/local/include -c init.c (etc.) (etc.) (etc.) /bin/sh /usr/local/src/openldap-2.1.22/libtool
--mode=link cc -static -g -O2 -L/usr/local/lib -o slapd
main.o daemon.o connection.o search.o filter.o add.o cr.o attr.o entry.o config.o backend.o result.o operation.o dn.o compare.o modify.o delete.o modrdn.o ch_malloc.o value.o ava.o bind.o
unbind.o abandon.o filterentry.o phonetic.o acl.o str2filter.o aclparse.o init.o user.o repl.o lock.o controls.o
extended.o kerberos.o passwd.o schema.o schema_check.o schema_init.o schema_prep.o schemaparse.o ad.o at.o mr.o
syntax.o oc.o saslauthz.o oidm.o starttls.o index.o sets.o referral.o root_dse.o sasl.o module.o mra.o mods.o limits.o backglue.o operational.o matchedValues.o cancel.o version.o libbackends.a ../../libraries/libavl/libavl.a ../../libraries/libldbm/libldbm.a ../../libraries/liblunicode/liblunicode.a ../../libraries/librewrite/librewrite.a ../../libraries/libldif/libldif.a ../../libraries/liblutil/liblutil.a ../../libraries/libldap_r/libldap_r.la ../../libraries/liblber/liblber.la -liodbc -lssl -lcrypto -lfetch -lcom_err -pthread mkdir .libs libtool: link: cannot
find the library `' *** Error code 1 then stops the “make”.
I’ve searched all over online and found a lot of the same question for
other programs, but either no one answers, or the answers do not apply to my
situation. I decided to bug you all about this because I figure you’re a
lot smarter than I am and might be able to figure this out. I have tried this
on TWO different systems and have gotten the same results. My system
information is below. Thank you for your time and I hope someone can come up
with an answer. Thanks in advance. Adam Towarnyckyj System 1: baron# uname
-a FreeBSD baron 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Mon Oct 27 Libtool version: 1.5 (I updated
this to see if it solved the problem and it didn’t help) iODBC
version: 3.0.5 OpenLDAP version: 2.1.22 (I also
used 2.2.5 with no luck) MySQL version: 4.0 System 2: alpha# uname
-a FreeBSD alpha 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Thu Apr 3 Libtool version: Whatever comes
standard with FreeBSD 4.8 iODBC
version: 3.0.5 (FreeBSD port) OpenLDAP version: 2.1.22 (this
one works fine with BDB installed but I can’t get back-sql to work. Same error message.) MySQL version: 4.0 |