Subject: Re: openldap: Berkeley DB version mismatch
To: Georg Schwarz <georg.schwarz@freenet.de>
From: Quentin Garnier <cube@cubidou.net>
List: tech-pkg
Date: 08/21/2005 01:12:42
--jtcAeju3WzRmRF+o
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:
>=20
> ...
> 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
>=20
>=20
> 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 bl3.mk file):

BUILDLINK_TRANSFORM+=3D l:db43:db4

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

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"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.

--jtcAeju3WzRmRF+o
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iQEVAwUBQwe46tgoQloHrPnoAQJr2Qf/VMJO1j0eNCcxh2DfS2kWKehIf/zoa94x
AcThTyXhl4OtrVSofnromS0o0CzeThQ0JOQJX+DR6iHk2czSJ9s40GOKjLZ+1Myt
TZOFGQ5EWYokdf2BKinXKrxDL/KGkGtMt5D8dqOnN/65lUr+Lfb2Jsh2+BgHAIPi
ruecEL7TnPkja4RqQKDdlL8WQS0HEAd2ayCWx0phk0AueHpsTB3xegnoFsi1jJfJ
I15JyBSJ4K9b18dFvv2FmCRq55crIxvI/Pi8qtrggYoMkY2J2hwHnB2jos/eRfie
AKEsh5v+jHrfiFCk75a79ZHJgqtJwlR0lCNFjI/f3QHjIAdwXlfZ0A==
=+ghT
-----END PGP SIGNATURE-----

--jtcAeju3WzRmRF+o--