httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: [PATCH] fix mod_auth_dbm on Red Hat 7 (fwd)
Date Tue, 12 Dec 2000 23:38:30 GMT
+1

Joe Orton wrote:
> 
> Any chance of this being fixed for 1.3.15?
> 
> ---------- Forwarded message ----------
> Date: Wed, 11 Oct 2000 18:06:07 +0100 (BST)
> From: Joe Orton <jorton@redhat.com>
> Reply-To: new-httpd@apache.org
> To: new-httpd@apache.org
> Cc: nalin@redhat.com
> Subject: [PATCH] fix mod_auth_dbm on Red Hat 7
> 
> 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
> 
> 


-- 
===========================================================================
   Jim Jagielski   [|]   jim@jaguNET.com   [|]   http://www.jaguNET.com/
          "Casanova will have many weapons; To beat him you will
              have to have more than forks and flatulence."

Mime
View raw message