Subject: Re: problems building openldap
To: Gavan Fantom <>
From: Steven M. Bellovin <>
List: tech-pkg
Date: 11/28/2004 20:06:02
In message <>, G
avan Fantom writes:
>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
># cd /usr/pkgsrc/x11/kdebase3
># make show-var VARNAME=BDB_TYPE
>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.
I did that; it compiled successfully.  I wouldn't have guessed at your 
observation; I was puzzled enough afterwards when I saw that pkg_info 
listed db4 as a dependency, when it hadn't built it automatically the 
first time...


		--Steve Bellovin,