--On Saturday, August 26, 2006 3:53 PM -0400 beno <zope@2012.vi> wrote:
Prachi Sonalkar wrote:Hi, You may want to verify what version of Berkeley DB do you have installed on your machine, also the Berkeley DB library needs to be in the path. You can also debug the problem and the current DB version being detected in the config.log file, and try configuring again by specifying flags while doing so (for example: env CPPFLAGS="-I/usr/local/BerkeleyDB.4.4/include" \ LDFLAGS="-L/usr/local/BerkeleyDB.4.4/lib" ./configure )
server167# ls /usr/local/BerkeleyDB.4.4/ bin docs include lib
server167# pwd /usr/ports/databases/openldap-2.3.27
server167# env CPPFLAGS="-I/usr/local/BerkeleyDB.4.4/include" \ LDFLAGS="-L/usr/local/BerkeleyDB.4.4/lib" ./configure
... checking for Berkeley DB major version... 4 checking for Berkeley DB minor version... 4 checking for Berkeley DB link (-ldb44)... no checking for Berkeley DB link (-ldb-44)... no checking for Berkeley DB link (-ldb-4.4)... yes checking for Berkeley DB version match... no configure: error: Berkeley DB version mismatch
I suggest reading the config.log created by openldap configure. That's why it is there. It looks like it is finding a header file for a different version of BDB before it is finding the 4.4 one. But of course if you read the config.log, you'll be able to see why specifically it is failing.
configure:6198: cc -E -I/usr/local/BerkeleyDB.4.4/include conftest.c conftest.c:16:28: ac_nonexistent.h: No such file or directory configure:6204: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define OPENLDAP_PACKAGE "OpenLDAP" | #define OPENLDAP_VERSION "2.3.27" | #define LDAP_VENDOR_VERSION 20327 | #define LDAP_VENDOR_VERSION_MAJOR 2 | #define LDAP_VENDOR_VERSION_MINOR 3 | #define LDAP_VENDOR_VERSION_PATCH 27 | #define HAVE_MKVERSION 1 | /* end confdefs.h. */ | #include <ac_nonexistent.h>