You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Bernd Feucht <be...@bernd-feucht.de> on 2003/06/17 23:22:07 UTC
[users@httpd] Compilation problem with mod_rewrite.c for Apache/1.3.27
When enabling mod_rewrite for Apache/1.3.27, the compilation fails.
My system: Linux 2.4.19 (SuSE 8.1) with gcc 3.2.
I've done the following:
./configure --enable-module=rewrite
-> Output contains:
+ adding selected modules
o rewrite_module uses ConfigStart/End
+ using -ldb1 for DBM support
enabling DBM support for mod_rewrite
make
-> Output contains:
===> src/modules/standard
gcc -c -I../../os/unix -I../../include -DLINUX=22
-I/usr/include/db1 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite
`../../apaci` mod_rewrite.c
In file included from mod_rewrite.c:93:
mod_rewrite.h:136:18: ndbm.h: No such file or directory
mod_rewrite.c: In function `lookup_map_dbmfile':
mod_rewrite.c:2876: `DBM' undeclared (first use in this function)
mod_rewrite.c:2876: (Each undeclared identifier is reported only once
mod_rewrite.c:2876: for each function it appears in.)
mod_rewrite.c:2876: `dbmfp' undeclared (first use in this function)
mod_rewrite.c:2877: `datum' undeclared (first use in this function)
mod_rewrite.c:2877: parse error before "dbmkey"
mod_rewrite.c:2882: `dbmkey' undeclared (first use in this function)
mod_rewrite.c:2885: `dbmval' undeclared (first use in this function)
make[4]: *** [mod_rewrite.o] Error 1
The configure script seems to determine that DBM support for mod_rewrite
can be enabled, but then make fails to find a header file (<ndbm.h>) for
that. By adding "#define NO_DBM_REWRITEMAP" at the beginning of
src/modules/standard/mod_rewrite.h, the compilation runs through without
problems.
Looking forward for your help.
Thanks.
Bernd
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org