Still Nojoy on OSX

Gyepi SAM gyepi at praxis-sw.com
Wed Oct 16 01:21:33 CEST 2002


On Tue, Oct 15, 2002 at 06:27:07PM -0400, Eric Mings wrote:
> Well I had hoped the lastest beta of bogofilter 0.7.5 would install on
> OSX where others failed in the past. Unfortunately I get a similar error
> in the make output as follows:

Hmm. the interface to db_open changed between versions 4.0 and 4.1 and I had not been
aware of it. Please try the attached patch.

I do not have access to a machine with Berkeley DB4.1 installed, so it is not tested,
but should be fine.

I do wish you had spoken up about it when you discovered this. Apologies if you did, I must
have missed it.

-Gyepi
 
-------------- next part --------------
Index: datastore_db.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/datastore_db.c,v
retrieving revision 1.11
diff -B -u -b -r1.11 datastore_db.c
--- datastore_db.c	9 Oct 2002 02:17:14 -0000	1.11
+++ datastore_db.c	15 Oct 2002 23:17:27 -0000
@@ -75,7 +74,14 @@
     if ((ret = db_create (&(handle->dbp), NULL, 0)) != 0){
 	   fprintf (stderr, ERRSTR("db_create: %s\n"), db_strerror (ret));
     }
-    else if ((ret = handle->dbp->open (handle->dbp, db_file, NULL, DB_BTREE, opt_flags, 0664)) != 0){
+    
+    else if
+#if DB_VERSION_MAJOR > 4 && DB_VERSION_MINOR > 0
+    ((ret = handle->dbp->open(handle->dbp, NULL, db_file, NULL, DB_BTREE, opt_flags | DB_AUTO_COMMIT, 0664)) != 0)
+#else
+    ((ret = handle->dbp->open (handle->dbp, db_file, NULL, DB_BTREE, opt_flags, 0664)) != 0)
+#endif	    
+    {
            handle->dbp->err (handle->dbp, ret, ERRSTR("open: %s"), db_file);
     }
     else {

-------------- next part --------------
For summay digest subscription: bogofilter-digest-subscribe at aotto.com


More information about the Bogofilter mailing list