Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 331161 - net-analyzer/mrtg-2.16.2 SNMP_Session::AF_INET6 redefined bug
Summary: net-analyzer/mrtg-2.16.2 SNMP_Session::AF_INET6 redefined bug
Status: RESOLVED DUPLICATE of bug 321701
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major
Assignee: Gentoo Netmon project
URL: http://oss.oetiker.ch/mrtg-trac/ticke...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-04 05:49 UTC by renato gallo
Modified: 2010-11-09 14:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description renato gallo 2010-08-04 05:49:41 UTC
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));
     }
 }
----------------------------------------------------------
Comment 1 Michael Weber (RETIRED) gentoo-dev 2010-08-06 09:00:29 UTC
Does upstream know about this?
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2010-08-09 12:55:25 UTC
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?
Comment 3 Lee Thompson 2010-08-26 15:24:41 UTC
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
Comment 4 Peter Volkov (RETIRED) gentoo-dev 2010-11-09 14:10:38 UTC

*** This bug has been marked as a duplicate of bug 321701 ***