Bug 382481

Summary: New Compress::Zlib package seems to break amavisd-new
Product: [Fedora] Fedora Reporter: Sven van Heel <sven>
Component: perl-Compress-ZlibAssignee: Marcela Mašláňová <mmaslano>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 8CC: carlos, iglesias, rivenburgh
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: perl-5.8.8-36.fc8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-03-07 15:29:42 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 Sven van Heel 2007-11-14 14:19:12 UTC
After upgrading my existing Fedora 7 installation to Fedora 8 (with the
yum-method, might be the problem?), amavisd-new seems to be broken.

Starting amavisd-new with 'service amavisd start' gives the following error:
# service amavisd start
Starting amavisd: ERROR: MISSING REQUIRED BASIC MODULES:
  Compress::Zlib
BEGIN failed--compilation aborted at /usr/sbin/amavisd line 171.
                                                           [FAILED]

The package perl-Compress-Zlib (which provides the module Compress::Zlib) is
installed.

Workaround:
After downgrading the package (version 2.005 on Fedora 8) to the Fedora 7
version (1.42) amavisd-new starts without a problem.

After Googling around, the problem seems to be related to the Scalar::Util (used
by Compress::Zlib and in the main perl-package) being in XS or non-XS mode.
Unfortunately I'm not expert enough to understand what the real problem is.

To reproduce:
Install perl-Compress-Zlib-2.005-2.fc8 from Fedora 8 and start amavisd-new
(package: amavisd-new-2.5.2-2.fc8).
Workaround:
Install perl-Compress-Zlib-1.42-1.fc6 from Fedora 7 and start amavisd-new
(package: amavisd-new-2.5.2-2.fc8).

Comment 1 Gutierrez, Carlos M. 2007-12-17 18:55:44 UTC
My MailScanner installation broke upon upgrading to FC8 because of exactly this
same bug in Scalar::Util . This is what I got when starting MailScanner:

Starting MailScanner...
 is only avaliable with the XS version at
/usr/lib/perl5/vendor_perl/5.8.8/Compress/Zlib.pm line 9
BEGIN failed--compilation aborted at
/usr/lib/perl5/vendor_perl/5.8.8/Compress/Zlib.pm
line 9.
Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.8/Archive/Zip.pm
line 24.
BEGIN failed--compilation aborted at
/usr/lib/perl5/vendor_perl/5.8.8/Archive/Zip.pm line
24.
Compilation failed in require at /usr/lib/MailScanner/MailScanner/Message.pm
line 48.
BEGIN failed--compilation aborted at /usr/lib/MailScanner/MailScanner/Message.pm
line 48.
Compilation failed in require at /usr/sbin/MailScanner line 79.
BEGIN failed--compilation aborted at /usr/sbin/MailScanner line 79.

This URL seems particularly enlightening:
http://forums.whirlpool.net.au/forum-replies-archive.cfm/843943.html

A satisfactory workaround is to get Scalar::Util via CPAN and "force install" it
as explained in the URL above.


Comment 2 Mike Iglesias 2008-02-22 16:15:34 UTC
This is still broken in the Fedora 8 perl update perl-5.8.8-33.fc8 which was
released a couple of days ago.

Comment 3 Marcela Mašláňová 2008-02-27 09:16:51 UTC
I'm curious, if you have Scalar::Util from cpan or from rpm. In cpan is newer
version, which seems to me broke packages.

Comment 4 Mike Iglesias 2008-02-29 18:45:50 UTC
It was broken with the rpm, fixed with a cpan forced install of Scalar::Util.

Comment 5 Marcela Mašláňová 2008-03-07 15:29:42 UTC
The package perl-5.8.8-36 upgrade the Scalar::Util on the latest version. The
problem with XS support, weaken and other functions provided by Scalar::Util
should be fixed by this update.
If you problem persist, please feel free to reopen the bug.