Bug 19350

Summary: cyradm will not work from binary rpm
Product: [Retired] Red Hat Powertools Reporter: Need Real Name <nick>
Component: cyrus-imapdAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: dr
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-10-19 11:47:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2000-10-18 23:24:59 UTC
running cyradm gives the following errors:

#cyradm localhost
Can't load
'/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/Cyrus/IMAP/IMAP.so' for
module Cyrus::IMAP: undefined symbol: SSL_write at
/usr/lib/perl5/5.6.0/i386-linux/DynaLoader.pm line 200.
 at /usr/lib/perl5/site_perl/5.6.0/i386-linux/Cyrus/IMAP/Admin.pm line
43
Compilation failed in require at
/usr/lib/perl5/site_perl/5.6.0/i386-linux/Cyrus/IMAP/Admin.pm line 43.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.6.0/i386-linux/Cyrus/IMAP/Admin.pm line 43.
Compilation failed in require at
/usr/lib/perl5/site_perl/5.6.0/i386-linux/Cyrus/IMAP/Shell.pm line 58.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.6.0/i386-linux/Cyrus/IMAP/Shell.pm line 58.
Compilation failed in require.
BEGIN failed--compilation aborted.

Solution I found was to remove one of the patches rom the source rpm and recompile

1. Get the source rpm for cyrus-imapd, its on the same powertools cd
and ends .src.rpm

2. Install it rpm -i cyrus-imapd-2.0.6-3.src.rpm

This installs the source code and patches in /usr/src/redhat/

3. go to the directory /usr/src/redhat/SPECS. There is a file there
called something like cyrus-imap.spec (sorry the machine is at home, I
am at work). Edit that dfile by commenting out the two lines relating
to Patch 3 , they look like this after editing:

#Patch3: cyrus-imapd-2.0.6-nossl.patch
...
#%patch3 -p1 -b .nossl

4. In the same SPECS directory execute rpm -ba cyrus.imap.spec (or
whatever the filename is)

5 This will rebuild the sources and leave a binary rpm in
/usr/src/redhat/RPMS/i386

6. make sure you have uninstalled the old rpm and then install the one
you just built.

cyradm now works

Comment 1 Nalin Dahyabhai 2000-11-06 19:46:47 UTC
This is fixed in cyrus-imapd-2.0.7-2 in Raw Hide.  Thanks!

Comment 2 Nalin Dahyabhai 2000-11-06 19:47:09 UTC
*** Bug 20326 has been marked as a duplicate of this bug. ***