Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43558 - Apache fails to compile. Warning from mod_auth_db.c about passing arguments
Summary: Apache fails to compile. Warning from mod_auth_db.c about passing arguments
Status: RESOLVED DUPLICATE of bug 95140
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
: 45724 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-02 20:56 UTC by Renzo
Modified: 2005-09-17 18:21 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Output of emerge apache (apache.out,29.77 KB, text/plain)
2004-03-25 15:40 UTC, Tom Dickson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Renzo 2004-03-02 20:56:31 UTC
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"
Comment 1 Tom Dickson 2004-03-25 15:37:33 UTC
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"
Comment 2 Tom Dickson 2004-03-25 15:40:22 UTC
Created attachment 28020 [details]
Output of emerge apache

Here's the full output.
Comment 3 Stuart Herbert (RETIRED) gentoo-dev 2004-03-26 13:03:06 UTC
*** Bug 45724 has been marked as a duplicate of this bug. ***
Comment 4 ben calvert 2004-03-26 22:04:08 UTC
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?
Comment 5 Chuck Short (RETIRED) gentoo-dev 2004-04-01 15:35:27 UTC
Fixed in cvs, thanks for the bug report.
Comment 6 Chuck Short (RETIRED) gentoo-dev 2004-04-01 15:42:02 UTC
closing
Comment 7 David Röhr 2004-04-02 00:23:46 UTC
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?
Comment 8 David Röhr 2004-04-02 00:36:14 UTC
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?
Comment 9 Chuck Short (RETIRED) gentoo-dev 2004-04-02 09:51:31 UTC
closed
Comment 10 Chuck Short (RETIRED) gentoo-dev 2004-04-02 09:54:26 UTC
Oops...closed wrong bug
Comment 11 Chuck Short (RETIRED) gentoo-dev 2004-04-03 16:52:15 UTC
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.
Comment 12 Matthew Kennedy (RETIRED) gentoo-dev 2005-05-24 09:06:01 UTC
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.
Comment 13 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2005-09-17 18:21:09 UTC

*** This bug has been marked as a duplicate of 95140 ***