Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerging spamassassin-3.2.3 fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
apryan
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2005
Posts: 124

PostPosted: Tue Dec 11, 2007 12:03 pm    Post subject: emerging spamassassin-3.2.3 fails Reply with quote

Hi,
I was actually just trying to fix spamassassin when I noticed it wouldnt start:
Code:
# ./spamd restart
 * Starting spamd ...
Can't locate HTML/Parser.pm in @INC (@INC contains: /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux /usr/lib64/perl5/vendor_perl/5.8.8 /etc/perl /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux /usr/lib64/perl5/site_perl/5.8.8 /usr/lib64/perl5/site_perl /usr/lib64/perl5/5.8.8/x86_64-linux /usr/lib64/perl5/5.8.8 /usr/local/lib/site_perl .) at /usr/lib64/perl5/vendor_perl/5.8.8/Mail/SpamAssassin/HTML.pm line 26.
BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/5.8.8/Mail/SpamAssassin/HTML.pm line 26.
Compilation failed in require at /usr/lib64/perl5/vendor_perl/5.8.8/Mail/SpamAssassin/Message/Node.pm line 42.
BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/5.8.8/Mail/SpamAssassin/Message/Node.pm line 42.
Compilation failed in require at /usr/lib64/perl5/vendor_perl/5.8.8/Mail/SpamAssassin/Message.pm line 49.
BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/5.8.8/Mail/SpamAssassin/Message.pm line 49.
Compilation failed in require at /usr/lib64/perl5/vendor_perl/5.8.8/Mail/SpamAssassin.pm line 73.
BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/5.8.8/Mail/SpamAssassin.pm line 73.
Compilation failed in require at /usr/sbin/spamd line 84.
BEGIN failed--compilation aborted at /usr/sbin/spamd line 84.
 * Failed to start spamd


I proceeded to reinstall perl, ran perl clean reallyall, and reinstall spamassassin which didn't fix anything.

Code:

[ebuild  N    ] mail-filter/spamassassin-3.2.3  USE="berkdb mysql postgres sqlite ssl -doc -ipv6 -ldap -qmail -tools" 0 kB

>>> Emerging (1 of 1) mail-filter/spamassassin-3.2.3 to /
 * Mail-SpamAssassin-3.2.3.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                     [ ok ]
 * checking ebuild checksums ;-) ...                                                                                   [ ok ]
 * checking auxfile checksums ;-) ...                                                                                  [ ok ]
 * checking miscfile checksums ;-) ...                                                                                 [ ok ]
 * checking Mail-SpamAssassin-3.2.3.tar.bz2 ;-) ...                                                                    [ ok ]
>>> Unpacking source...
>>> Unpacking Mail-SpamAssassin-3.2.3.tar.bz2 to /var/tmp/portage/mail-filter/spamassassin-3.2.3/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/mail-filter/spamassassin-3.2.3/work/Mail-SpamAssassin-3.2.3 ...
 * Using ExtUtils::MakeMaker
What email address or URL should be used in the suspected-spam report
text for users who want more information on your filter installation?
(In particular, ISPs should change this to a local Postmaster contact)
default text: [the administrator of that system] the administrator of that system

NOTE: settings for "make test" are now controlled using "t/config.dist".
See that file if you wish to customise what tests are run, and how.

checking module dependencies and their versions...

***************************************************************************
ERROR: the required HTML::Parser (version 3.43) module is not installed. at lib/Mail/SpamAssassin/Util/DependencyInfo.pm line 293.


  HTML is used for an ever-increasing amount of email so this dependency
  is unavoidable.  Run "perldoc -q html" for additional information.


***************************************************************************
ERROR: the required Net::DNS (version 0.34) module is not installed. at lib/Mail/SpamAssassin/Util/DependencyInfo.pm line 293.


  Used for all DNS-based tests (SBL, XBL, SpamCop, DSBL, etc.),
  perform MX checks, and is also used when manually reporting spam to
  SpamCop.

  You need to make sure the Net::DNS version is sufficiently up-to-date:

  - version 0.34 or higher on Unix systems
  - version 0.46 or higher on Windows systems


***************************************************************************
NOTE: the optional Mail::SPF module is not installed.

  Used to check DNS Sender Policy Framework (SPF) records to fight email
  address forgery and make it easier to identify spams.  (This is preferred
  over Mail::SPF::Query.)


***************************************************************************
NOTE: the optional Mail::SPF::Query module is installed,
but is not an up-to-date version.

  Used to check DNS Sender Policy Framework (SPF) records to fight email
  address forgery and make it easier to identify spams.  (Mail::SPF is
  preferred instead of this module.)


***************************************************************************
NOTE: the optional IP::Country module is not installed.

  Used by the RelayCountry plugin (not enabled by default) to determine
  the domain country codes of each relay in the path of an email.


