I'm trying to build apache 1.3.28, but alas it's failing to compile on
WhiteBoxLinux;
gcc -c -I/hsphere/shared/include -I../../os/unix -I../../include
-DLINUX=22 -I/usr/include/gdbm -DDEV_RANDOM=/dev/random -DMOD_SSL=208116
-DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../../lib/expat-lite
`../../apaci` -fpic -DSHARED_MODULE mod_auth_db.c && mv mod_auth_db.o
mod_auth_db.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: too few arguments to function
The code that breaks is:
if defined(DB3) || defined(DB4)
if ( db_create(&f, NULL, 0) != 0
|| f->open(f, auth_dbpwfile, NULL, DB_HASH, DB_RDONLY, 0664) != 0)
{
Any ideas on how to beat that into submission ? "f" is of type DB, which
seems to be typedefd all over the place in an attempt to make something
compile, whether you use db or ndbm or gdbm.
John
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!