Page 2 of 2

Re: SpamAssassin 3.3.2

Posted: Wed Oct 19, 2011 2:01 am
by biggles
Sorry about that. It's not ossec that's e-mailing, it's cron:

Code: Select all

/etc/cron.daily/logrotate:

Subroutine IO::Socket::INET6::AF_INET6 redefined at /usr/lib/perl5/5.8.8/Exporter.pm line 65.
 at /usr/lib/perl5/vendor_perl/5.8.8/IO/Socket/INET6.pm line 16
Subroutine Net::DNS::Resolver::Base::AF_INET6 redefined at /usr/lib/perl5/5.8.8/Exporter.pm line 65.
 at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Net/DNS/Resolver/Base.pm line 66

Re: SpamAssassin 3.3.2

Posted: Sat Oct 22, 2011 12:11 am
by biggles
Fixed it. Updated to:

Code: Select all

perl-Net-DNS-0.66-1
perl-IO-Socket-INET6-2.57-2

Re: SpamAssassin 3.3.2

Posted: Sun Jul 08, 2012 6:11 am
by breun
Assuming you're using EL5, where did you get that perl-Net-DNS 0.66 package from? AFAIK EL5 comes with perl-Net-DNS 0.59.

Code: Select all

# rpm -q spamassassin perl-IO-Socket-INET6 perl-Net-DNS
spamassassin-3.3.2-7.el5.art.x86_64
perl-IO-Socket-INET6-2.67-1.el5.art.noarch
perl-Net-DNS-0.59-3.el5.x86_64
And I get this message daily ever since installing spamassassin and perl-IO-Socket-INET6 from Atomic:
From: Cron Daemon <root@hostname.example.com>
Subject: Cron <root@hostname> /usr/share/spamassassin/sa-update.cron 2>&1 | tee -a /var/log/sa-update.log
To: root@hostname.example.com

Subroutine Net::DNS::Resolver::Base::AF_INET6 redefined at /usr/lib/perl5/5.8.8/Exporter.pm line 65.
at /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/Net/DNS/Resolver/Base.pm line 66
Anyone got a fix?

Re: SpamAssassin 3.3.2

Posted: Wed Jul 11, 2012 1:11 am
by biggles
Using EL5. Can't really remever where I got it. Did I comPile it on my own? One's memery does fail one sometimes... Let me check the logs!

Re: SpamAssassin 3.3.2

Posted: Wed Jul 11, 2012 2:52 am
by breun
This should also tell you what machine built it and when it was installed, etc.:

Code: Select all

rpm -qi perl-Net-DNS

Re: SpamAssassin 3.3.2

Posted: Wed Jul 25, 2012 2:43 pm
by breun
Someone mentions removing the perl-IO-Socket-INET6 package fixes this problem: http://www.davekb.com/browse_computer_t ... efined:txt It doesn't sound like the best solution, since you need to remove the package using --nodeps, and it will probably be installed again with the next update of SpamAssassin, but it's an idea.

Or maybe switch back to the CentOS SpamAssassin 3.3.1 package and its dependencies. It seems 3.3.2 was mainly released to support perl 5.12, which probably not many of us are using since EL5 comes with Perl 5.8 and EL6 comes with Perl 5.10: http://spamassassin.apache.org/news.html

Re: SpamAssassin 3.3.2

Posted: Wed Jul 25, 2012 2:56 pm
by breun
There's also a long thread about this issue on the spamassassin mailinglist here: http://lists.centos.org/pipermail/cento ... 21652.html

The final fix for a couple of people seems to be downgrading perl-NetAddr-IP from the RepoForge version to the package from the vendor.

I see the problem on servers that don't use RepoForge and have the stock EL5 perl-NetAddr-IP package installed. Maybe the combination of this package and the perl-IO-Socket-INET6 from Atomicorp doesn't work too well?

spamassassin-3.3.2-7.el5.art.x86_64
perl-IO-Socket-INET6-2.67-1.el5.art.noarch
perl-Net-DNS-0.59-3.el5.x86_64
perl-NetAddr-IP-4.027-5.el5_6.x86_64

The error occurs when the SpamAssassin daemon is restarted, not when sa-update is running like the thread's subject suggest. (But the SpamAssassin daemon is restarted after sa-update installs updated rules.)

Re: SpamAssassin 3.3.2

Posted: Sat Jul 28, 2012 11:05 am
by biggles
Sorry for not getting back sooner! :oops:

Code: Select all

 rpm -qi perl-Net-DNS
Name        : perl-Net-DNS                 Relocations: (not relocatable)
Version     : 0.66                              Vendor: Dag Apt Repository, http://dag.wieers.com/apt/
Release     : 1.el5.rfx                     Build Date: Wed 17 Nov 2010 05:22:31 PM CET
Install Date: Thu 29 Dec 2011 06:05:09 AM CET      Build Host: lisse.hasselt.wieers.com
Group       : Applications/CPAN             Source RPM: perl-Net-DNS-0.66-1.el5.rfx.src.rpm
Size        : 651920                           License: Artistic/GPL
Signature   : DSA/SHA1, Wed 17 Nov 2010 11:51:52 PM CET, Key ID a20e52146b8d79e6
Packager    : Dag Wieers <dag@wieers.com>
URL         : http://search.cpan.org/dist/Net-DNS/
Summary     : DNS resolver modules for Perl
Description :
Net::DNS is a collection of Perl modules that act as a Domain Name
System (DNS) resolver. It allows the programmer to perform DNS queries
that are beyond the capabilities of gethostbyname and gethostbyaddr.

The programmer should be somewhat familiar with the format of a DNS
packet and its various sections. See RFC 1035 or DNS and BIND (Albitz
& Liu) for details.

Re: SpamAssassin 3.3.2

Posted: Sat Jul 28, 2012 5:22 pm
by breun
Ah, .rfx is the RepoForge Extras repo tag: http://repoforge.org/faq/

Maybe that newer version of perl-Net-DNS (0.66 versus 0.59 in the EL5 repo) causes the issue to not occur.

Re: SpamAssassin 3.3.2

Posted: Mon Jul 30, 2012 5:31 am
by biggles
It looks like it fixes it for EL5, yes. When I installed that the error disappeared...