Subject: Re: problems building openldap
To: Steve Bellovin <smb@research.att.com>
From: Gavan Fantom <gavan@coolfactor.org>
List: tech-pkg
Date: 11/28/2004 22:49:58
On Sat, 27 Nov 2004, Steve Bellovin wrote:

> I'm trying to build openldap (rather, it's being built by a request to
> build kde).  I'm getting the following problem:
> [...]
> checking for db.h... yes
> checking for Berkeley DB link (default)... yes
> checking for Berkeley DB version match... yes
> checking for Berkeley DB thread support... no
> checking Berkeley DB version for BDB backend... no
> configure: error: BDB: BerkeleyDB version incompatible
> *** Error code 1

When built as a dependency of KDE, openldap is built with BDB_TYPE=db1. 
When built on its own, it's built with BDB_TYPE=db4.

To illustrate this:

# cd /usr/pkgsrc/databases/openldap
# make show-var VARNAME=BDB_TYPE
db4
# cd /usr/pkgsrc/x11/kdebase3
# make show-var VARNAME=BDB_TYPE
db1

That's on NetBSD 2.0_RC5, both inside and outside a pkg_comp chroot.

I don't yet understand enough about this to know why, though. If anyone 
could explain this I'd be very happy, as this is biting me quite hard 
right now.

As a workaround, try installing openldap first.

-- 
Gillette - the best a man can forget