/usr/bin/perl build/preprocessor -Mconditional -Mvars -DVERSION="3.000002" -DPREFIX="/usr" <lib/Mail/SpamAssassin/Util/RegistrarBoundaries.pm >blib/lib/Mail/SpamAssassin/Util/RegistrarBoundaries.pm /usr/bin/perl spamc/configure.pl --prefix="/usr" --sysconfdir="/etc/mail/spamassassin" --datadir="/usr/share/spamassassin" --enable-ssl="yes" cd spamc /usr/bin/perl version.h.pl version.h.pl: creating version.h spamc/configure.pl: version.h.pl: Failed to get the version from Mail::SpamAssassin. Please use the --with-version= switch to specify it manually. The error was: version.h.pl: version.h.pl: version.h.pl: version.h.pl: version.h.pl: version.h.pl: version.h.pl: Can't locate Digest/SHA1.pm in @INC (@INC contains: ../lib /etc/perl /usr/lib/perl5/site_perl/5.8.5/i686-linux /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i686-linux /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.5/i686-linux /usr/lib/perl5/5.8.5 /usr/local/lib/site_perl .) at ../lib/Mail/SpamAssassin/EvalTests.pm line 33. BEGIN failed--compilation aborted at ../lib/Mail/SpamAssassin/EvalTests.pm line 33. Compilation failed in require at ../lib/Mail/SpamAssassin/PerMsgStatus.pm line 56. BEGIN failed--compilation aborted at ../lib/Mail/SpamAssassin/PerMsgStatus.pm line 56. Compilation failed in require at ../lib/Mail/SpamAssassin.pm line 74. BEGIN failed--compilation aborted at ../lib/Mail/SpamAssassin.pm line 74. Compilation failed in require at version.h.pl line 27. make: *** [spamc/Makefile] Error 2 !!! ERROR: mail-filter/spamassassin-3.0.2 failed. !!! Function perl-module_src_compile, Line 65, Exitcode 2 !!! compilation failed Reproducible: Always Steps to Reproduce: 1. emerge -u spamassassin 2. 3. Actual Results: Compilation failed in require at version.h.pl line 27. Expected Results: Should compile # emerge info Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-ck3 i686) ================================================================= System uname: 2.6.9-ck3 i686 Pentium III (Katmai) Gentoo Base System version 1.4.16 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=i686 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X acl apm arts avi berkdb bitmap-fonts crypt cups encode esd fam foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib ipv6 jpeg libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl spell ssl svga tcpd tiff truetype xml2 xmms xv zlib"
I can confirm this bug, I have the exact same behaviour here. # emerge --info Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r9 i686) ================================================================= System uname: 2.6.9-gentoo-r9 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1-r1,sys-kernel/linux26-headers-2.6.8.1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-tbird -O3 -pipe -mmmx -m3dnow -fexpensive-optimizations" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-tbird -O3 -pipe -mmmx -m3dnow -fexpensive-optimizations" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://ftp.join.uni-muenster.de/pub/mirrors/gentoo.org/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="x86 3dnow X aalib acl acpi alsa apache2 apm audiofile avi berkdb bitmap-fonts bonobo cdr crypt cscope cups dvd encode esd evo faad fam ffmpeg flac foomaticdb fortran freetype gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib ipv6 irmc jabber java joystick jpeg junit ldap libwww mad matroska mikmod mmx motif mozilla moznocompose moznoirc moznomail mpeg mpeg4 mysql ncurses nls nntp nvidia oggvorbis opengl operanom2 opie pam pdflib perl png ppds python qt quicktime readline scanner sdl slang snmp speex spell ssl svg svga tcltk tcpd tetex theora tiff truetype usb v4l xml xml2 xmms xprint xv xvid zlib linguas_de"
Same as this one: 75715
I saw that bug (75715) but didn't think it was related since I already had Digest-SHA1-2.07 installed. Just for kicks I reemerged it but spamassassin still barfed with the same error. One thing I noticed on this last attempt at sa, however, was another message earlier in the ebuild complaining that it couldn't find HTML::Parser. Again, I had HTML-Parser-3.34-r1 already installed but reemerged it anyway. Once this was done spamassassin-3.0.2 emerged without a problem. Worked for me.
In my case I could fix the problem by - re-emerging dev-perl/Digest-SHA1 (which was already installed on my system even with the exact same version number) - emerging spamassassin Could this be a bug in dev-perl/Digest-SHA1? I mean, it looks like the module isn't registered properly. Christian
Exactly the same problem. Solved it by following directions in Comment #4. Bug #75715 is a duplicate of this one. I believe the real problem is upgrading perl: All or some applications that use libperl.so have to be recompiled. There is a script: "/usr/portage/dev-lang/perl/files/libperl_rebuilder" which will assist in that process. There is a message to that effect when perl is updated. Of course, perl was updated along with several other packages when I did an "emerge -uavDt world", so I totally missed it.
re-emerging dev-perl/Digest-SHA1 has no efects for me, but the script /usr/portage/dev-lang/perl/files/libperl_rebuilder worked
So looks like this ain't a SpamAssassin but a Perl bug (if it's one at all); changing Subject to have it gone from my SpamAssassin bug query :)
The core of the problem here is the reason that perl_cleaner (replacement for libperl_rebuilder) exists, namely because of xs code compiled against a specific version of perl being "lost" by perl during an upgrade, and portage not knowing the difference. In dev-lang/perl/files/ you should find a file called perl_cleaner that will --oneshot any old modules installed so that both portage and perl are in sync with what they think is on your system. I am sorry that I didn't get an opportunity to post to this bug when it was more relevant - I intended to, but I was in middle of pushing out the new perl_cleaner to replace libperl_rebuilder. Does anyone on this bug need me to leave it open?
closing - open if the fix doesn't work, but there's no reason it shouldn't.