***************************************************************************
NOTE: the optional Razor2 (version 2.61) module is not installed.

  Used to check message signatures against Vipul's Razor collaborative
  filtering network. Razor has a large number of dependencies on CPAN
  modules. Feel free to skip installing it, if this makes you nervous;
  SpamAssassin will still work well without it.

  More info on installing and using Razor can be found
  at http://wiki.apache.org/spamassassin/InstallingRazor .


***************************************************************************
NOTE: the optional Net::Ident module is not installed.

  If you plan to use the --auth-ident option to spamd, you will need
  to install this module.


***************************************************************************
NOTE: the optional IO::Socket::INET6 module is not installed.

  This is required if the first nameserver listed in your IP
  configuration or /etc/resolv.conf file is available only via
  an IPv6 address.


***************************************************************************
NOTE: the optional IO::Socket::SSL module is installed,
but is not an up-to-date version.

  If you wish to use SSL encryption to communicate between spamc and
  spamd (the --ssl option to spamd), you need to install this
  module. (You will need the OpenSSL libraries and use the
  ENABLE_SSL="yes" argument to Makefile.PL to build and run an SSL
  compatibile spamc.)


***************************************************************************
NOTE: the optional Compress::Zlib module is installed,
but is not an up-to-date version.

  If you wish to use the optional zlib compression for communication
  between spamc and spamd (the -z option to spamc), you need to install
  this module.


***************************************************************************
NOTE: the optional Mail::DomainKeys module is not installed.

  If this module is installed, and you enable the DomainKeys plugin,
  SpamAssassin will perform Domain Key lookups when Domain Key
  information is present in the message headers.  (Note that new versions
  of Mail::DKIM render this module superfluous.)


***************************************************************************
NOTE: the optional Mail::DKIM module is not installed.

  If this module is installed, and you enable the DKIM plugin,
  SpamAssassin will perform DKIM lookups when a DKIM-Signature
  header is present in the message headers.  (New versions of this module
  support both Domain Keys and DKIM, rendering Mail::DomainKeys obsolete.)


***************************************************************************
NOTE: the optional DBI module is not installed.

  If you intend to use SpamAssassin with an SQL database backend for
  user configuration data, Bayes storage, or other storage, you will need
  to have these installed; both the basic DBI module and the driver for
  your database.


***************************************************************************
NOTE: the optional Encode::Detect module is not installed.

  If you plan to use the normalize_charset config setting to detect
  charsets and convert them into Unicode, you will need to install
  this module.

REQUIRED module missing: HTML::Parser
REQUIRED module missing: Net::DNS
optional module missing: Mail::SPF
optional module out of date: Mail::SPF::Query
optional module missing: IP::Country
optional module missing: Razor2
optional module missing: Net::Ident
optional module missing: IO::Socket::INET6
optional module out of date: IO::Socket::SSL
optional module out of date: Compress::Zlib
optional module missing: Mail::DomainKeys
optional module missing: Mail::DKIM
optional module missing: DBI
optional module missing: Encode::Detect

warning: some functionality may not be available,
please read the above report before continuing!

 *
 * ERROR: mail-filter/spamassassin-3.2.3 failed.
 * Call stack:
 *               ebuild.sh, line   35:  Called src_compile
 *             environment, line 2354:  Called perl-module_src_prep
 *             environment, line 2062:  Called die
 * The specific snippet of code:
 *               echo "$pm_echovar" | perl Makefile.PL ${myconf} INSTALLMAN3DIR='none' PREFIX=/usr INSTALLDIRS=vendor DESTDIR=${D} || diefunc "$FUNCNAME" "$LINENO" "$?" "Unable to build! (are you using USE=\"build\"?)";
 *  The die message:
 *   Unable to build! (are you using USE="build"?)
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/mail-filter/spamassassin-3.2.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/mail-filter/spamassassin-3.2.3/temp/environment'.
 *

 * Messages for package mail-filter/spamassassin-3.2.3:

 *
 * ERROR: mail-filter/spamassassin-3.2.3 failed.
 * Call stack:
 *               ebuild.sh, line   35:  Called src_compile
 *             environment, line 2354:  Called perl-module_src_prep
 *             environment, line 2062:  Called die
 * The specific snippet of code:
 *               echo "$pm_echovar" | perl Makefile.PL ${myconf} INSTALLMAN3DIR='none' PREFIX=/usr INSTALLDIRS=vendor DESTDIR=${D} || diefunc "$FUNCNAME" "$LINENO" "$?" "Unable to build! (are you using USE=\"build\"?)";
 *  The die message:
 *   Unable to build! (are you using USE="build"?)
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/mail-filter/spamassassin-3.2.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/mail-filter/spamassassin-3.2.3/temp/environment'.



