Installtion error - cyrusdb_berkeley structure has no member named `set_lk_max'

Pubudu Premachandra npubudu at gmail.com
Wed Dec 13 04:45:28 EST 2006


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 <cg2v at andrew.cmu.edu> wrote:
>
> --On Tuesday, December 12, 2006 02:12:41 PM +0530 Pubudu Premachandra
> <npubudu at gmail.com> 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.000000000 -0400
> +++ /tmp/cyrusdb_berkeley.c     2006-12-12 14:04:00.000000000 -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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20061213/2043e6db/attachment.html


More information about the Info-cyrus mailing list