We will need a similar patch for Apache 2.0 and Redhat 7.0
Actually I need to do :
EXTRA_LIBS="-ldb1" OPTIM="$RPM_OPT_FLAGS" EXTRA_INCLUDES="-DAPACHE_XLATE
-I/usr/include/db1 -DHAVE_DB_H" ./configure .....
...
EXTRA_LIBS="-ldb1" OPTIM="$RPM_OPT_FLAGS" EXTRA_INCLUDES="-DAPACHE_XLATE
-I/usr/include/db1 -DHAVE_DB_H" make
Regards.
PS: I resubscribed to that list using my real email adress :!
>-----Original Message-----
>From: Martin Kraemer [mailto:[EMAIL PROTECTED]]
>Sent: Monday, April 02, 2001 3:31 PM
>To: [EMAIL PROTECTED]
>Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>Subject: Re: [PATCH-1.3] RedHat, mod_rewrite, and dbm
>
>
>I was thinking of a solution similar to this one. The idea is that we
>better document what header we are looking for, and which library we
>link against.
>
>The patch is based on HGomez' patch.
>
> Martin
>
>Index: modules/standard/mod_auth_db.module
>===================================================================
>RCS file:
>/home/cvs/apache-1.3/src/modules/standard/mod_auth_db.module,v
>retrieving revision 1.7
>diff -u -r1.7 mod_auth_db.module
>--- modules/standard/mod_auth_db.module 1999/11/28
>14:01:05 1.7
>+++ modules/standard/mod_auth_db.module 2001/04/02 13:27:41
>@@ -17,6 +17,12 @@
> elif ./helpers/TestCompile lib db dbopen; then
> DB_VERSION='Berkeley-DB/1.x'
> DB_LIB='-ldb'
>+ elif TCADDINCL='#include <db.h>' INCLUDES1="$INCLUDES1
>-I/usr/include/db1" TLIB="-ldb1" \
>+ helpers/TestCompile func dbm_open; then
>+ # For Red Hat 7
>+ DB_VERSION='Berkeley-DB/1.x'
>+ DB_LIB='-ldb1'
>+ CFLAGS="$CFLAGS -I/usr/include/db1"
> fi
> if [ ".$DB_VERSION" != . ]; then
> if [ ".$DB_LIB" != . ]; then
>
>On Mon, Mar 12, 2001 at 11:44:19AM +0100, [EMAIL PROTECTED] wrote:
>> I submitted some time ago a patch for the db1 location :
>>
>> --- ./src/modules/standard/mod_auth_db.module.orig Tue Jan
>30 19:48:20 2001
>> +++ ./src/modules/standard/mod_auth_db.module Tue Jan 30
>19:53:18 2001
>> @@ -17,6 +17,11 @@
>> elif ./helpers/TestCompile lib db dbopen; then
>> DB_VERSION='Berkeley-DB/1.x'
>> DB_LIB='-ldb'
>> + elif ./helpers/TestCompile lib db1 dbm_open; then
>> + # For Red Hat 7
>> + DB_VERSION='Berkeley-DB/1.x'
>> + DB_LIB='-ldb1'
>> + CFLAGS="$CFLAGS -I/usr/include/db1"
>> fi
>> if [ ".$DB_VERSION" != . ]; then
>> if [ ".$DB_LIB" != . ]; then
>--
><[EMAIL PROTECTED]> | Fujitsu Siemens
> <[EMAIL PROTECTED]> | 81730 Munich, Germany
>