Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 45007

Summary: emerge mod_perl fails with a compilation error
Product: Gentoo Linux Reporter: Vincenzo Romano <vincenzo.romano>
Component: [OLD] DevelopmentAssignee: Apache Team - Bugzilla Reports <apache-bugs>
Status: VERIFIED NEEDINFO    
Severity: normal CC: perl
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Vincenzo Romano 2004-03-18 02:18:00 UTC
I was trying to emerge mod_perl. The selected version is:
>>> emerge (1 of 2) net-www/apache-1.3.29-r1 to /
>>> Previously fetched file: apache_1.3.29.tar.gz MD5 ;-)
>>> Previously fetched file: mod_ssl-2.8.16-1.3.29.tar.gz MD5 ;-)
>>> Previously fetched file: apache-1.3.29-gentoo.diff.bz2 MD5 ;-)
>>> md5 src_uri ;-) apache_1.3.29.tar.gz
>>> md5 src_uri ;-) apache-1.3.29-gentoo.diff.bz2
>>> md5 src_uri ;-) mod_ssl-2.8.16-1.3.29.tar.gz
>>> emerge (2 of 2) dev-perl/mod_perl-1.27-r4 to /
>>> Previously fetched file: mod_perl-1.27.tar.gz MD5 ;-)
>>> md5 src_uri ;-) mod_perl-1.27.tar.gz

This is the last few lines during the compilation:
gcc -c  -I../../os/unix -I../../include  -O2 -march=athlon-xp -pipe -DHARD_SERVER_LIMIT=512             -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX=22 -DTARGET=\"apache\" -I/usr/include/db4 -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:3067: error: `DBM' undeclared (first use in this function)
mod_rewrite.c:3067: error: (Each undeclared identifier is reported only once
mod_rewrite.c:3067: error: for each function it appears in.)
mod_rewrite.c:3067: error: `dbmfp' undeclared (first use in this function)
mod_rewrite.c:3068: error: `datum' undeclared (first use in this function)
mod_rewrite.c:3068: error: syntax error before "dbmkey"
mod_rewrite.c:3073: error: `dbmkey' undeclared (first use in this function)
mod_rewrite.c:3076: 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.0 -lmm -lexpat -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.29-r1/work/apache_1.3.29/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/var/tmp/portage/apache-1.3.29-r1/work/apache_1.3.29'
make: *** [build] Error 2

!!! ERROR: net-www/apache-1.3.29-r1 failed.
!!! Function src_compile, Line 125, Exitcode 2
!!! compile problem


Reproducible: Always
Steps to Reproduce:
1. emerge mod_perl

Actual Results:  
I get the above compilation errors.

Expected Results:  
I was expecting a "normal" emerge with mod_perl installed into the apache-2.0.48
previously emerged.
Comment 1 Chuck Short (RETIRED) gentoo-dev 2004-04-25 11:14:07 UTC
Please post the full log of your emerge error.
Comment 2 Sergiy Borodych 2004-04-25 14:52:42 UTC
Have you sys-libs/gdbm installed ?
try it
Comment 3 Ryan Roland 2004-07-02 11:55:21 UTC
This looks like it was during the emerge of apache (a mod_perl dependency) that this fatal error occurred.  Try emerging just apache.  It may not be that this is an error in mod_perl, but in apache 1.3.29-r1.
Comment 4 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2005-03-11 04:05:48 UTC
This was indeed a build problem with Apache, not mod_perl.  Re-assigning to apache-bugs.

Please re-open with the output of "emerge info" if you experience this problem with =net-www/apache-1.3.33.
Comment 5 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2005-03-11 04:06:45 UTC
Resolving, NEEDINFO.
Comment 6 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2005-04-23 19:46:58 UTC
Closing.  Please re-open if you continue to experience this bug.