[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Can't build openldap

At 11:39 AM 2001-09-18, Chris Garrigues wrote:
>As mentioned in my very first message, the configure line looks like this:
>./configure --target=i386-redhat-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --enable-ldbm --enable-passwd --with-ldbm-api=gdbm --enable-shell --enable-local --enable-cldap --disable-rlookups --with-kerberos=k5 --enable-kbind --with-tls --with-cyrus-sasl --enable-wrappers --enable-cleartext --enable-crypt --enable-kpasswd --enable-spasswd --libexecdir=/usr/sbin --localstatedir=/var/run --without-slapd --with-slurpd --without-ldapd --with-threads --disable-shared --enable-static
>and after building most everything, I get the error I described in my last 
>message.  I only mentioned what version of libtool, etc, I had because I assumed it 
>was relevant.
>Given the above ./configure, is there any reason we'd be creating libldap_r.a 
>in ./libraries/, but looking for libldap_r.a in ./libraries/libldap_r/?

I don't have a clue why your build is using odd paths.  The
default configure should produces something like this on Redhat 7.1
Linux (when /openldap is the base source directory):

/bin/sh /openldap/libtool --mode=link cc -g -O2 -I../../include -I../../include   -I/usr/local/include   -L/openldap/libraries -L/usr/local/lib   -o slapd   main.o daemon.o connection.o search.o filter.o add.o charray.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 configinfo.o starttls.o index.o sets.o root_dse.o sasl.o module.o suffixalias.o mods.o  version.o libbackends.a -lavl -lldbm -lldif -llutil -lldap_r -llber -ldb  -lsasl  -lssl -lcrypto   -lcrypt -lresolv -ldl  -pthread  

The fact that its producing lots of extra -L implies to me that
you've mucked with it somehow.