httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <jor...@redhat.com>
Subject [PATCH] fix mod_auth_dbm on Red Hat 7
Date Wed, 11 Oct 2000 17:06:07 GMT
The mod_auth_dbm.c workaround for glibc 2.1 systems fails on Red Hat 7,
which is based on a beta glibc 2.2, and has headers and libraries in
different places.

The patch below fixes it... Ralf mentioned in the 1.46 commit for
mod_auth_dbm.c that adding -I/usr/include/db1 is not correct: agreed, but
this is better than nothing. (It is now a required change, since in RH7
there is no /usr/include/db.h, and /usr/include/db1/ndbm.h has a #include
<db.h>, so requiring /usr/include/db1 to be in the include path. If that
makes sense.)

Index: find-dbm-lib
===================================================================
RCS file: /home/cvspublic/apache-1.3/src/helpers/find-dbm-lib,v
retrieving revision 1.9
diff -u -r1.9 find-dbm-lib
--- find-dbm-lib	1999/08/10 12:15:53	1.9
+++ find-dbm-lib	2000/10/11 16:37:30
@@ -17,6 +17,10 @@
 		    DBM_LIB="-ldbm"
 		elif ./helpers/TestCompile lib ndbm dbm_open; then
 		    DBM_LIB="-lndbm"
+		elif ./helpers/TestCompile lib db1 dbm_open; then
+		    # For Red Hat 7
+		    DBM_LIB="-ldb1"
+		    CFLAGS="$CFLAGS -I/usr/include/db1"
 		fi
 		if [ "x$DBM_LIB" != "x" ]; then
 		    LIBS="$LIBS $DBM_LIB"


-- 
Joe Orton, Red Hat Europe


Mime
View raw message