Constant subroutine SNMP_Session::AF_INET6 redefined at /usr/lib64/perl5/5.12.1/Exporter.pm line 64. at /usr/lib64/perl5/vendor_perl/5.12.1/SNMP_Session.pm line 149 Prototype mismatch: sub SNMP_Session::AF_INET6 () vs none at /usr/lib64/perl5/5.12.1/Exporter.pm line 64. at /usr/lib64/perl5/vendor_perl/5.12.1/SNMP_Session.pm line 149 Constant subroutine SNMP_Session::PF_INET6 redefined at /usr/lib64/perl5/5.12.1/Exporter.pm line 64. at /usr/lib64/perl5/vendor_perl/5.12.1/SNMP_Session.pm line 149 Prototype mismatch: sub SNMP_Session::PF_INET6 () vs none at /usr/lib64/perl5/5.12.1/Exporter.pm line 64. at /usr/lib64/perl5/vendor_perl/5.12.1/SNMP_Session.pm line 149 Constant subroutine SNMPv1_Session::AF_INET6 redefined at /usr/lib64/perl5/5.12.1/Exporter.pm line 64. at /usr/lib64/perl5/vendor_perl/5.12.1/SNMP_Session.pm line 608 Prototype mismatch: sub SNMPv1_Session::AF_INET6 () vs none at /usr/lib64/perl5/5.12.1/Exporter.pm line 64. at /usr/lib64/perl5/vendor_perl/5.12.1/SNMP_Session.pm line 608 Constant subroutine SNMPv1_Session::PF_INET6 redefined at /usr/lib64/perl5/5.12.1/Exporter.pm line 64. at /usr/lib64/perl5/vendor_perl/5.12.1/SNMP_Session.pm line 608 Prototype mismatch: sub SNMPv1_Session::PF_INET6 () vs none at /usr/lib64/perl5/5.12.1/Exporter.pm line 64. at /usr/lib64/perl5/vendor_perl/5.12.1/SNMP_Session.pm line 608 Unknown SNMP var ssCpuRawUser.0 at /usr/bin/mrtg line 2242 Unknown SNMP var ssCpuRawUser.0 at /usr/bin/mrtg line 2242 Reproducible: Always Steps to Reproduce: 1./etc/init.d/mrtg restart Actual Results: /etc/init.d/mrtg restart * Stopping mrtg... [ ok ] Constant subroutine SNMP_Session::AF_INET6 redefined at /usr/lib64/perl5/site_perl/5.12.1/Exporter.pm line 67. at /usr/lib64/perl5/vendor_perl/5.12.1/SNMP_Session.pm line 149 Prototype mismatch: sub SNMP_Session::AF_INET6 () vs none at /usr/lib64/perl5/site_perl/5.12.1/Exporter.pm line 67. at /usr/lib64/perl5/vendor_perl/5.12.1/SNMP_Session.pm line 149 Constant subroutine SNMP_Session::PF_INET6 redefined at /usr/lib64/perl5/site_perl/5.12.1/Exporter.pm line 67. at /usr/lib64/perl5/vendor_perl/5.12.1/SNMP_Session.pm line 149 Prototype mismatch: sub SNMP_Session::PF_INET6 () vs none at /usr/lib64/perl5/site_perl/5.12.1/Exporter.pm line 67. at /usr/lib64/perl5/vendor_perl/5.12.1/SNMP_Session.pm line 149 Constant subroutine SNMPv1_Session::AF_INET6 redefined at /usr/lib64/perl5/site_perl/5.12.1/Exporter.pm line 67. at /usr/lib64/perl5/vendor_perl/5.12.1/SNMP_Session.pm line 608 Prototype mismatch: sub SNMPv1_Session::AF_INET6 () vs none at /usr/lib64/perl5/site_perl/5.12.1/Exporter.pm line 67. at /usr/lib64/perl5/vendor_perl/5.12.1/SNMP_Session.pm line 608 Constant subroutine SNMPv1_Session::PF_INET6 redefined at /usr/lib64/perl5/site_perl/5.12.1/Exporter.pm line 67. at /usr/lib64/perl5/vendor_perl/5.12.1/SNMP_Session.pm line 608 Prototype mismatch: sub SNMPv1_Session::PF_INET6 () vs none at /usr/lib64/perl5/site_perl/5.12.1/Exporter.pm line 67. at /usr/lib64/perl5/vendor_perl/5.12.1/SNMP_Session.pm line 608 * Starting mrtg... Expected Results: * Stopping mrtg... * Starting mrtg... patch: ----------------------------------------------------- --- lib/mrtg2/SNMP_Session.pm.orig Tue Dec 22 12:49:07 2009 +++ lib/mrtg2/SNMP_Session.pm Tue Dec 22 12:50:27 2009 @@ -146,7 +146,7 @@ BEGIN { if (eval {local $SIG{__DIE__};require Socket6;} && eval {local $SIG{__DIE__};require IO::Socket::INET6; IO::Socket::INET6->VERSION("1.26");}) { - import Socket6; + Socket6->import(qw(pack_sockaddr_in6 inet_pton)); $ipv6_addr_len = length(pack_sockaddr_in6(161, inet_pton(AF_INET6(), "::1"))); $SNMP_Session::ipv6available = 1; } @@ -601,7 +601,7 @@ use Carp; BEGIN { if($SNMP_Session::ipv6available) { import IO::Socket::INET6; - import Socket6; + Socket6->import(qw(pack_sockaddr_in6 inet_pton)); } } ----------------------------------------------------------
Does upstream know about this?
Thank you for report, renato. At times bug was opened mrtg-2.16.4 did not exist in the tree. I guess this bug is about 2.16.2. Do you have dev-perl/IO-Socket-INET6 installed? What version? Have you tried mrtg-2.16.2-r1?
I'm getting the same error with Smokeping on a Funtoo box with Perl 5.10.1-r12 and Smokeping 2.4.2-r2. I have a gentoo box with Perl 5.8 which runs clean. Submitter is running Perl 5.12.1
*** This bug has been marked as a duplicate of bug 321701 ***