From: Hirohisa Y. <um...@gm...> - 2008-02-28 00:46:42
|
Hi, At Wed, 27 Feb 2008 14:27:35 -0800 (PST), Murray S. Kucherawy wrote: > > The Beta9 code compiled against libdb v4.0.14 without difficulty, without > your patch. I'd be interested in knowing what version you have, since > it'd be unusual for them to make an API change in a patch-level release. I have installed libdb versions 3.3.11, 4.0.14, 4.1.25, 4.2.52, 4.3.29, 4.4.20, 4.5.20 and 4.6.21 side-by-side (using FreeBSD ports). I marked db40 as invalid in dkim-milter FreeBSD port, since I got build errors some time ago. With 2.5.0.Beta9, while with db3 and db42 thru db46 it builds okay, I got a build error with db4 like following : | cc -g -I. -I../../include -I/usr/local/include/db4 -I/usr/local/include/tre -I../libar/ -DQUERY_CACHE -DUSE_ARLIB -DXP_MT -c dkim-cache.c | dkim-cache.c: In function 'dkim_cache_init': | dkim-cache.c:264: error: incompatible type for argument 4 of 'cache->open' | dkim-cache.c:264: error: too many arguments to function 'cache->open' | *** Error code 1 The APIs look different between v4.0 and other versions somewhere in ```subsystem-private structures''. --- /usr/local/include/db4/db.h 2007-04-26 14:44:00.000000000 +0900 +++ /usr/local/include/db41/db.h 2007-08-12 22:09:16.000000000 +0900 <snip> @@ -54,9 +54,9 @@ * Berkeley DB version information. */ #define DB_VERSION_MAJOR 4 -#define DB_VERSION_MINOR 0 -#define DB_VERSION_PATCH 14 -#define DB_VERSION_STRING "Sleepycat Software: Berkeley DB 4.0.14: (November 18, 2001)" +#define DB_VERSION_MINOR 1 +#define DB_VERSION_PATCH 25 +#define DB_VERSION_STRING "Sleepycat Software: Berkeley DB 4.1.25: (December 19, 2002)" /* * !!! <snip> @@ -1326,7 +1184,7 @@ int (*join) __P((DB *, DBC **, DBC **, u_int32_t)); int (*key_range) __P((DB *, DB_TXN *, DBT *, DB_KEY_RANGE *, u_int32_t)); - int (*open) __P((DB *, + int (*open) __P((DB *, DB_TXN *, const char *, const char *, DBTYPE, u_int32_t, int)); int (*put) __P((DB *, DB_TXN *, DBT *, DBT *, u_int32_t)); int (*remove) __P((DB *, const char *, const char *, u_int32_t)); <snip> -- end Hirohisa Yamaguchi um...@gm... |