You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by ia...@digitalhit.com on 2006/11/16 21:29:48 UTC

[users@httpd] mod_rewrite can't find ndbm.h, though we have it

Trying to install mod_rewrite on 1.3.37. Running redhat enterprise.

I keep getting:

 /usr/local/apache/bin/apxs -cia mod_rewrite.c
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

I installed the gdbm from source and locate finds ndbm.h:

/usr/include/gdbm/ndbm.h

I've seen some other messages saying that installing gdbm should fix the
problem, but since I have and it hasn't...any ideas?

-- 
Ian Evans
Chairman & Executive Producer
DigitalHit.com


---------------------------------------------------------------------
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


Re: [users@httpd] mod_rewrite can't find ndbm.h, though we have it

Posted by ia...@digitalhit.com.
On Thu, November 16, 2006 3:36 pm, Joshua Slive wrote:
> 1.3... Hmmm... Haven't compiled that in a long time, but I have a
> vagure recollection of a pre-processor define called NO_DBM_REWRITEMAP
> that can be used to exclude the dbm stuff (if you don't need it for
> the RewriteMap directive).

hmm...is there something I need to change somewhere to do this? I'm sorry
for the inexperience...I'm a writer/photographer first...sysadmin by
default. :-)

-- 
Ian Evans
Chairman & Executive Producer
DigitalHit.com


---------------------------------------------------------------------
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


Re: [users@httpd] mod_rewrite can't find ndbm.h, though we have it

Posted by Joshua Slive <jo...@slive.ca>.
On 11/16/06, ianevans@digitalhit.com <ia...@digitalhit.com> wrote:
> Trying to install mod_rewrite on 1.3.37. Running redhat enterprise.

1.3... Hmmm... Haven't compiled that in a long time, but I have a
vagure recollection of a pre-processor define called NO_DBM_REWRITEMAP
that can be used to exclude the dbm stuff (if you don't need it for
the RewriteMap directive).

Joshua.

---------------------------------------------------------------------
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


Re: [users@httpd] mod_rewrite can't find ndbm.h, though we have it

Posted by Domingos Parra Novo <do...@terra.com.br>.
	Hiyas,

	Just checked on a RHEL 4 AS, and it detected my gdbm installation, and 
"magically", used it to compile Apache 1.3.37.

	I would sugest you to remove your "hand-made" gdbm installation, and 
install the default RedHat packages (try the following command: "yum 
install gdbm gdbm-devel").

	I used the following command to configure apache:

# ./configure --enable-module=rewrite --enable-shared=max

	And the configuration/compilation worked as expected:

Configuring for Apache, Version 1.3.37
...
  + adding selected modules
     o rewrite_module uses ConfigStart/End
  + using -lgdbm for DBM support
       enabling DBM support for mod_rewrite
...

...
gcc -c  -I../../os/unix -I../../include   -DLINUX=22 -DHAVE_SET_DUMPABLE 
-I/usr/include/gdbm -DUSE_HSREGEX `../../apaci` -fpic -DSHARED_MODULE 
mod_rewrite.c && mv mod_rewrite.o mod_rewrite.lo
gcc -shared  -o mod_rewrite.so mod_rewrite.lo
...

Regards,

Domingos.

ianevans@digitalhit.com escreveu:
> Trying to install mod_rewrite on 1.3.37. Running redhat enterprise.
> 
> I keep getting:
> 
>  /usr/local/apache/bin/apxs -cia mod_rewrite.c
> 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
> 
> I installed the gdbm from source and locate finds ndbm.h:
> 
> /usr/include/gdbm/ndbm.h
> 
> I've seen some other messages saying that installing gdbm should fix the
> problem, but since I have and it hasn't...any ideas?

-- 
Domingos Parra Novo
Coordenador de Projetos
Terra Networks Brasil S/A
Tel: +55(51)3284-4275

---------------------------------------------------------------------
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