Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compile net-www/apache-1.3.33-r2 fails on mod_rewrite
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
hassler
n00b
n00b


Joined: 24 Apr 2004
Posts: 12
Location: Beavercreek, Ohio USA

PostPosted: Sun Apr 24, 2005 9:04 pm    Post subject: Compile net-www/apache-1.3.33-r2 fails on mod_rewrite Reply with quote

I'm getting the following errors on mod_rewrite when trying to compile apache-1.3.33-r2:
Code:

mod_rewrite.c: In function `lookup_map_dbmfile':
mod_rewrite.c:3037: error: `DBM' undeclared (first use in this function)
mod_rewrite.c:3037: error: (Each undeclared identifier is reported only once
mod_rewrite.c:3037: error: for each function it appears in.)
mod_rewrite.c:3037: error: `dbmfp' undeclared (first use in this function)
mod_rewrite.c:3038: error: `datum' undeclared (first use in this function)
mod_rewrite.c:3038: error: syntax error before "dbmkey"
mod_rewrite.c:3046: error: `dbmkey' undeclared (first use in this function)
mod_rewrite.c:3049: error: `dbmval' undeclared (first use in this function)
gcc -shared  -o mod_auth_anon.so mod_auth_anon.lo -L/usr/lib -lm -lcrypt -ldb-4.1 -lmm -lexpat -lgdbm -lgdbm_compat -lpthread
make[4]: *** [mod_rewrite.so] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/var/tmp/portage/apache-1.3.33-r2/work/apache_1.3.33/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/var/tmp/portage/apache-1.3.33-r2/work/apache_1.3.33'
make: *** [build] Error 2

!!! ERROR: net-www/apache-1.3.33-r2 failed.
!!! Function src_compile, Line 123, Exitcode 2
!!! problem compiling apache
!!! If you need support, post the topmost build error, NOT this status message.

What am I missing?
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Mon Apr 25, 2005 12:37 pm    Post subject: Reply with quote

have you checked: http://bugs.gentoo.org/ ?
Back to top
View user's profile Send private message
lythander
n00b
n00b


Joined: 21 Sep 2004
Posts: 4

PostPosted: Fri May 20, 2005 2:59 pm    Post subject: ME, too, and still with 1.3.33-r4 Reply with quote

I'm seeing the same error, both with r2, and now with r4. Anyone have any thoughts?
Back to top
View user's profile Send private message
neerolyte
n00b
n00b


Joined: 04 Jun 2004
Posts: 44
Location: Melbourne, Australia

PostPosted: Thu Jun 02, 2005 7:25 am    Post subject: Reply with quote

I'm getting this with net-www/apache-1.3.33-r4 as well.
Back to top
View user's profile Send private message
neerolyte
n00b
n00b


Joined: 04 Jun 2004
Posts: 44
Location: Melbourne, Australia

PostPosted: Fri Jun 03, 2005 6:47 am    Post subject: Reply with quote

An error we all seemed to have missed:
Code:
In file included from mod_rewrite.c:50:
mod_rewrite.h:90:18: ndbm.h: No such file or directory

Perhaps this helps?
Back to top
View user's profile Send private message
xavan
n00b
n00b


Joined: 20 Jun 2003
Posts: 50

PostPosted: Mon Jul 25, 2005 7:16 am    Post subject: Reply with quote

Same problem for me on AMD64 platform.
Back to top
View user's profile Send private message
trooper_ryan
n00b
n00b


Joined: 07 Apr 2004
Posts: 74

PostPosted: Tue Aug 02, 2005 12:03 am    Post subject: Reply with quote

I'm getting the same with apache-1.3.33-r10.


