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

2.3.17: Berkeley DB version mismatch



HI!

I'm trying to build OpenLDAP 2.3.17 on a Solaris 8 box. I've already
installed BDB 4.3.29 before to prefix /usr/local/bdb. But configure fails
with "Berkeley DB version mismatch".

I have no idea what's wrong here since I already cross-checked the path
names.

$ echo $PATH
/usr/bin:/usr/ccs/bin:/usr/local/bin:/export/home/mstroede/local/bin:/usr/ucb

See configure output and build script below.

Any help would be appreciated.

Ciao, Michael.

------------------------------------------------------------------------------------------
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for Berkeley DB major version... 4
checking for Berkeley DB minor version... 3
checking for Berkeley DB link (-ldb43)... no
checking for Berkeley DB link (-ldb-43)... no
checking for Berkeley DB link (-ldb-4.3)... yes
checking for Berkeley DB version match... no
configure: error: Berkeley DB version mismatch
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `test'.  Stop.
------------------------------------------------------------------------------------------
export CFLAGS="-O2"
export CPPFLAGS="-I/usr/local/ssl/include -I/usr/local/db-4.3/include" 
export LDFLAGS="-L/usr/local/ssl/lib -L/usr/local/db-4.3/lib"
export LD_LIBRARY_PATH="/usr/local/ssl/lib:/usr/local/db-4.3/lib"

/configure \
  --prefix=/usr/local/openldap-2.3 \
  --enable-dynamic \
  --enable-backends=mod \
  --enable-overlays=mod \
  --enable-slapi=yes \
  --with-cyrus-sasl=no \
  --with-kerberos=no \
  --with-tls=yes \
  --with-threads=yes

make
make test