Looks like you've hit the same problem that I reported - SleepyCat4.10.
See my thread 'Error compiling Exim-4.10 - Berkeley-4.1 on
Mandrake-8.0' in the archive which includes a patch kindly supplied by
Jochen Erwied which I'm including below.
Steve
---------------------------------------
From: Jochen Erwied <mack+exim@???>
To: Steve Manning <steve@???>
Cc: exim-users@???
Subject: Re[2]: [Exim] Error compiling Exim-4.10 - Berkeley-4.1 on
Mandrake-8.0
Date: 29 Sep 2002 10:14:55 +0200
<snip>
The patch is really minor, try if the following one works (untested).
The only change was to add an addition 'NULL' for the DB_TXN in the
open()-call, as documented in the upgrading.
--- ../exim-4.10/src/dbstuff.h Mon Jul 22 10:59:48 2002
+++ src/dbstuff.h Sun Sep 29 10:12:17 2002
@@ -128,4 +128,12 @@
/* EXIM_DBOPEN - sets *dbpp to point to an EXIM_DB, NULL if failed */
+#if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 1)
+#define EXIM_DBOPEN(name, flags, mode, dbpp) \
+ if (db_create(dbpp, NULL, 0) != 0 || \
+ (*dbpp)->open(*dbpp, NULL, CS name, NULL, \
+ ((flags) == O_RDONLY)? DB_UNKNOWN : DB_HASH, \
+ ((flags) == O_RDONLY)? DB_RDONLY : DB_CREATE, \
+ mode) != 0) *(dbpp) = NULL
+#else
#define EXIM_DBOPEN(name, flags, mode, dbpp) \
if (db_create(dbpp, NULL, 0) != 0 || \
@@ -134,5 +142,5 @@
((flags) == O_RDONLY)? DB_RDONLY : DB_CREATE, \
mode) != 0) *(dbpp) = NULL
-
+#endif
/* EXIM_DBGET - returns TRUE if successful, FALSE otherwise */
#define EXIM_DBGET(db, key, data) \
--
Jochen Erwied | home: jochen@??? +49-208-38800-18, FAX:
-19
Sauerbruchstr. 17 | work: joe@??? +49-2151-7294-24, FAX:
-50
D-45470 Muelheim | First sightings... <1672@???> 1989/10/11
18:06
---------------------------------------------------------------
On Mon, 2002-09-30 at 21:00, Jeremy - Netgarage Support Services wrote:
Hey everyone - I've built Exim on numerous occasions, and never encountered this one before. When trying to compile Exim (Both 3.3x and 4.10), the compile is dying with the following error:
gcc -c -O exim_dbmbuild.c
exim_dbmbuild.c: In function `main':
exim_dbmbuild.c:121: warning: passing arg 2 of pointer to function from incompatible pointer type
exim_dbmbuild.c:121: warning: passing arg 4 of pointer to function makes pointer from integer without a cast
exim_dbmbuild.c:121: too few arguments to function
make[1]: *** [exim_dbmbuild] Error 1
make[1]: Leaving directory `/root/exim-4.10/build-Linux-i386'
make: *** [go] Error 2
The build is on a LinuxFromScratch machine, using GCC 3.2, with both Berkeley DB and gdbm installed.
Anyone got any ideas?
Jeremy
--
## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
--
Steve Manning
4 Chestnut Way, East Goscote, Leicester, LE7 3QQ, UK
Office +44 (0)116 264 0820 Home +44 (0)116 260 5457
Reply to Steve@???