Bug#437838: cyrus-imapd-2.3: Daemons/tools die due to Berkeley DB version mismatch

Gabor Gombas gombasg at sztaki.hu
Tue Aug 21 10:26:52 UTC 2007


On Sun, Aug 19, 2007 at 08:07:39PM +0200, Ondřej Surý wrote:

> Correct fix would be to find why it didn't find libdb4.4.

The reason is in the comment of the proposed patch. Every libdbX.Y
Debian package installs the library as /usr/lib/libdb-X.Y.so, because
that's the SONAME of the Berkeley DB 4.x libraries. The libdbX.Y-dev
package however installs the /usr/lib/libdb.so symlink that points to
the DB version the -dev package belongs to. That means you _can_ link to
any BDB version if you use an explicit DB name (like the Cyrus configure
script does) even when the -dev package is not present or if the -dev
package belongs to a different library version.

So, if you happen to have _any_ libdbX.Y package installed that has a
version higher than the -dev package (example: you have all libdb4.4,
libdb4.4-dev, and libdb4.5 installed) then the Cyrus configuration
snippet will find the highest library version (4.5 in this case, since
the linker will find the /usr/lib/libdb-4.5.so library), and not the
version of the -dev package. And that will cause the version mismatch.

The reason why this problem do not occur with other packages is that
almost every other library (including the 3.x series of BDB) uses a
SONAME of the form libfoo.so.X.Y.Z, i.e. the SONAME does not end in
".so".

> Could you supply more information about your build environment?  Include
> at least list of libdb*-dev packages installed.

I used the Debian-provided packages, so you should check the
experimental buildds. I know nothing about them. However I noticed this
problem during personal builds long before there was a Debian package
available. Just install both libdb4.4-dev and libdb4.5 and see what
happens.

Gabor

-- 
     ---------------------------------------------------------
     MTA SZTAKI Computer and Automation Research Institute
                Hungarian Academy of Sciences,
     Laboratory of Parallel and Distributed Systems
     Address   : H-1132 Budapest Victor Hugo u. 18-22. Hungary
     Phone/Fax : +36 1 329-78-64 (secretary)
     W3        : http://www.lpds.sztaki.hu
     ---------------------------------------------------------




More information about the Pkg-Cyrus-imapd-Debian-devel mailing list