>>>> "sjt" == Stephen J Turnbull
<stephen(a)xemacs.org> writes:
sjt> Could be. Berk DB 4 support is a user quickie patch, I doubt
sjt> it's very robust.
It turns out that the support loses out of the box. See below. Build
with this patch reported on build-reports, database-tests 10 of 10 passed.
And let me know what you want to do about the ./configure lossage.
Index: src/ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/ChangeLog,v
retrieving revision 1.571
diff -u -U0 -r1.571 ChangeLog
--- src/ChangeLog 9 Mar 2003 13:24:46 -0000 1.571
+++ src/ChangeLog 21 Mar 2003 15:20:42 -0000
@@ -0,0 +1,20 @@
+2003-03-22 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * database.c (Fopen_database): DB_AUTO_COMMIT is invalid in
+ Berkeley db 4.1 unless you have a transaction environment.
+
Index: src/database.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/database.c,v
retrieving revision 1.25
diff -u -r1.25 database.c
--- src/database.c 12 Jan 2003 11:08:10 -0000 1.25
+++ src/database.c 21 Mar 2003 15:20:48 -0000
@@ -713,8 +713,9 @@
status = dbase->open (dbase, filename, NULL,
real_subtype, accessmask, modemask);
#else /* DB_VERSION >= 4.1 */
+ /* You can't use DB_AUTO_COMMIT unless you have a txn environment. */
status = dbase->open (dbase, NULL, filename, NULL, real_subtype,
- accessmask | DB_AUTO_COMMIT, modemask);
+ accessmask, modemask);
#endif /* DB_VERSION < 4.1 */
if (status)
{
--
Institute of Policy and Planning Sciences
http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Ask not how you can "do" free software business;
ask what your business can "do for" free software.