Summary: | net-analyzer/mrtg-2.16.2 complains about redefined SNMP_Session::AF_INET6 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | [OLD] Server | Assignee: | Gentoo Netmon project <netmon> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | frank, kfm, llarian, perl, pva, renatogallo, sven.koehler |
Priority: | High | ||
Version: | 2007.0 | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://code.google.com/p/snmp-session/issues/detail?id=5 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 509992 |
Description
Juergen Rose
2010-05-27 15:29:58 UTC
Thank you for repot. Please, try net-analyzer/mrtg-2.16.2-r1 this problem should be fixed there and if that's the case I'll ask to stabilize it asap. I encountered this symptom with other perl packages depending on dev-perl/Socket6 (notably IO::Socket::INET6, and upgrading to =dev-perl/Socket6-0.23 removed the duplicate AF_INET6 and PF_INET6 definitions (and therefore the warnings) for me. # echo '=dev-perl/Socket6-0.23 ~amd64' >> /etc/portage/package.keywords # emerge -av1 dev-perl/Socket6 $0.02, Eric With mrtg-2.16.2-r1: root@cheetah:/root(3)# genlop -t mrtg | tail Sun May 30 04:38:34 2010 >>> net-analyzer/mrtg-2.16.2-r1 merge time: 43 seconds. Tue Aug 10 04:37:02 2010 >>> net-analyzer/mrtg-2.16.4 merge time: 53 seconds. Thu Nov 4 11:48:31 2010 >>> net-analyzer/mrtg-2.16.2-r1 merge time: 1 minute and 9 seconds. /etc/init.d/mrtg fails to start with: root@cheetah:/root(4)# /etc/init.d/mrtg start Bareword "P_DETACH" not allowed while "strict subs" in use at /usr/bin/../lib/mrtg2/MRTG_lib.pm line 1172. Compilation failed in require at /usr/bin/mrtg line 89. BEGIN failed--compilation aborted at /usr/bin/mrtg line 89. * ERROR: mrtg failed to start With mrtg-2.16.4 root@cheetah:/root(8)# genlop -t mrtg | tail Tue Aug 10 04:37:02 2010 >>> net-analyzer/mrtg-2.16.4 merge time: 53 seconds. Thu Nov 4 11:48:31 2010 >>> net-analyzer/mrtg-2.16.2-r1 merge time: 1 minute and 9 seconds. Thu Nov 4 12:37:16 2010 >>> net-analyzer/mrtg-2.16.4 merge time: 1 minute and 2 seconds. /etc/init.d/mrtg complains again: root@cheetah:/root(9)# /etc/init.d/mrtg start * Caching service dependencies ... Constant subroutine SNMP_Session::AF_INET6 redefined at /usr/lib/perl5/5.12.2/Exporter.pm line 64. at /usr/lib/perl5/vendor_perl/5.12.2/SNMP_Session.pm line 149 Prototype mismatch: sub SNMP_Session::AF_INET6 () vs none at /usr/lib/perl5/5.12.2/Exporter.pm line 64. at /usr/lib/perl5/vendor_perl/5.12.2/SNMP_Session.pm line 149 Constant subroutine SNMP_Session::PF_INET6 redefined at /usr/lib/perl5/5.12.2/Exporter.pm line 64. at /usr/lib/perl5/vendor_perl/5.12.2/SNMP_Session.pm line 149 Prototype mismatch: sub SNMP_Session::PF_INET6 () vs none at /usr/lib/perl5/5.12.2/Exporter.pm line 64. at /usr/lib/perl5/vendor_perl/5.12.2/SNMP_Session.pm line 149 Constant subroutine SNMPv1_Session::AF_INET6 redefined at /usr/lib/perl5/5.12.2/Exporter.pm line 64. at /usr/lib/perl5/vendor_perl/5.12.2/SNMP_Session.pm line 608 Prototype mismatch: sub SNMPv1_Session::AF_INET6 () vs none at /usr/lib/perl5/5.12.2/Exporter.pm line 64. at /usr/lib/perl5/vendor_perl/5.12.2/SNMP_Session.pm line 608 Constant subroutine SNMPv1_Session::PF_INET6 redefined at /usr/lib/perl5/5.12.2/Exporter.pm line 64. at /usr/lib/perl5/vendor_perl/5.12.2/SNMP_Session.pm line 608 Prototype mismatch: sub SNMPv1_Session::PF_INET6 () vs none at /usr/lib/perl5/5.12.2/Exporter.pm line 64. at /usr/lib/perl5/vendor_perl/5.12.2/SNMP_Session.pm line 608 * Starting mrtg ... *** Bug 331161 has been marked as a duplicate of this bug. *** Thank you guys. I've added depend on >=dev-perl/Socket6-0.20 and this should fix this problem. If not, please, reopen, again. I still have the same issue. I recompiled all packages, where I assume that there are could be related to this issue: rose@cheetah:/home/rose(1)$ genlop -t net-snmp | tail -n3 Wed Nov 10 13:37:26 2010 >>> dev-perl/Net-SNMP-6.0.1 merge time: 34 seconds. rose@cheetah:/home/rose(2)$ genlop -t Net-SNMP | tail -n3 Wed Nov 10 13:37:26 2010 >>> dev-perl/Net-SNMP-6.0.1 merge time: 34 seconds. rose@cheetah:/home/rose(3)$ genlop -t SNMP_Session | tail -n6 Tue Nov 9 22:23:22 2010 >>> dev-perl/SNMP_Session-1.13 merge time: 53 seconds. Wed Nov 10 13:20:59 2010 >>> dev-perl/SNMP_Session-1.13 merge time: 44 seconds. rose@cheetah:/home/rose(4)$ genlop -t mrtg | tail -n6 Wed Nov 10 04:38:19 2010 >>> net-analyzer/mrtg-2.16.4-r1 merge time: 1 minute and 1 second. Wed Nov 10 13:38:39 2010 >>> net-analyzer/mrtg-2.16.4-r1 merge time: 1 minute and 12 seconds. rose@cheetah:/home/rose(5)$ genlop -t Socket6 | tail -n6 Tue Nov 9 22:39:21 2010 >>> dev-perl/Socket6-0.23 merge time: 39 seconds. Wed Nov 10 13:21:44 2010 >>> dev-perl/Socket6-0.23 merge time: 45 seconds. *** Bug 345007 has been marked as a duplicate of this bug. *** > Comment #5
What about use "use flag"
ipv6 - Adds support for IP version 6
for this new dep ?
Juergen, have you run perl-cleaner after perl update? Also could you post updated emerge --info? Personally I'm unable to reproduce this problem. @perl, do you have any ideas what may cause this error? Yea, I've saw that bug reports. Thank you, Torsten. But what makes me wonder, how mrtg works here without any problems?... What triggers this issue? Yes I did 'perl-cleaner --a' (last time 20 minutes ago), then I rebooted the machine and I got again: root@cheetah:/root(4)# cat /var/log/rc.log ... * Starting hddtemp daemon ... [ ok ] Constant subroutine SNMP_Session::AF_INET6 redefined at /usr/lib/perl5/5.12.2/Exporter.pm line 64. at /usr/lib/perl5/vendor_perl/5.12.2/SNMP_Session.pm line 149 Prototype mismatch: sub SNMP_Session::AF_INET6 () vs none at /usr/lib/perl5/5.12.2/Exporter.pm line 64. at /usr/lib/perl5/vendor_perl/5.12.2/SNMP_Session.pm line 149 Constant subroutine SNMP_Session::PF_INET6 redefined at /usr/lib/perl5/5.12.2/Exporter.pm line 64. at /usr/lib/perl5/vendor_perl/5.12.2/SNMP_Session.pm line 149 Prototype mismatch: sub SNMP_Session::PF_INET6 () vs none at /usr/lib/perl5/5.12.2/Exporter.pm line 64. at /usr/lib/perl5/vendor_perl/5.12.2/SNMP_Session.pm line 149 Constant subroutine SNMPv1_Session::AF_INET6 redefined at /usr/lib/perl5/5.12.2/Exporter.pm line 64. at /usr/lib/perl5/vendor_perl/5.12.2/SNMP_Session.pm line 608 Prototype mismatch: sub SNMPv1_Session::AF_INET6 () vs none at /usr/lib/perl5/5.12.2/Exporter.pm line 64. at /usr/lib/perl5/vendor_perl/5.12.2/SNMP_Session.pm line 608 Constant subroutine SNMPv1_Session::PF_INET6 redefined at /usr/lib/perl5/5.12.2/Exporter.pm line 64. at /usr/lib/perl5/vendor_perl/5.12.2/SNMP_Session.pm line 608 Prototype mismatch: sub SNMPv1_Session::PF_INET6 () vs none at /usr/lib/perl5/5.12.2/Exporter.pm line 64. at /usr/lib/perl5/vendor_perl/5.12.2/SNMP_Session.pm line 608 * Starting mrtg ... [ ok ] ... rc default logging stopped at Tue Nov 16 16:41:01 2010 root@cheetah:/root(4)# du -s /usr/lib/perl5/5* /usr/lib/perl5/site_perl/5* /usr/lib/perl5/vendor_perl/5* 48420 /usr/lib/perl5/5.12.2 2476 /usr/lib/perl5/site_perl/5.12.2 188476 /usr/lib/perl5/vendor_perl/5.12.2 And I have only /usr/lib//perl.../5.12.2 directories. Beside of this noise from "/etc/init.d/mrtg start" "/etc/init.d/mrtg status" says: root@cheetah:/root(9)# /etc/init.d/mrtg status * status: started Could it be that the URL is not correct? I get always "Error: Not Found" Should the URL perhaps: http://oss.oetiker.ch/mrtg-trac/ticket/45? (In reply to comment #13) > Could it be that the URL is not correct? I get always "Error: Not Found" > Should the URL perhaps: http://oss.oetiker.ch/mrtg-trac/ticket/45? Works here... I wanted only to say, if I click on "URL:" I get "Not found". I suppose, because there are two links of the right sight of URL:. Both links: to continue the last posting: http://oss.oetiker.ch/mrtg-trac/ticket/45 and http://code.google.com/p/snmp-session/issues/detail?id=5 works. (In reply to comment #15) > I wanted only to say, if I click on "URL:" I never tried to click on the URL link. I guess I always expected some bugzilla help behind it. (In reply to comment #10) > Yea, I've saw that bug reports. Thank you, Torsten. But what makes me wonder, > how mrtg works here without any problems?... What triggers this issue? Don't know. Which versions do you have installed? emerge -pv dev-perl/Socket6 dev-perl/IO-Socket-INET6 Do you use IPv6? Do you enable ipv6 in your mrtg configfile? I find in my /etc/mrtg.conf: EnableIPv6: no Could you try to reproduce this problem with mrtg-2.17.2, please? Hello Peter, I still have the same issue with mrtg-2.17.1: root@cheetah:/root(4)# /etc/init.d/mrtg start Constant subroutine SNMP_Session::AF_INET6 redefined at /usr/lib/perl5/5.12.4/Exporter.pm line 64. at /usr/lib/perl5/vendor_perl/5.12.4/SNMP_Session.pm line 149 Prototype mismatch: sub SNMP_Session::AF_INET6 () vs none at /usr/lib/perl5/5.12.4/Exporter.pm line 64. at /usr/lib/perl5/vendor_perl/5.12.4/SNMP_Session.pm line 149 Constant subroutine SNMP_Session::PF_INET6 redefined at /usr/lib/perl5/5.12.4/Exporter.pm line 64. at /usr/lib/perl5/vendor_perl/5.12.4/SNMP_Session.pm line 149 Prototype mismatch: sub SNMP_Session::PF_INET6 () vs none at /usr/lib/perl5/5.12.4/Exporter.pm line 64. at /usr/lib/perl5/vendor_perl/5.12.4/SNMP_Session.pm line 149 Constant subroutine SNMPv1_Session::AF_INET6 redefined at /usr/lib/perl5/5.12.4/Exporter.pm line 64. at /usr/lib/perl5/vendor_perl/5.12.4/SNMP_Session.pm line 608 Prototype mismatch: sub SNMPv1_Session::AF_INET6 () vs none at /usr/lib/perl5/5.12.4/Exporter.pm line 64. at /usr/lib/perl5/vendor_perl/5.12.4/SNMP_Session.pm line 608 Constant subroutine SNMPv1_Session::PF_INET6 redefined at /usr/lib/perl5/5.12.4/Exporter.pm line 64. at /usr/lib/perl5/vendor_perl/5.12.4/SNMP_Session.pm line 608 Prototype mismatch: sub SNMPv1_Session::PF_INET6 () vs none at /usr/lib/perl5/5.12.4/Exporter.pm line 64. at /usr/lib/perl5/vendor_perl/5.12.4/SNMP_Session.pm line 608 * Starting mrtg ... [ ok ] root@cheetah:/root(5)# qlist -Iv mrtg net-analyzer/mrtg-2.17.2 root@cheetah:/root(7)# genlop -t mrtg | tail Wed Nov 10 04:38:19 2010 >>> net-analyzer/mrtg-2.16.4-r1 merge time: 1 minute and 1 second. Wed Nov 10 13:38:39 2010 >>> net-analyzer/mrtg-2.16.4-r1 merge time: 1 minute and 12 seconds. Mon Jun 20 20:34:12 2011 >>> net-analyzer/mrtg-2.17.2 merge time: 42 seconds. *** Bug 509986 has been marked as a duplicate of this bug. *** Fixed in =net-analyzer/mrtg-2.17.4-r1. Oh, it isn't fixed in SNMP_Session, it seems. This should be fixed now that dev-perl/Socket6-0.20 is gone. I have added a properly versioned dependency in =net-analyzer/mrtg-2.17.4-r1. |