Forum Moderators: phranque
I'm in:
/downloads/apache_1.3.37/src/modules/standard
and issued the command:
/usr/local/apache/bin/apxs -cia mod_rewrite.c
I get the following:
gcc -DLINUX=22 -DHAVE_SET_DUMPABLE -DMOD_SSL=208128 -DUSE_HSREGEX -DEAPI -fpic -DSHARED_MODULE -I/usr/local/apache/include -c mod_rewrite.c
In file included from mod_rewrite.c:51:
mod_rewrite.h:91:18: ndbm.h: No such file or directory
mod_rewrite.c: In function `lookup_map_dbmfile':
mod_rewrite.c:3035: `DBM' undeclared (first use in this function)
mod_rewrite.c:3035: (Each undeclared identifier is reported only once
mod_rewrite.c:3035: for each function it appears in.)
mod_rewrite.c:3035: `dbmfp' undeclared (first use in this function)
mod_rewrite.c:3036: `datum' undeclared (first use in this function)
mod_rewrite.c:3036: syntax error before "dbmkey"
mod_rewrite.c:3044: `dbmkey' undeclared (first use in this function)
mod_rewrite.c:3047: `dbmval' undeclared (first use in this function)
apxs:Break: Command failed with rc=1
Any idea how I get around this?
I haven't seen this problem before, but it looks like all of the errors are due to the missing ndbm.h file.
Carefully check the installation dependencies for this module; The RewriteMap function of mod_rewrite can use ndbm hash files, so support for ndbm will be required to install mod_rewrite.
Having never before seen this error, that's all I know about this.
Jim