NetBSD Problem Report #37745

From bharder@methodlogic.net  Fri Jan 11 23:00:46 2008
Return-Path: <bharder@methodlogic.net>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id E42BC63BB06
	for <gnats-bugs@gnats.netbsd.org>; Fri, 11 Jan 2008 23:00:46 +0000 (UTC)
Message-Id: <20080111230045.GA11855@methodlogic.net>
Date: Fri, 11 Jan 2008 15:00:45 -0800
From: bharder <bharder@methodlogic.net>
To: gnats-bugs@NetBSD.org
Subject: OpenLDAP error with latest db4
X-Send-Pr-Version: 3.95

>Number:         37745
>Category:       pkg
>Synopsis:       openldap-server + latest bdb4 not compatible
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ghen
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 11 23:05:00 +0000 2008
>Closed-Date:    Sun Jan 13 17:23:49 +0000 2008
>Last-Modified:  Sun Jan 13 17:23:49 +0000 2008
>Originator:     =09
>Release:        NetBSD 4.0_STABLE
>Organization:
	Method Digital Logic http://www.methodlogic.net
>Environment:
System: NetBSD manchester 4.0_STABLE NetBSD 4.0_STABLE (manchester) #1: Thu=
 Dec 27 21:45:30 MST 2007 root@manchester:/usr/src/sys/arch/i386/compile/ma=
nchester i386
Architecture: i386
Machine: i386
>Description:
	upgrading to latest (as of Fri Jan 11 14:37:26 MST 2008) bd4 (pkgsrc/datab=
ases/db4) breaks rebuild of openldap server (pkgsrc/databases/openldap-serv=
er).

	Error in openldap-server build as follows:

	checking for Berkeley DB version match... yes
	checking for Berkeley DB thread support... yes
	checking Berkeley DB version for BDB/HDB backends... no
	configure: error: BDB/HDB: BerkeleyDB version incompatible
	*** Error code 1

	Stop.
	make: stopped in /usr/pkgsrc/databases/openldap-server
	*** Error code 1

	Stop.
	make: stopped in /usr/pkgsrc/databases/openldap-server
	*** Error code 1

	Stop.
	make: stopped in /usr/pkgsrc/databases/openldap-server

>How-To-Repeat:
	update db4 in pkgsrc-current (to 4.6.x), build/rebuild openldap-server.
>Fix:
	openldap-server claims to require bdb 4.2-4.5 (inclusive):
	(from pkgsrc/databases/openldap-server/work/openldap-server/openldap-2.3.3=
9/build/openldap.m4)
	/* require 4.2-4.5 */
	#if (DB_VERSION_MAJOR >=3D 4) && (DB_VERSION_MINOR >=3D 2) && (DB_VERSION_=
MINOR < 6)
	__db_version_compat
	#endif =20
		], [ol_cv_bdb_compat=3Dyes], [ol_cv_bdb_compat=3Dno])])
	])

	but http://www.openldap.org/faq/data/cache/44.html says that 4.6 is known =
to work w/ openldap 2.3 and newer... if that's the case this update to patc=
h-bf (applied against "configure") fixes (ultimately this should be applied=
 against build/openldap.m4 as shown above, but the .tgz ships a built confi=
gure).


	Whole patch-bf (previous work, plus new work; search for "require 4.2" to =
see additions):


$NetBSD$

--- configure.orig	2007-10-08 10:38:57.000000000 -0600
+++ configure
@@ -465,7 +465,7 @@ ac_includes_default=3D"\
 # include <unistd.h>
 #endif"
=20
-ac_subst_vars=3D'SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE=
_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transf=
orm_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir locals=
tatedir libdir includedir oldincludedir infodir mandir build_alias host_ali=
as target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor=
 build_os host host_cpu host_vendor host_os target target_cpu target_vendor=
 target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VE=
RSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_=
STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__=
tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE=
 top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJ=
EXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDE=
PMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLI=
B ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP =
LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_=
SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_THREAD BUILD_LIBS=
_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV =
BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_P=
ASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_AU=
DITLOG BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLIC=
Y BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUIL=
D_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS =
SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFL=
AGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAM=
IC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAP=
D_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODU=
LES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS SLAPD_SLP_LIBS SLAPD_G=
MP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
+ac_subst_vars=3D'SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE=
_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transf=
orm_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir locals=
tatedir libdir includedir oldincludedir infodir mandir build_alias host_ali=
as target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor=
 build_os host host_cpu host_vendor host_os target target_cpu target_vendor=
 target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VE=
RSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_=
STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__=
tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE=
 top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJ=
EXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDE=
PMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLI=
B ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP =
LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_=
SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_THREAD BUILD_LIBS=
_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV =
BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_P=
ASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_AU=
DITLOG BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLIC=
Y BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SMBK5PWD BUIL=
D_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT BUILD_SLURPD LDAP_L=
IBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAP=
D_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKE=
NDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PER=
L_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIB=
S TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS SLAPD_S=
LP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES =
LTLIBOBJS'
 ac_subst_files=3D''
