Re: Installtion error - cyrusdb_berkeley structure has no member named `set_lk_max'
Oliver Falk schrieb: On 12/14/2006 01:12 PM, Oliver Falk wrote: Am 2006-12-14 12:38, Oliver Falk schrieb: Hi Chaskiel! Am 2006-12-12 20:06, Chaskiel M Grundman schrieb: --On Tuesday, December 12, 2006 02:12:41 PM +0530 Pubudu Premachandra [EMAIL PROTECTED] wrote: cyrusdb_berkeley.c:176: error: structure has no member named `set_lk_max' set_lk_max has been deprecated since DB 4.0. I guess it was finally removed. The following patch may be used to work around this: [ ... ] Or you can downgrade to DB 4.3 (I don't know if 4.4 will work or not) I'm trying to rebuild my Cyrus IMAP rpm packge for 'Fedora Development'. Fedora just updated DB4 to 4.5.20. The above patch will - I expect, because the error with set_lk_max is the same - be needed for 4.5.20 as well. However; I just wanted to know if anyone has experience with DB 4.5 already or not!? If not with 4.4 I don't think anyone tried 4.5!? [ ... ] Just switched to 4.5.20, because imapd started to spot many db4 errors with compat-db-4.3.29. For now only seendb is not working correctly... It only was corrupted for one user. Fixed it with dd... So everything is fien with db 4.5.20 as of now... -of Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Installtion error - cyrusdb_berkeley structure has no member named `set_lk_max'
On 12/14/2006 01:12 PM, Oliver Falk wrote: Am 2006-12-14 12:38, Oliver Falk schrieb: Hi Chaskiel! Am 2006-12-12 20:06, Chaskiel M Grundman schrieb: --On Tuesday, December 12, 2006 02:12:41 PM +0530 Pubudu Premachandra [EMAIL PROTECTED] wrote: cyrusdb_berkeley.c:176: error: structure has no member named `set_lk_max' set_lk_max has been deprecated since DB 4.0. I guess it was finally removed. The following patch may be used to work around this: [ ... ] Or you can downgrade to DB 4.3 (I don't know if 4.4 will work or not) I'm trying to rebuild my Cyrus IMAP rpm packge for 'Fedora Development'. Fedora just updated DB4 to 4.5.20. The above patch will - I expect, because the error with set_lk_max is the same - be needed for 4.5.20 as well. However; I just wanted to know if anyone has experience with DB 4.5 already or not!? If not with 4.4 I don't think anyone tried 4.5!? [ ... ] Just switched to 4.5.20, because imapd started to spot many db4 errors with compat-db-4.3.29. For now only seendb is not working correctly... -of Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Installtion error - cyrusdb_berkeley structure has no member named `set_lk_max'
Hi Chaskiel! Am 2006-12-12 20:06, Chaskiel M Grundman schrieb: --On Tuesday, December 12, 2006 02:12:41 PM +0530 Pubudu Premachandra [EMAIL PROTECTED] wrote: cyrusdb_berkeley.c:176: error: structure has no member named `set_lk_max' set_lk_max has been deprecated since DB 4.0. I guess it was finally removed. The following patch may be used to work around this: [ ... ] Or you can downgrade to DB 4.3 (I don't know if 4.4 will work or not) I'm trying to rebuild my Cyrus IMAP rpm packge for 'Fedora Development'. Fedora just updated DB4 to 4.5.20. The above patch will - I expect, because the error with set_lk_max is the same - be needed for 4.5.20 as well. However; I just wanted to know if anyone has experience with DB 4.5 already or not!? If not with 4.4 I don't think anyone tried 4.5!? Best, Oliver Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Installtion error - cyrusdb_berkeley structure has no member named `set_lk_max'
Am 2006-12-14 12:38, Oliver Falk schrieb: Hi Chaskiel! Am 2006-12-12 20:06, Chaskiel M Grundman schrieb: --On Tuesday, December 12, 2006 02:12:41 PM +0530 Pubudu Premachandra [EMAIL PROTECTED] wrote: cyrusdb_berkeley.c:176: error: structure has no member named `set_lk_max' set_lk_max has been deprecated since DB 4.0. I guess it was finally removed. The following patch may be used to work around this: [ ... ] Or you can downgrade to DB 4.3 (I don't know if 4.4 will work or not) I'm trying to rebuild my Cyrus IMAP rpm packge for 'Fedora Development'. Fedora just updated DB4 to 4.5.20. The above patch will - I expect, because the error with set_lk_max is the same - be needed for 4.5.20 as well. However; I just wanted to know if anyone has experience with DB 4.5 already or not!? If not with 4.4 I don't think anyone tried 4.5!? Just saw, that berkdb.m4 needs patching for db4.5: --- cyrus-imapd-2.3.7/cmulocal/berkdb.m4.db4.5 2006-12-14 12:59:53.0 +0100 +++ cyrus-imapd-2.3.7/cmulocal/berkdb.m42006-12-14 12:59:59.0 +0100 @@ -213,7 +213,7 @@ fi saved_LIBS=$LIBS -for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db-3.3 db3.3 db33 db-3.2 db3.2 db32 db-3.1 db3.1 db31 db-3 db30 db3 db +for dbname in db-4.5 db4.5 db45 db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db-3.3 db3.3 db33 db-3.2 db3.2 db32 db-3.1 db3.1 db31 db-3 db30 db3 db do LIBS=$saved_LIBS -l$dbname AC_TRY_LINK([#include db.h], -of Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Installtion error - cyrusdb_berkeley structure has no member named `set_lk_max'
Ok I overcome that problem by using DB 4.3 version. Now again db mattered at latter installation stage. When doing make install for the postfix, it gives this error Please specify the final destination directory for installed Postfix configuration files. config_directory: [] (i just enter) bin/postconf: error while loading shared libraries: libdb-4.3.so: cannot open shared object file: No such file or directory bin/postconf: error while loading shared libraries: libdb-4.3.so: cannot open shared object file: No such file or directory bin/postconf: error while loading shared libraries: libdb-4.3.so: cannot open shared object file: No such file or directory bin/postconf: error while loading shared libraries: libdb-4.3.so: cannot open shared object file: No such file or directory - I did make as follows, make makefiles 'CCARGS=-DHAS_MYSQL \ -I/usr2/servers/pub-imap/mysql/include/mysql -DUSE_SASL_AUTH \ -I/usr/local/include/sasl -I/usr2/servers/pub-imap/bdb2/include' \ 'AUXLIBS=-L/usr2/servers/pub-imap/mysql/lib/mysql -lssl -lcrypto -lsasl2 -lpthread \ -lmysqlclient -lz -lm -L/usr/local/lib -lsasl2 -L/usr2/servers/pub-imap/bdb2/lib' (Above is as Postfix-Cyrus-Web-cyradm-HOWTO says but I additionally entered -lssl -lcrypto -lsasl2 -lpthread in 'AUXLIBS section to overcome some make error) Note that now it fails in make install stage. I am a newbie on this area and highly expect your help. Thank you Chaskiel, Thank you all. On 12/13/06, Chaskiel M Grundman [EMAIL PROTECTED] wrote: --On Tuesday, December 12, 2006 02:12:41 PM +0530 Pubudu Premachandra [EMAIL PROTECTED] wrote: cyrusdb_berkeley.c:176: error: structure has no member named `set_lk_max' set_lk_max has been deprecated since DB 4.0. I guess it was finally removed. The following patch may be used to work around this: --- lib/cyrusdb_berkeley.c 2006-08-01 15:34:18.0 -0400 +++ /tmp/cyrusdb_berkeley.c 2006-12-12 14:04:00.0 -0500 @@ -174,7 +174,15 @@ syslog(LOG_WARNING, DBERROR: invalid berkeley_locks_max value, using internal default); } else { +#if DB_VERSION_MAJOR = 4 + r = dbenv-set_lk_max_locks(dbenv, opt); + if (!r) + r = dbenv-set_lk_max_lockers(dbenv, opt); + if (!r) + r = dbenv-set_lk_max_objects(dbenv, opt); +#else r = dbenv-set_lk_max(dbenv, opt); +#endif if (r) { dbenv-err(dbenv, r, set_lk_max); syslog(LOG_ERR, DBERROR: set_lk_max(): %s, db_strerror(r)); Or you can downgrade to DB 4.3 (I don't know if 4.4 will work or not) Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Installtion error - cyrusdb_berkeley structure has no member named `set_lk_max'
--On Tuesday, December 12, 2006 02:12:41 PM +0530 Pubudu Premachandra [EMAIL PROTECTED] wrote: cyrusdb_berkeley.c:176: error: structure has no member named `set_lk_max' set_lk_max has been deprecated since DB 4.0. I guess it was finally removed. The following patch may be used to work around this: --- lib/cyrusdb_berkeley.c 2006-08-01 15:34:18.0 -0400 +++ /tmp/cyrusdb_berkeley.c 2006-12-12 14:04:00.0 -0500 @@ -174,7 +174,15 @@ syslog(LOG_WARNING, DBERROR: invalid berkeley_locks_max value, using internal default); } else { +#if DB_VERSION_MAJOR = 4 + r = dbenv-set_lk_max_locks(dbenv, opt); + if (!r) + r = dbenv-set_lk_max_lockers(dbenv, opt); + if (!r) + r = dbenv-set_lk_max_objects(dbenv, opt); +#else r = dbenv-set_lk_max(dbenv, opt); +#endif if (r) { dbenv-err(dbenv, r, set_lk_max); syslog(LOG_ERR, DBERROR: set_lk_max(): %s, db_strerror(r)); Or you can downgrade to DB 4.3 (I don't know if 4.4 will work or not) Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html