Re: [SLUG] Cyrus IMAPD rpms, linking and compiling

From: Doug Koobs (dkoobs@dkoobs.com)
Date: Sun Apr 11 2004 - 08:30:42 EDT


I re-read my original post on this subject, it didn't seem to make much
sense... My apologies. Anyway, I have made some progress. To reiterate,
the problem I am having is that I rebuilt Cyrus RPM's from source RPM's.
It seems that the RPM's I built were compiled against db4-4.0. However,
the resulting installed packages are linked to db4-4.1, as can be seen
in the following errors in /var/maillog:

Apr 10 17:02:53 mail imap[22212]: incorrect version of Berkeley db:
compiled against 4.0.14, linked against 4.1.25
Apr 10 17:02:53 mail imaps[22213]: incorrect version of Berkeley db:
compiled against 4.0.14, linked against 4.1.25
Apr 10 17:02:53 mail pop3[22214]: incorrect version of Berkeley db:
compiled against 4.0.14, linked against 4.1.25
Apr 10 17:02:53 mail pop3s[22215]: incorrect version of Berkeley db:
compiled against 4.0.14, linked against 4.1.25

I need to keep db4-4.0 because other packages depend on it. However, I
want to rebuild the Cyrus RPM's from source, but make sure that they
compile against the newer db4-4.1 library. How can I do this? Do I have
to make some change to the environment? Or can I edit the .spec file? I
looked at the .spec file, and found the line:

# Do we use db3 or db4 ? If we have db4, assume db4, otherwise db3.
%define _dbver %(eval "rpm -q --quiet db4 && echo db4 ||
echo db3")

But I can't find anywhere to specify which db4 to use.

If anyone can help, I will very much appreciate it! I need to have the
mail server back up before everyone gets back in the office tomorrow :)

Thanks!

Doug

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:27:58 EDT