=20
 # Initialize some variables set by options.
@@ -1058,6 +1058,7 @@ SLAPD Overlay Options:
     --enable-refint	  Referential Integrity overlay no|yes|mod [no]
     --enable-retcode	  Return Code testing overlay no|yes|mod [no]
     --enable-rwm       	  Rewrite/Remap overlay no|yes|mod [no]
+    --enable-smbk5pwd	  smbk5pwd overlay no|yes|mod [yes]
     --enable-syncprov	  Syncrepl Provider overlay no|yes|mod [yes]
     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
@@ -3176,6 +3177,7 @@ Overlays=3D"accesslog \
 	refint \
 	retcode \
 	rwm \
+	smbk5pwd \
 	syncprov \
 	translucent \
 	unique \
@@ -3472,6 +3474,30 @@ else
 fi;
 # end --enable-rwm
=20
+# OpenLDAP --enable-smbk5pwd
+
+	# Check whether --enable-smbk5pwd or --disable-smbk5pwd was given.
+if test "${enable_smbk5pwd+set}" =3D set; then
+  enableval=3D"$enable_smbk5pwd"
+
+	ol_arg=3Dinvalid
+	for ol_val in no yes mod ; do
+		if test "$enableval" =3D "$ol_val" ; then
+			ol_arg=3D"$ol_val"
+		fi
+	done
+	if test "$ol_arg" =3D "invalid" ; then
+		{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-smbk5=
pwd" >&5
+echo "$as_me: error: bad value $enableval for --enable-smbk5pwd" >&2;}
+   { (exit 1); exit 1; }; }
+	fi
+	ol_enable_smbk5pwd=3D"$ol_arg"
+
+else
+  	ol_enable_smbk5pwd=3D${ol_enable_overlays:-yes}
+fi;
+# end --enable-smbk5pwd
+
 # OpenLDAP --enable-syncprov
=20
 	# Check whether --enable-syncprov or --disable-syncprov was given.
@@ -3908,6 +3934,7 @@ BUILD_PROXYCACHE=3Dno
 BUILD_REFINT=3Dno
 BUILD_RETCODE=3Dno
 BUILD_RWM=3Dno
+BUILD_SMBK5PWD=3Dno
 BUILD_SYNCPROV=3Dno
 BUILD_TRANSLUCENT=3Dno
 BUILD_UNIQUE=3Dno
@@ -35855,8 +35882,8 @@ cat >>conftest.$ac_ext <<_ACEOF
 #	define DB_VERSION_MINOR 0
 #endif
=20
-/* require 4.2-4.5 */
-#if (DB_VERSION_MAJOR >=3D 4) && (DB_VERSION_MINOR >=3D 2) && (DB_VERSION_=
MINOR < 6)
+/* require 4.2-4.6 */
+#if (DB_VERSION_MAJOR >=3D 4) && (DB_VERSION_MINOR >=3D 2) && (DB_VERSION_=
MINOR < 7)
 	__db_version_compat
 #endif
=20
@@ -45817,6 +45844,22 @@ _ACEOF
=20
 fi
=20
+if test "$ol_enable_smbk5pwd" !=3D no ; then
+	BUILD_SMBK5PWD=3D$ol_enable_smbk5pwd
+	if test "$ol_enable_smbk5pwd" =3D mod ; then
+		MFLAG=3DSLAPD_MOD_DYNAMIC
+		SLAPD_DYNAMIC_OVERLAYS=3D"$SLAPD_DYNAMIC_OVERLAYS smbk5pwd.la"
+	else
+		MFLAG=3DSLAPD_MOD_STATIC
+		SLAPD_STATIC_OVERLAYS=3D"$SLAPD_STATIC_OVERLAYS smbk5pwd.o"
+	fi
+
+cat >>confdefs.h <<_ACEOF
+#define SLAPD_OVER_SMBK5PWD $MFLAG
+_ACEOF
+
+fi
+
 if test "$ol_enable_syncprov" !=3D no ; then
 	BUILD_SYNCPROV=3D$ol_enable_syncprov
 	if test "$ol_enable_syncprov" =3D mod ; then
@@ -46440,6 +46483,10 @@ do
 _ACEOF
 cat >>$CONFIG_STATUS <<\_ACEOF
   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+	: Avoid regenerating within pkgsrc
+	exit 0
+	: Avoid regenerating within pkgsrc
+	exit 0
     ac_cs_recheck=3D: ;;
   --version | --vers* | -V )
     echo "$ac_cs_version"; exit 0 ;;
@@ -46755,6 +46802,7 @@ s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;
 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
 s,@BUILD_RWM@,$BUILD_RWM,;t t
