I suggested this earlier .

Install the version of Berkeley that you want to use in a known place and tell everyone where it is.

Do not use /.../bdb/... for anything since you never know what is there. Make sure that you override the location of the Berkeley libraries and includes in every build.

It looks like some other package has installed a version 3 of Berkeley and you are picking it up in one of your builds. Make sure that you relink everything - Postfix, Sasl, imapd and recreate the database by blowing away the directories.

Check your configure output logs to be sure that the right version has been picked up.

It is not difficult but has to be done very carefully and you can not just blow away the bdb in case some other package is using it.

Ron


Imran Aziz wrote:

Thank you so very much for getting back to me on this, Michael here is
the output of

ldd /usr/cyrus/bin/imapd

[EMAIL PROTECTED] berkeleydb]# ldd /usr/cyrus/bin/imapd
       libsasl2.so.2 => /usr/local/lib/libsasl2.so.2 (0xb75cd000)
       libresolv.so.2 => /lib/libresolv.so.2 (0xb75bb000)
       libdb-4.1.so => /usr/local/bdb/lib/libdb-4.1.so (0xb7524000)
       libssl.so.0.9.7 => /usr/local/ssl/lib/libssl.so.0.9.7 (0xb74f7000)
       libcrypto.so.0.9.7 => /usr/local/ssl/lib/libcrypto.so.0.9.7 (0xb7404000)
       libwrap.so.0 => /usr/lib/libwrap.so.0 (0xb73fb000)
       libnsl.so.1 => /lib/libnsl.so.1 (0xb73e5000)
       libc.so.6 => /lib/tls/libc.so.6 (0xb72ad000)
       libdl.so.2 => /lib/libdl.so.2 (0xb72aa000)
       /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb75eb000)


and the configure params
CYRUS SASL configuration

./configure \
--enable-anon \
--enable-plain \
--enable-login \
--disable-krb4 \
--disable-otp \
--disable-cram \
--disable-digest \
--with-saslauthd=/var/run/saslauthd \
--with-pam=/lib/security \
--with-dblib=berkeley \
--with-openssl=/usr/local/ssl \
--with-plugindir=/usr/local/lib/sasl2

Cyrus IMAPD

./configure \
--with-sasl=/usr/local/lib \
--with-perl \
--with-auth=unix \
--with-openssl=/usr/local/ssl \
--without-ucdsnmp \


if I use
--with-dbdir=/usr/local/bdb \
--with-bdb-libdir=/usr/local/bdb/lib \
--with-bdb-incdir=/usr/local/bdb/include \

param the IMAPD does not compile and I get Berkley DB 3.x not installed error
here is the postfix build configuration.


make makefiles 'CCARGS=-DHAS_MYSQL \
-I/usr/include/mysql -DUSE_SASL_AUTH \
-I/usr/local/include/sasl -I/usr/include' \
'AUXLIBS=-L/usr/lib/mysql \
-lmysqlclient -lz -lm -L/usr/local/lib -lsasl2 -L/usr/lib -lpthread'

from the ldd /usr/cyrus/bin/imapd it seems that few libs are being
used from the RPM installed and few from the /usr/local/bdb/lib
directory. Although both are version 4.1.25 now.

I was thinking of using another version of berkeley DB, but with this
output it seems that my configuration is wrong and can get this done
by sorting this out, any suggestions please.

Imran
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch

_______________________________________________
Web-cyradm mailing list
[email protected]
http://www.web-cyradm.org/mailman/listinfo/web-cyradm




_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch

_______________________________________________
Web-cyradm mailing list
[email protected]
http://www.web-cyradm.org/mailman/listinfo/web-cyradm

Reply via email to