Hi Guys I have been attempting to build 389-ds-base 1.2.4 on openSUSE and have found the configure script makes some assumptions about Berkley DB that are not valid on SUSE. The configure script fails with the following error: configure: checking for db... checking for --with-db... no checking for db.h... using /usr/include/db.h checking for db_create in -ldb-.... no configure: error: /usr/include/db.h is version . but libdb-. not found error: Bad exit status from /var/tmp/rpm-tmp.83160 (%build) On openSUSE the db packages are the following: # rpm -ql libdb-4_5 /usr/lib/libdb-4.5.so # rpm -ql libdb-4_5-devel /usr/include/db.h /usr/include/db4 /usr/include/db4/db.h /usr/include/db4/db_185.h /usr/include/db_185.h /usr/lib/libdb-4.5.a /usr/lib/libdb-4.so /usr/lib/libdb.a /usr/lib/libdb.so # cat /usr/include/db.h #include <db4/db.h> # cat /etc/SuSE-release openSUSE 11.2 (i586) VERSION = 11.2 The attached patch solves this problem for me, but is almost certain to break things on Fedora. Hopefully someone with better m4 foo than I can fix it up... Regards -- Peter Nixon http://peternixon.net/
--- m4/db.m4.original 2009-11-12 17:42:11.000000000 +0200 +++ m4/db.m4 2009-11-12 17:56:47.000000000 +0200 @@ -69,9 +69,9 @@ fi fi dnl figure out which version of db we're using from the header file -db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'` -db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'` -db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'` +db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db4/db.h | awk '{print $3}'` +db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db4/db.h | awk '{print $3}'` +db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db4/db.h | awk '{print $3}'` dnl libname is libdb-maj.min e.g. libdb-4.2 db_libver=${db_ver_maj}.${db_ver_min} dnl make sure the lib is available @@ -79,7 +79,7 @@ save_ldflags="$LDFLAGS" LDFLAGS="$db_lib $LDFLAGS" AC_CHECK_LIB([db-$db_libver], [db_create], [true], - [AC_MSG_ERROR([$db_incdir/db.h is version $db_libver but libdb-$db_libver not found])], + [AC_MSG_ERROR([$db_incdir/db4/db.h is version $db_libver but libdb-$db_libver not found])], [$LIBNSL]) LDFLAGS="$save_ldflags"
-- 389-devel mailing list 389-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-directory-devel