Subject: | perl-5.10.0 + Net::DNS equals lots of noise to console |
With perl 5.10.0, Net::DNS generates a significant amount of noise,
specifically:
Constant subroutine Net::DNS::Resolver::Base::AF_INET6 redefined at
/usr/lib/perl5/5.10.0/Exporter.pm line 66.
at
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/Net/DNS/Resolver/Base.pm
line 65
Prototype mismatch: sub Net::DNS::Resolver::Base::AF_INET6 () vs none at
/usr/lib/perl5/5.10.0/Exporter.pm line 66.
at
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/Net/DNS/Resolver/Base.pm
line 65
Constant subroutine Net::DNS::Resolver::Base::PF_INET6 redefined at
/usr/lib/perl5/5.10.0/Exporter.pm line 66.
at
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/Net/DNS/Resolver/Base.pm
line 65
Prototype mismatch: sub Net::DNS::Resolver::Base::PF_INET6 () vs none at
/usr/lib/perl5/5.10.0/Exporter.pm line 66.
at
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/Net/DNS/Resolver/Base.pm
line 65
This was causing serious pain in applications like mrtg and
spamassassin, which were logging this information repeatedly.
I generated a patch which seemed to resolve the issue for Net::DNS, but
seems to be causing a new bug
(https://bugzilla.redhat.com/show_bug.cgi?id=445314). I've attached my
original fix, but it probably needs some work.