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

Ondřej Surý ondrej at sury.org
Thu Aug 23 06:39:35 UTC 2007


Gabor Gombas píše v Út 21. 08. 2007 v 12:26 +0200:
> 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".

I was thinking about this issue while walking to work and you are not
right.  If everything is ok with macro you patched, imapd is linked
against libdb-X.Y.so.  Only problem could be if compiler is called with
-ldb instead of -ldb-X.Y, which points back to my original thought, that
something went wrong in first block in m4 macro, which tests against
specific version of bdb and it used fallback macro which links just to
-ldb.

What does 'ldd /usr/lib/cyrus/bin/imapd' says on broken binary?  And
'apt-cache policy cyrus-imapd-2.3' ?

Ondrej.
-- 
Ondřej Surý <ondrej at sury.org>  ***  http://blog.rfc1925.org/
Kulturní občasník              ***  http://www.obcasnik.cz/
Nehoupat, prosím               ***  http://nehoupat.blogspot.com/






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