pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/37745: OpenLDAP error with latest db4



>Number:         37745
>Category:       pkg
>Synopsis:       openldap-server + latest bdb4 not compatible
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 11 23:05:00 +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




Home | Main Index | Thread Index | Old Index