Any ideas?

Code:
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Portage 2.1.4_rc4 (hardened/amd64/multilib, gcc-3.4.6, glibc-2.7-r0, 2.6.23-hardened-r2 x86_64)
=================================================================
System uname: 2.6.23-hardened-r2 x86_64 Dual-Core AMD Opteron(tm) Processor 2214 HE
Timestamp of tree: Tue, 11 Dec 2007 10:46:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r6, 2.5.1-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=k8 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks loadpolicy metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
MAKEOPTS="-j12"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X acpi aim amd64 apache2 apm avi berkdb bzlib cairo caps cracklib crypt curl encode exim extensions fam flash ftp gd gif gnutls gstreamer gtk2 hardened icq imagemagick imap innodb ithreads jpeg justify lcms mbox midi ming mng mpeg msql multilib mysql nls nptl nptlonly ogg oggvorbis opengl pam pic postgres python quicktime quotas readline sqlite ssl szip tcltk tcpd theora threads tiff tokenizer truetype urandom usb vhosts xml xorg xsl xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Back to top
View user's profile Send private message
di1bert
l33t
l33t


Joined: 16 May 2002
Posts: 963
Location: Oslo, Norway

PostPosted: Tue Dec 11, 2007 1:12 pm    Post subject: Reply with quote

You're missing a dep dev-perl/HTML-Parser for SpamAssassin. Why the ebuild hasn't
pulled it in I don't know. It could be a use flag setting, but I'm not sure which.

Install that first and then retry SA and you should come right....

HTH

-m
Back to top
View user's profile Send private message
apryan
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2005
Posts: 124

PostPosted: Tue Dec 11, 2007 5:09 pm    Post subject: Reply with quote

I wish it was that simple.... I did have Spamassisin installed before and it was working fine. It seems like possibly after my most recent esyncs, something got fubared.

Code:

HTML-Parser is installed
[ebuild   R   ] dev-perl/HTML-Parser-3.56  USE="-unicode" 0 kB
      Latest version available: 3.56
      Latest version installed: 3.56

Mail-SPF-Query is installed
[ebuild   R   ] dev-perl/Mail-SPF-Query-1.999.1  0 kB
      Latest version available: 1.999.1
      Latest version installed: 1.999.1

Razor2 is installed
[ebuild   R   ] mail-filter/razor-2.84  0 kB
      Latest version available: 2.84
      Latest version installed: 2.84

IO::Socket::SSL is installed
[ebuild   R   ] dev-perl/IO-Socket-SSL-1.12  0 kB
      Latest version available: 1.12
      Latest version installed: 1.12

DBI is installed
[ebuild   R   ] dev-perl/DBI-1.601  0 kB
      Latest version available: 1.601
      Latest version installed: 1.601

Compress-Zlib is installed
[ebuild   R   ] dev-perl/Compress-Zlib-2.005  0 kB
      Latest version available: 2.005
      Latest version installed: 2.005


*  dev-perl/Net-Ident
      Latest version available: 1.20
      Latest version installed: [ Not Installed ]
*  dev-perl/IP-Country
      Latest version available: 2.23
      Latest version installed: [ Not Installed ]

*  dev-perl/Mail-DomainKeys
      Latest version available: 1.0
      Latest version installed: [ Not Installed ]

*  dev-perl/Mail-DKIM
      Latest version available: 0.26
      Latest version installed: [ Not Installed ]

*  dev-perl/Encode-Detect
      Latest version available: 1.00
      Latest version installed: [ Not Installed ]


Seems to be a perl problem but not sure how to safely go about resolving it with out unemerging perl[/code]
Back to top
View user's profile Send private message
apryan
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2005
Posts: 124

PostPosted: Tue Dec 11, 2007 5:30 pm    Post subject: Reply with quote

Okay.... What I had to do to get this working was basically uninstall all the required modules and than reinstall.

Code:
emerge -C IO-Socket-SSL; emerge IO-Socket-SSL
emerge -C razor;emerge razor
emerge -C DBI;emerge DBI
emerge -C Compress-Zlib;emerge Compress-Zlib
emerge -C HTML-Parser;emerge HTML-Parser
emerge -C Mail-SPF-Query;emerge Mail-SPF-Query
emerge -C Net-DNS;emerge Net-DNS


Fixed. Not sure why it got all retarded but now Spamassin installed. *sigh*.
Back to top
View user's profile Send private message
s|mon
Apprentice
Apprentice


Joined: 04 Jul 2004
Posts: 209
Location: Bayern [de]

PostPosted: Sun May 16, 2010 3:24 pm    Post subject: Reply with quote

same here, i just ran
Code:
emerge -av1 DBI HTML-Parser Digest-SHA1
(all of those where already installed) and after this the emerge went through without error.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum