ctl_cyrusdb db version error

Oberdan Albertoni obe at digicolor.net
Wed Jul 27 17:02:20 EDT 2011


Helo,
on a server ( debian 5.0 ) I installed three years ago cyrus 3.2.11 but 
I have never used
now I wanted to install cyrus 2.4.10 but when I run the command 
/usr/cyrus/bin/ctl_cyrusdb -r I get :

Fatal error: wrong db version
segmentation fault

if on the same machine run ctl_cyrusdb of the version 2.3.11 does not 
give me errors.

I saw that ldd /usr/cyrus/bin/ctl_cyrusdb (version 4.2.10) is :

linux-gate.so.1 => (0xb7816000)
libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0xb77fd000)
libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0xb77d3000)
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0xb773e000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0xb771a000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0xb7711000)
libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0xb7709000)
libresolv.so.2 => /lib/i686/cmov/libresolv.so.2 (0xb76f5000)
libdb-4.6.so => /usr/lib/libdb-4.6.so (0xb75c2000)
libssl.so.0.9.8 => /usr/lib/i686/cmov/libssl.so.0.9.8 (0xb7579000)
libcrypto.so.0.9.8 => /usr/lib/i686/cmov/libcrypto.so.0.9.8 (0xb7426000)
libz.so.1 => /usr/lib/libz.so.1 (0xb7411000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb72b6000)
libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb72b2000)
libkeyutils.so.1 => /lib/libkeyutils.so.1 (0xb72ae000)
libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7295000)
/lib/ld-linux.so.2 (0xb7817000)

while ldd of the version 2.3.11 is :

linux-gate.so.1 => (0xb76eb000)
libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0xb76d2000)
libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0xb76a8000)
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0xb7613000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0xb75ef000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0xb75e6000)
libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0xb75de000)
libresolv.so.2 => /lib/i686/cmov/libresolv.so.2 (0xb75ca000)
libdb-4.4.so => /usr/lib/libdb-4.4.so (0xb74cf000)
libssl.so.0.9.8 => /usr/lib/i686/cmov/libssl.so.0.9.8 (0xb7486000)
libcrypto.so.0.9.8 => /usr/lib/i686/cmov/libcrypto.so.0.9.8 (0xb7333000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb71d8000)
libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb71d4000)
libkeyutils.so.1 => /lib/libkeyutils.so.1 (0xb71d1000)
libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb71b7000)
/lib/ld-linux.so.2 (0xb76ec000)
libz.so.1 => /usr/lib/libz.so.1 (0xb71a2000)

the output of "ls -la /usr/lib/libdb*" is :

-rw-r--r-- 1 root root 897164 13 set 2008 /usr/lib/libdb-4.2.so
-rw-r--r-- 1 root root 928724 19 feb 2007 /usr/lib/libdb-4.3.so
-rw-r--r-- 1 root root 1375308 16 ago 2006 /usr/lib/libdb-4.4.a
-rw-r--r-- 1 root root 790 16 ago 2006 /usr/lib/libdb-4.4.la
-rw-r--r-- 1 root root 1023476 16 ago 2006 /usr/lib/libdb-4.4.so
-rw-r--r-- 1 root root 1178304 13 set 2008 /usr/lib/libdb-4.5.so
-rw-r--r-- 1 root root 1256548 13 set 2008 /usr/lib/libdb-4.6.so
lrwxrwxrwx 1 root root 12 30 gen 2008 /usr/lib/libdb-4.so -> libdb-4.4.so
lrwxrwxrwx 1 root root 11 30 gen 2008 /usr/lib/libdb.a -> libdb-4.4.a
lrwxrwxrwx 1 root root 12 30 gen 2008 /usr/lib/libdb.so -> libdb-4.4.so

it is possible that ctl_cyrus version 2.4.10 compiled with version 4.6 
of libdb give me error because' /usr/lib/libbd.so is a symbolic link to 
version 4.4?

How can I fix this problem ?

Since I will have to do the same operation on a production server should 
I switch from berkeley db to skiplist db, before upgrade cyrus ?
By Obe.

-- 
Oberdan Albertoni

-----------------------------------------------------------------------------------------------------------------------------------------------------------

DIGICOLOR.NET s.r.l. Via Ala Ponzone, 30 - 26100 CREMONA (CR) Tel. +39 (0372) 30669 - 1965101 - 1951509
Fax +39 (0372) 464840 E-mail info at digicolor.net - Website http://www.digicolor.net
C.F / P.IVA 01227520192 - R.E.A. CR n. 153382 - Capitale Sociale € 10.400 i.v.

Filiale di Codogno
Via Galilei, 17 – 26845 CODOGNO (LO) Tel. +39 (0377) 741006 – 431931 Fax +39 (0372) 464840
E-mail info.codogno at digicolor.net - Website http://www.digicolor.net

-----------------------------------------------------------------------------------------------------------------------------------------------------------

Ai sensi del D.lgs n.196 del 30.06.03 (Codice Privacy) si precisa che le informazioni contenute in questo messaggio sono riservate e ad uso esclusivo
del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a
terzi, dandocene gentilmente comunicazione. Grazie

This message, for the D.lgs n.196 / 30.06.03 (Privacy Code), may contain confidential and/or privileged information. If you are not the addressee or
authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein.
If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation.

-----------------------------------------------------------------------------------------------------------------------------------------------------------



More information about the Info-cyrus mailing list