+s,@BUILD_SMBK5PWD@,$BUILD_SMBK5PWD,;t t
 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->ghen
Responsible-Changed-By: obache@netbsd.org
Responsible-Changed-When: Sat, 12 Jan 2008 00:55:56 +0000
Responsible-Changed-Why:
Over to OpenLDAP's maintainer.


From: Takahiro Kambe <taca@back-street.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/37745: OpenLDAP error with latest db4
Date: Sun, 13 Jan 2008 20:29:43 +0900 (JST)

 In message <20080111230500.5DBB163BB06@narn.NetBSD.org>
 	on Fri, 11 Jan 2008 23:05:00 +0000 (UTC),
 	bharder <bharder@methodlogic.net> wrote:
 > but http://www.openldap.org/faq/data/cache/44.html says that 4.6 is
 > known to work w/ openldap 2.3 and newer... if that's the case this
 > update to patch-bf (applied against "configure") fixes (ultimately
 > this should be applied against build/openldap.m4 as shown above, but
 > the .tgz ships a built configure).
 AFAIU, from openldap CVS's log, Berkeley DB 4.6 is explicitly rejected
 explicitly on OPENLDAP_2_3 branch for openldap 2.3.x.  And there are
 reports about problem with openldap 2.3 and db 4.6.

 On OPENLDAP_REL_ENG_2_4, Berkeley DB 4.6 is explicitly accepted.

 So, this problem seems to be fixed with updating openldap to 2.4.x.

 -- 
 Takahiro Kambe <taca@back-street.net>

From: Geert Hendrickx <ghen@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/37745 CVS commit: pkgsrc/databases
Date: Sun, 13 Jan 2008 17:15:18 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	ghen
 Date:		Sun Jan 13 17:15:18 UTC 2008

 Modified Files:
 	pkgsrc/databases/openldap: DESCR Makefile Makefile.common distinfo
 	pkgsrc/databases/openldap-client: Makefile PLIST buildlink3.mk
 	pkgsrc/databases/openldap-doc: Makefile PLIST
 	pkgsrc/databases/openldap-server: DESCR MESSAGE Makefile PLIST
 	pkgsrc/databases/openldap/patches: patch-ah patch-bd patch-be patch-bf
 	    patch-bh
 Removed Files:
 	pkgsrc/databases/openldap/files: slurpd.sh
 	pkgsrc/databases/openldap/patches: patch-ak

 Log Message:
 Update openldap packages to OpenLDAP 2.4.7 (forced update for db4-4.6.x
 support, reported via PR pkg/37745 ).

 OpenLDAP 2.4.x brings a lot of new features, including multi-master support,
 dynamic configuration and schema changes, automatic reverse group membership,
 significant performance improvements, etc.  One of the most noticeable changes
 for administrators though is the removal if the slurpd daemon (in favour of
 the sync replication mechanism).  Users of slurpd replication should migrate
 to sync replication before upgrading to OpenLDAP 2.4.x.


 To generate a diff of this commit:
 cvs rdiff -r1.2 -r1.3 pkgsrc/databases/openldap/DESCR
 cvs rdiff -r1.124 -r1.125 pkgsrc/databases/openldap/Makefile
 cvs rdiff -r1.13 -r1.14 pkgsrc/databases/openldap/Makefile.common
 cvs rdiff -r1.60 -r1.61 pkgsrc/databases/openldap/distinfo
 cvs rdiff -r1.5 -r1.6 pkgsrc/databases/openldap-client/Makefile \
     pkgsrc/databases/openldap-client/buildlink3.mk
 cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/databases/openldap-client/PLIST
 cvs rdiff -r1.9 -r1.10 pkgsrc/databases/openldap-doc/Makefile
 cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/databases/openldap-doc/PLIST
 cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/databases/openldap-server/DESCR \
     pkgsrc/databases/openldap-server/MESSAGE \
     pkgsrc/databases/openldap-server/PLIST
 cvs rdiff -r1.10 -r1.11 pkgsrc/databases/openldap-server/Makefile
 cvs rdiff -r1.4 -r0 pkgsrc/databases/openldap/files/slurpd.sh
 cvs rdiff -r1.6 -r1.7 pkgsrc/databases/openldap/patches/patch-ah
 cvs rdiff -r1.2 -r0 pkgsrc/databases/openldap/patches/patch-ak
 cvs rdiff -r1.2 -r1.3 pkgsrc/databases/openldap/patches/patch-bd \
     pkgsrc/databases/openldap/patches/patch-be \
     pkgsrc/databases/openldap/patches/patch-bh
 cvs rdiff -r1.3 -r1.4 pkgsrc/databases/openldap/patches/patch-bf

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: ghen@netbsd.org
State-Changed-When: Sun, 13 Jan 2008 17:23:49 +0000
State-Changed-Why:
OpenLDAP updated to 3.4.7.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.