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

RE: configure: error: Berkeley DB version mismatch



My comments:

1) Pls use /usr/ccs/bin/make (SUN's version) instead of
/usr/local/bin/make (I think this is GNU make), overwrite this in "env
.." prefix of the "./configure" command I suggest.

2) Yes Setting of LD_LIBRARY_PATH "CAN BE REALLY BAD" in /etc/profile,
BUT it is OK if u just set it in a script or shell session and it is
short lived. If u set it in "env LD_LIBRARY_PATH ... ./configure ..."
command line, it is forgotton after the completion of "./configure".
Anyway u can try twice, 1st without it and 2nd with it, and see if it
makes any diff.

3) I suggest u 1st try to configure without SASL, I use simple bind with
start_tls and avoid SASL, I suggest u remove SASL lib from the LDFLAGS
and CPPFLAGS. For my successful builds I did not use SASL.

4) gcc 3.3.2 is fine

5) I recommend everyone install latest version of libtool and/or
autoconf, I was just told openldap uses its own libtool BUT I do know
that if we were to continue building other SWs like NSS_LDAP and
PAM_LDAP, these latest library support tools are required or more times
in wasted in troubleshooting ./configure.

6) Could u try the following, explicting saying the API used will be
BDB.

env MAKE=/usr/ccs/bin/make CC=gcc CPPFLAGS="-I/usr/local/ssl/include
-I/usr/local/BerkeleyDB.4.2/include" LDFLAGS="-L/usr/local/ssl/lib
-L/usr/local/BerkeleyDB.4.2/lib"
LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.2/lib ./configure --enable-bdb
--enable-ldbm --enable-ldap --without-threads --with-ldbm-api=berkeley
--with-ldbm-module=static --with-ldbm-type=hash --enable-crypt
--with-tls --prefix=/usr/local/openldap

(Note: I can't find --with-ldbm-module=static in ./configure --help,
this option was from someone's advice, not mine, if it does not make any
diff. and it works, just fine, if not, pls don't ask me what it is)

-----Original Message-----
From: Cameron Gregg [mailto:cam@yak.com.au] 
Sent: Thursday, September 16, 2004 8:02 AM
To: Tay, Gary
Cc: OpenLDAP Software List
Subject: Re: configure: error: Berkeley DB version mismatch


Tay, Gary wrote:

> I have tried 2.2.13 (many times) and 2.2.15 (just once) on Solaris8 
> without issue.
> 
> Could u provide the following details for maillist users to help u:

Here they all are, I hope you can make something of it.

> 
> 1) full command line of "./configure" including arguments and 
> environment setting prefixes

  ./configure --prefix=/usr/local/openldap --with-tls --enable-crypt 
--enable-bdb


> 2) assuming u r using /bin/sh, output of "set" to show $PATH, 
> $LD_LIBRARY_PATH and others, assuming u did not overwrite them in 
> "./configure" using "env" prefix


# echo $LDFLAGS
-L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib 
-L/usr/local/cyrus-sasl/lib
# echo $CPPFLAGS
-I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include 
-I/usr/local/cyrus-sasl/include
# echo $PATH /usr/sbin:/usr/bin:/usr/local/bin:/usr/ccs/bin:/usr/ucb


# crle

Configuration file [3]: /var/ld/ld.config
   Default Library Path (ELF):   /usr/lib:/usr/local/lib
   Trusted Directories (ELF):    /usr/lib/secure  (system default)

Command line:
   crle -c /var/ld/ld.config -l /usr/lib:/usr/local/lib


# echo $LD_LIBRARY_PATH

#
// I usually try not to set this, I've heard it's bad???


> 3) partial config.log showing the errors

# tail config.log
         if( major != DB_VERSION_MAJOR || minor < DB_VERSION_MINOR ) {
                 printf("Berkeley DB version mismatch\n"
                         "\texpected: %s\n\tgot: %s\n",
                         DB_VERSION_STRING, version);
                 return 1;
         }
#endif

return 0;

// I posted the full config.log in another post in this thread.


> 4) what version of gcc are u using? (gcc -v)

# gcc -v
Reading specs from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as 
--with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.3.2

> 5) output of "which ld" and "which make"

# which ld
/usr/ccs/bin/ld
# which make
/usr/local/bin/make
#

> 
> Rgds
> Gary
>

any help??

Thanks
Cameron