Code:
gcc -c  -I../../os/unix -I../../include  -O2 -march=pentium4 -fomit-frame-pointer -DHARD_SERVER_LIMIT=512               -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX=22 -DTARGET=\"apache\" -DHAVE_SET_DUMPABLE -I/usr/include/db4.2 -DDEV_RANDOM=/dev/random -DUSE_HSREGEX -DEAPI -DEAPI_MM `../../apaci` -fpic -DSHARED_MODULE mod_auth_dbm.c && mv mod_auth_dbm.o mod_auth_dbm.lo
mod_rewrite.c: In function `lookup_map_dbmfile':
mod_rewrite.c:3037: error: `DBM' undeclared (first use in this function)
mod_rewrite.c:3037: error: (Each undeclared identifier is reported only once
mod_rewrite.c:3037: error: for each function it appears in.)
mod_rewrite.c:3037: error: `dbmfp' undeclared (first use in this function)
mod_rewrite.c:3038: error: `datum' undeclared (first use in this function)
mod_rewrite.c:3038: error: syntax error before "dbmkey"
mod_rewrite.c:3046: error: `dbmkey' undeclared (first use in this function)
mod_rewrite.c:3049: error: `dbmval' undeclared (first use in this function)
make[4]: *** [mod_rewrite.so] Error 1
make[4]: *** Waiting for unfinished jobs....
gcc -shared  -o mod_auth_dbm.so mod_auth_dbm.lo -L/usr/lib -lm -lcrypt -ldb-4.2 -lmm -lexpat -lgdbm -lgdbm_compat -lpthread
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/var/tmp/portage/apache-1.3.33-r10/work/apache_1.3.33/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/var/tmp/portage/apache-1.3.33-r10/work/apache_1.3.33'
make: *** [build] Error 2

!!! ERROR: net-www/apache-1.3.33-r10 failed.
!!! Function src_compile, Line 124, Exitcode 2
!!! problem compiling apache
!!! If you need support, post the topmost build error, NOT this status message.
Back to top
View user's profile Send private message
Jens Gutzeit
n00b
n00b


Joined: 02 Aug 2005
Posts: 2
Location: Krefeld - NRW - Germany

PostPosted: Tue Aug 02, 2005 5:49 pm    Post subject: Reply with quote

You need to install sys-libs/db-1.85

The 4.x Version has a different API.
Back to top
View user's profile Send private message
yarick
n00b
n00b


Joined: 12 Nov 2004
Posts: 22
Location: Baltimore MD

PostPosted: Wed Aug 17, 2005 4:06 pm    Post subject: SAME ISSUE Reply with quote

Running 2005.1 with this emerge line
ACCEPT_KEYWORDS="~x86" emerge apache openssh mod_ssl mysql mod_php mod_perl libxml2 tiff lame bison cvs

HAS ANYONE BEEN ABLE TO RESOLVE THIS PROBLEM ?

In file included from mod_rewrite.c:50:
mod_rewrite.h:90:18: ndbm.h: No such file or directory
mod_rewrite.c: In function `lookup_map_dbmfile':
mod_rewrite.c:3037: error: `DBM' undeclared (first use in this function)
mod_rewrite.c:3037: error: (Each undeclared identifier is reported only once
mod_rewrite.c:3037: error: for each function it appears in.)
mod_rewrite.c:3037: error: `dbmfp' undeclared (first use in this function)
mod_rewrite.c:3038: error: `datum' undeclared (first use in this function)
mod_rewrite.c:3038: error: syntax error before "dbmkey"
mod_rewrite.c:3046: error: `dbmkey' undeclared (first use in this function)
mod_rewrite.c:3049: error: `dbmval' undeclared (first use in this function)
make[4]: *** [mod_rewrite.so] Error 1
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/var/tmp/portage/apache-1.3.33-r10/work/apache_1.3.33/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/var/tmp/portage/apache-1.3.33-r10/work/apache_1.3.33'
make: *** [build] Error 2

!!! ERROR: net-www/apache-1.3.33-r10 failed.
!!! Function src_compile, Line 124, Exitcode 2
!!! problem compiling apache
!!! If you need support, post the topmost build error, NOT this status message.
Back to top
View user's profile Send private message
adam_aus
n00b
n00b


Joined: 24 Sep 2005
Posts: 14

PostPosted: Sun Sep 25, 2005 3:29 am    Post subject: Reply with quote

Jens Gutzeit wrote:
You need to install sys-libs/db-1.85

The 4.x Version has a different API.

I can confirm this worked for me. I have db-4.2.52_p2 installed, and added 1.85-r2 in a new slot, and Apache has now compiled without problems.
Back to top
View user's profile Send private message
didi666
n00b
n00b


Joined: 09 Sep 2003
Posts: 28
Location: Stuttgart, Germany

PostPosted: Thu Oct 13, 2005 1:56 pm    Post subject: Reply with quote

I just stumbled upon the same problem. This bug is already assigned under

http://bugs.gentoo.org/show_bug.cgi?id=95140

(there is also 2 workarounds described in this link).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum