This is what I get, if you need more info then ask: mod_auth_db.c: In function `get_db_pw': mod_auth_db.c:175: warning: passing arg 2 of pointer to function from incompatible pointer type mod_auth_db.c:175: warning: passing arg 4 of pointer to function makes pointer from integer without a mod_auth_db.c:175: error: too few arguments to function make[4]: *** [mod_auth_db.so] Error 1 make[4]: *** Waiting for unfinished jobs.... gcc -shared -o mod_rewrite.so mod_rewrite.lo -L/usr/lib -lm -lcrypt -ldb1 -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/work/apache_1.3.29/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory `/var/tmp/portage/apache-1.3.29/work/apache_1.3.29' make: *** [build] Error 2 Reproducible: Always Steps to Reproduce: 1. emerge /usr/portage/net-www/apache/apache-1.3.29.ebuild 2. 3. Actual Results: Apache 1.3.29 fails to compile Expected Results: Installed Apache without problems. Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3) ================================================================= System uname: 2.6.3 i686 AMD Duron(tm) processor Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=athlon-xp -march=athlon-xp -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -mcpu=athlon-xp -march=athlon-xp -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache sandbox" GENTOO_MIRRORS="ftp://192.168.0.1/gentoo http://mirrors.tds.net/gentoo http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/ http://open-systems.ufl.edu/mirrors/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="apm arts avi berkdb crypt encode foomaticdb gdbm gif gpm gtk2 imlib jpeg libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl pam pdflib perl png python quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
I'm trying to install according to http://www.gentoo.org/doc/en/virt-mail-howto.xml and I'm running into the same problem with db. Darn db! I'm on a fresh system (I couldn't figure the right way to emerge apache-1 so I just deleted all the apache 2 ebuilds), and I get the following error: gcc -c -I../../os/unix -I../../include -march=pentium2 -O3 -pipe -fomit-frame-pointer -DHARD_SERVER_LIMIT=512 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX=22 -DTARGET=\"apache\" -DDEV_RANDOM=/dev/random -DUSE_HSREGEX -DEAPI -DEAPI_MM `../../apaci` -fpic -DSHARED_MODULE mod_digest.c && mv mod_digest.o mod_digest.lo mod_auth_db.c: In function `get_db_pw': mod_auth_db.c:175: warning: passing arg 2 of pointer to function from incompatible pointer type mod_auth_db.c:175: warning: passing arg 4 of pointer to function makes pointer from integer without a cast mod_auth_db.c:175: error: too few arguments to function distcc[15648] ERROR: compile on bombcar failed make[4]: *** [mod_auth_db.so] Error 1 make[4]: *** Waiting for unfinished jobs.... gcc -shared -o mod_rewrite.so mod_rewrite.lo -L/usr/lib -lm -lcrypt -ldb1 -lmm -lexpat -lpthread make[4]: *** Waiting for unfinished jobs.... gcc -shared -o mod_auth_dbm.so mod_auth_dbm.lo -L/usr/lib -lm -lcrypt -ldb1 -lmm -lexpat -lpthreadgcc -shared -o mod_digest.so mod_digest.lo -L/usr/lib -lm -lcrypt -ldb1 -lmm -lexpat -lpthread 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 I'll attach the output of emerge apache 2>&1 | tee /tmp/apache.out below. And emerge info shows: Portage 2.0.50-r1 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.1-gentoo-r2) ================================================================= System uname: 2.6.1-gentoo-r2 i686 Celeron (Mendocino) Gentoo Base System version 1.4.3.13 distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distcc sandbox" GENTOO_MIRRORS="http://mirrors.tds.net/gentoo http://gentoo.noved.org/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.ccccom.com" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="apm arts berkdb crypt cups encode foomaticdb gdbm hardened imap ipv6 libg++ libwww mad maildir mikmod mpeg mysql ncurses nls oggvorbis oss pam pdflib perl png python readline sasl sdl slang spell ssl tcpd x86 xml2 zlib"
Created attachment 28020 [details] Output of emerge apache Here's the full output.
*** Bug 45724 has been marked as a duplicate of this bug. ***
ok. manually emerging db-4.0.14-r3 fixed it. I've now got 3 different versions of db happily coexisting ( apparently ) and apache builds and runs. how do we fix the apache ebuild?
Fixed in cvs, thanks for the bug report.
closing
This seems to still be a problem. When compiling with the new patches, it still failes on mod_rewrite against db4-libs. (tested on new ebuilds of apache-1.3.29-r1 and apache-1.3.29. Also tested with and without db-4.1 installed. mod_rewrite.c: In function 'lookup_map_dbmfile': mod_rewrite.c:3067: error: 'DBM* undeclared (first use in this function) .... .. Is this another problem, or isn't this bug fixed?
Found a fix. The mod_rewrite-error is a thing with gdbm. When using 1.8.0-r5, apache gets a error, that It can't find ndbm.h. Tried upgrading gdbm to 1.8.3, and now everything works! Maybe this should either be a patch, or an new depend?
closed
Oops...closed wrong bug
I wasnt able to re-produce your error. Since it is working for you and I suspect other people as well. I am going to close this bug.
I was table to reproduce this error. I had libdb 4.1 and 4.2 installed when this error occured. net-www/apache-1.3.33-r4 should depend on =sys-libs/db-1*, but it doesn't. In order to resolve this bug you probably need to make that a dependency in the apache-1.3.* ebuild. There are a few other bugs which are probably duplicates of this.
*** This bug has been marked as a duplicate of 95140 ***