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

Re: configure: error: Berkeley DB version mismatch



For the pthread thing, you can have a look at

berkeley-db.../build_unix/config.log

check the line with LOAD_LIBS=' ...' to see if there's the "-l pthread" thing. 
I think this indicates that it is compiled or not with pthreads.

Your open LDAP configure seems to take the pthread because I can see :


configure:19292: cc -o conftest -g -O2 -I/usr/local/ssl/include 
-I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib 
-L/usr/local/BerkeleyDB.4.2/lib conftest.c -ldb-4.2  -pthreads -lresolv 
-lgen -lnsl -lsocket  1>&5

in the config.log...

(still dunno if this helps but, well, at lease I gave it a try :))

stF



> For Solaris8/9 systems, you may also want to set LD_LIBRARY_PATH and put
> the env. Vars. In the configure command line. You may also need a latest
> gcc compiler and/or libgcc libraries.
>
> Eg:
> env 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
>
> My home page has HOW-Tos for beginner to follow.
> http://web.singnet.com.sg/~garyttt/
>
> Rgds
> Gary
>
> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org] On Behalf Of Stefan
> Champailler
> Sent: Tuesday, September 14, 2004 10:44 PM
> To: cam@yak.com.au
> Cc: OpenLDAP-software@OpenLDAP.org
> Subject: Re: configure: error: Berkeley DB version mismatch
>
>
>
> Well, from what I've experienced you should read carefully the
> config.log
> file. I recently installed openLDAP on my Linux with so many problems
> that I
> may help you if you show the log...
>
> Stefan
>
> > Hi all,
> >
> > when doing a configure for openldap i get the error:
> >
> > checking for Berkeley DB version match... no
> > configure: error: Berkeley DB version mismatch
> >
> > I've googled around and but I can't seem to find a solution.
> >
> > BerkeleyDB4.2 is installed (with the two supplied patches)
> >
> > I'm using openldap 2.2.15 on solaris 8.
> >
> > environment variables are set:
> >
> > # echo $LDFLAGS
> > -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib
> > # echo $CPPFLAGS
> > -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include
> > #
> >
> >
> > Can anybody help?
> >
> > Cameron