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).
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.
This is still broken in the Fedora 8 perl update perl-5.8.8-33.fc8 which was released a couple of days ago.
I'm curious, if you have Scalar::Util from cpan or from rpm. In cpan is newer version, which seems to me broke packages.
It was broken with the rpm, fixed with a cpan forced install of Scalar::Util.
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.