[Date Prev][Date Next]
Re: BDB mismatch problem
On Mon, 1 Aug 2005, Jon Roberts wrote:
> Date: Mon, 01 Aug 2005 18:53:18 -0500
> From: Jon Roberts <email@example.com>
> Reply-To: firstname.lastname@example.org
> To: Howard Chu <email@example.com>
> Cc: Openldap list <openldap-software@OpenLDAP.org>
> Subject: Re: BDB mismatch problem
> Howard Chu wrote:
> > See ITS#3809.
> Wow. Thanks!
> It worked fine with the following in my (tcsh) environment:
> setenv CC gcc
> setenv CFLAGS "-O -g"
> setenv CPPFLAGS "-I/usr/local/include"
> setenv LDFLAGS "-L/usr/local/lib"
> setenv LD_LIBRARY_PATH "/usr/local/lib"
> setenv ol_cv_db_db_4_dot_3 no
> I understand Kurt's reasoning, but if BDB 4.2.52 is still preferred over 4.3
> for OpenLDAP installs, I personally would side with Walter on redoing the way
> configure finds this particular library.
In my oppinion it would be easier to let configure only try -ldb. One can
then make sure libdb.so is a symbolic link to whichever library version you
intend to link with. Same for db.h. You could even remove libdb.so and
link againts libdb.a if you don't want slapd to depend on a specific version
of the db runtime library. The BerkelyDB is a bit special because it is
quite sensitive to the proper matching of db.h and libdb.so.