Stuart Henderson wrote:
On 2009/12/14 00:39, Stuart Henderson wrote:
since the Net::SNMP update I'm seeing this when MRTG starts up.
it seems to still work, but any ideas what's up or if it's important?
unless this can get fixed quickly I'd like to revert it. any ok's?
This diff (from Fedora 9 Rpm) fixes the warnings, ok ?
http://koji.fedoraproject.org/koji/buildinfo?buildID=46559
Cheers
Giovanni
Index: Makefile
===================================================================
RCS file: /cvs/ports/net/mrtg/Makefile,v
retrieving revision 1.61
diff -u -p -r1.61 Makefile
--- Makefile 2 Jun 2009 21:47:02 -0000 1.61
+++ Makefile 22 Dec 2009 11:53:40 -0000
@@ -3,6 +3,7 @@
COMMENT= multi-router traffic grapher
DISTNAME= mrtg-2.16.2
+PKGNAME= ${DISTNAME}p0
CATEGORIES= net
HOMEPAGE= http://oss.oetiker.ch/mrtg/
Index: patches/patch-bin_mrtg
===================================================================
RCS file: patches/patch-bin_mrtg
diff -N patches/patch-bin_mrtg
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-bin_mrtg 22 Dec 2009 11:53:40 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+--- bin/mrtg.orig Tue Dec 22 12:50:57 2009
++++ bin/mrtg Tue Dec 22 12:51:27 2009
+@@ -97,8 +97,8 @@ use locales_mrtg "0.07";
+ # necessary for dead host detection (for IPv6 name lookups).
+ BEGIN {
+ if (eval {local $SIG{__DIE__};require Socket6;}) {
+- import Socket;
+- import Socket6
++ use Socket();
++ import Socket6;
+ }
+ }
+
Index: patches/patch-lib_mrtg2_SNMP_Session_pm
===================================================================
RCS file: patches/patch-lib_mrtg2_SNMP_Session_pm
diff -N patches/patch-lib_mrtg2_SNMP_Session_pm
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-lib_mrtg2_SNMP_Session_pm 22 Dec 2009 11:53:40 -0000
@@ -0,0 +1,21 @@
+$OpenBSD$
+--- 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));
+ }
+ }
+