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

Re: BDB Version Mismatch -- I read the FAQ and searched the archives!



Yup,

Thanks!  I found this also justa few moments after I
posted my oringinal.  Makes me feel like I should have
looked a little harder.

Regards,


--- Craig Dunigan <cdunigan@doit.wisc.edu> wrote:
> I recently ran into the same thing - try setting
> LD_LIBRARY_PATH in your 
> env command.
> 
> On Tue, 22 Mar 2005, Heather Lockridge wrote:
> 
> > I have read the FAQ, in partcicular
> > http://www.openldap.org/faq/data/cache/40.html
> > 
> > I am using Openladap-2.2.23 and get the same
> errors
> > with 2.2.24.  I was using SleepyCat BDB-4.3.27 and
> on
> > reading one of Quannah's posts reverted to 4.2.52
> with
> > all patches.  Same errors no matter which version
> of
> > openldap or of Sleepycat BDB.
> > 
> > Sytstem is Trustix-2.2
> > 
> > and am using a command line of:
> > 
> >  env
> CPPFLAGS="-I/usr/local/BerkeleyDB.4.2/include" \ 
> >  LDFLAGS="-L/usr/local/BerkeleyDB.4.2/lib"
> ./configure
> > 
> > Further details below, but any thoughts greatfuly
> > appreciated.
> > 
> > Thanks!
> > 
> > 
> > The output of which is:
> > checking for db.h... yes
> > checking for Berkeley DB link (default)... no
> > checking for Berkeley DB link (-ldb43)... no
> > checking for Berkeley DB link (-ldb-43)... no
> > checking for Berkeley DB link (-ldb-4.3)... no
> > checking for Berkeley DB link (-ldb-4-3)... no
> > checking for Berkeley DB link (-ldb42)... no
> > checking for Berkeley DB link (-ldb-42)... no
> > checking for Berkeley DB link (-ldb-4.2)... yes
> > checking for Berkeley DB version match... no
> > configure: error: Berkeley DB version mismatch
> > 
> > The file config.log shows:
> > 
> > ; return 0; }
> > configure:18668: checking for Berkeley DB link
> > (-ldb-4.2)
> > configure:18725: cc -o conftest -g -O2
> > -I/usr/local/BerkeleyDB.4.2/include
> > -L/usr/local/BerkeleyDB.4.2/lib conftest.c
> -ldb-4.2 
> > -pthread
> >  -lresolv  1>&5
> > configure:19885: checking for Berkeley DB version
> > match
> > configure:19933: cc -o conftest -g -O2
> > -I/usr/local/BerkeleyDB.4.2/include
> > -L/usr/local/BerkeleyDB.4.2/lib conftest.c
> -ldb-4.2 
> > -pthread
> >  -lresolv  1>&5
> > configure: failed program was:
> > #line 19900 "configure"
> > #include "confdefs.h"
> > 
> > #ifdef HAVE_DB_185_H
> >         choke me;
> > #else
> > #include <db.h>
> > #endif
> > #ifndef DB_VERSION_MAJOR
> > # define DB_VERSION_MAJOR 1
> > #endif
> > #ifndef NULL
> > #define NULL ((void *)0)
> > #endif
> > main()
> > {
> > #if DB_VERSION_MAJOR > 1
> >         char *version;
> >         int major, minor, patch;
> > 
> >         version = db_version( &major, &minor,
> &patch
> > );
> > 
> >         if( major != DB_VERSION_MAJOR || minor <
> > DB_VERSION_MINOR ) {
> >                 printf("Berkeley DB version
> > mismatch\n"
> >                         "\theader: %s\n\tlibrary:
> > %s\n",
> >                         DB_VERSION_STRING,
> version);
> >                 return 1;
> >         }
> > #endif
> > 
> >         return 0;
> > }
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> > http://mail.yahoo.com 
> > 
> 
> -- 
> Craig Dunigan
> 
> 
> 


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/