Bug 10644 - no support for dbm rewrite maps
Summary: no support for dbm rewrite maps
Status: CLOSED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_rewrite (show other bugs)
Version: 2.0.39
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-10 14:44 UTC by Carsten Gaebler
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Gaebler 2002-07-10 14:44:41 UTC
configure sets -DNO_DBM_REWRITEMAP regardless of any installed (n|g)db(m)
libraries and header files.
Comment 1 Christoph Vogel 2002-08-21 15:34:30 UTC
Applies to 2.0.40 too. Dirty hack for me was comment the following section in 
configure:

  if test "x$CFLAGS" = "x"; then
    echo "  setting CFLAGS to \"-DNO_DBM_REWRITEMAP\""
    CFLAGS="-DNO_DBM_REWRITEMAP"
  else
    apr_addto_bugger="-DNO_DBM_REWRITEMAP"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $CFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        echo "  adding \"$i\" to CFLAGS"
        CFLAGS="$CFLAGS $i"
      fi
    done
  fi

/modules/mappers/config9.m4 makes configure always set NO_DBM_REWRITEMAP.
Comment 2 Jeff Trawick 2002-08-21 19:48:18 UTC
mod_rewrite has just been changed to use the apr-util dbm interface.
This change will be in the next release of Apache 2.0.x.

For now, the SDBM dbm flavor is always used.  It won't be compatible
with dbm rewrite maps built for Apache 1.3 until apr-util supports
ndbm and mod_rewrite is changed to prefer ndbm over the built-in
sdbm.   Someone has expressed to work on ndbm support soon, so 
hopefully that change will be in the next Apache 2.0.x release too.

The PR should be kept open until the ndbm support is available.

Thanks for your report, and thanks for using Apache.
Comment 3 Ian Holsman 2002-08-22 04:57:53 UTC
ndbm support is now in.
Comment 4 Joshua Slive 2002-10-17 02:19:24 UTC
This is fixed.