Scott Adkins schrieb am Tue, Mar 12, 2002 at 08:45:56AM -0500: > --On Tuesday, March 12, 2002 8:10 AM +0100 Birger Toedtmann > <[EMAIL PROTECTED]> wrote: > > >I just set up cyrus-imapd-2.1.3 on a RH7.2 box that has BDB4 installed > >(re- compiled src.rpm). Any ldd's of the imapd/pop3d binaries show > >correct bindings to /lib/libdb-4.0.so, so everything seems ok - service > >works nice - despite some log messagess: > > > > Mar 12 07:57:50 testbox pop3d[19141]: DBERROR db3: 9 lockers > > ^^^ > > > >Mmmh. As far as I could see, this may not directly lie within > >cyrus-imapd's code but BDB4s, but I could not find the string "db3" in > >any of them (imapd, db-4.0.so). > > > >Ideas? > >Regards, > >Birger > > If it bothers you too much, take a look at lib/cyrusdb_db3.c and search > for "errpfx". You should see the following line: > > dbenv->set_errpfx(dbenv, "db3"); > > As you can see, if is a BerkeleyDB call that sets the a prefix string to be > prepended to the error messages that BerkeleyDB produces. Maybe it should > simply be "db"? At least until other things are implemented, such as dbm, > mysql, etc (which I doubt ever will be) :)
Well, it is just a bit confusing if you are debugging and you think you did cyrus imapd with db4, ldd sais the same (under linux) and you see "db3" in your logs. I'll see if I could hack autoconf to parse /usr/include/db.h (or the like) for DB_VERSION_MAJOR and set dbenv->set_errpfx() respectively. Mmmh, as I write this - why not just doing it the following way: strcpy(mydb, "db") strcat(mydb, DB_VERSION_MAJOR); dbenv->set_errpfx(dbenv, mydb); ? Anyway, thanks for the hint where to look, Birger