httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: no NDBM support is compiled in
Date Tue, 13 Aug 2002 11:10:54 GMT
"Werner Schalk" <werner_schalk@gmx.de> writes:

> "RewriteMap: cannot use NDBM mapfile, 
> because no NDBM support is compiled in"
> 
> What must I do to enable ndbm files
> in my apache 2.0.39?

You can change modules/mappers/config9.m4 as follows:

Index: config9.m4
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/mappers/config9.m4,v
retrieving revision 1.11
diff -u -r1.11 config9.m4
--- config9.m4  20 May 2002 21:00:27 -0000      1.11
+++ config9.m4  13 Aug 2002 10:56:28 -0000
@@ -13,9 +13,7 @@
 APACHE_MODULE(userdir, mapping of user requests, , , yes)
 APACHE_MODULE(alias, translation of requests, , , yes)
 
-APACHE_MODULE(rewrite, regex URL translation, , , most, [
-  APR_ADDTO(CFLAGS,-DNO_DBM_REWRITEMAP)
-])
+APACHE_MODULE(rewrite, regex URL translation, , , most)
 
 dnl mod_so should only be built as a static module
 if test "$enable_so" = "yes"; then

At least this built for me on Linux.

I think that the "real" fix is to change mod_rewrite to use apr-util's
dbm support since apr-util properly handles the job of finding which
dbm libraries are available and talking to any available ones.

-- 
Jeff Trawick | trawick@attglobal.net
Born in Roswell... married an alien...

Mime
View raw message