Subject: Re: openldap: Berkeley DB version mismatch
To: Georg Schwarz <>
From: Quentin Garnier <>
List: tech-pkg
Date: 08/21/2005 01:12:42
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Aug 21, 2005 at 12:58:55AM +0200, Georg Schwarz wrote:
> When compiling openldap I end up like this:
> ...
> 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)... yes
> checking for Berkeley DB version match... Berkeley DB version mismatch
>         header: Sleepycat Software: Berkeley DB 4.3.28: (April 22, 2005)
>         library: Sleepycat Software: Berkeley DB 4.3.27: (December 22,
> 2004)
> no
> configure: error: Berkeley DB version mismatch
> *** Error code 1
> I have just reinstalled db4-4.3.28. This is the current pkgsrc on Debian
> Linux 4.3.
> I do not know which lib file is actually used (should be libdb4-4.3 I
> guess), but they all look freshly installed. How could I test the
> version number of these libraries? Or more generally: shat is going
> wrong here?

What is wrong is that configure tries libdb-4.3 before the one provided
by pkgsrc (libdb4-4.3), so it finds the library in /usr/lib when it
previously used the headers provided by pkgsrc in the buildlink dir.

Please try adding the following line to openldap's Makefile (I actually
think it should go to db4's file):


Of course, you can also set PREFER_NATIVE+=3D db4.

Quentin Garnier - -
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.2.6 (NetBSD)