[mrtg] Fix 'undefined subroutine &SNMP_Session::inet_ntop called at /usr/bin/../lib64/mrtg2/SNMP_Session.pm

vcrhonek vcrhonek at fedoraproject.org
Mon Jan 9 15:43:30 UTC 2012


commit 3217ff8135cd1c6ebec776d66c6c827e315a00a0
Author: Vitezslav Crhonek <vcrhonek at redhat.com>
Date:   Mon Jan 9 16:43:21 2012 +0100

    Fix 'undefined subroutine &SNMP_Session::inet_ntop called at /usr/bin/../lib64/mrtg2/SNMP_Session.pm line 549.' error

 mrtg-2.17.2-socket6-fix.patch |    4 ++--
 mrtg.spec                     |    6 +++++-
 2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/mrtg-2.17.2-socket6-fix.patch b/mrtg-2.17.2-socket6-fix.patch
index 8c421f7..1f919c2 100644
--- a/mrtg-2.17.2-socket6-fix.patch
+++ b/mrtg-2.17.2-socket6-fix.patch
@@ -18,7 +18,7 @@ diff -up mrtg-2.17.3/lib/mrtg2/SNMP_Session.pm.orig mrtg-2.17.3/lib/mrtg2/SNMP_S
      if (eval {local $SIG{__DIE__};require Socket6;} &&
         eval {local $SIG{__DIE__};require IO::Socket::INET6; IO::Socket::INET6->VERSION("1.26");}) {
 -       Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo unpack_sockaddr_in6));
-+       Socket6->import(qw(inet_pton getaddrinfo));
++       Socket6->import(qw(inet_pton getaddrinfo inet_ntop));
  	$ipv6_addr_len = length(pack_sockaddr_in6(161, inet_pton(AF_INET6(), "::1")));
  	$SNMP_Session::ipv6available = 1;
      }
@@ -27,7 +27,7 @@ diff -up mrtg-2.17.3/lib/mrtg2/SNMP_Session.pm.orig mrtg-2.17.3/lib/mrtg2/SNMP_S
      if($SNMP_Session::ipv6available) {
  	    import IO::Socket::INET6;
 -        Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo unpack_sockaddr_in6));
-+        Socket6->import(qw(inet_pton getaddrinfo));
++        Socket6->import(qw(inet_pton getaddrinfo inet_ntop));
      }
  }
  
diff --git a/mrtg.spec b/mrtg.spec
index c221e25..ad2f715 100644
--- a/mrtg.spec
+++ b/mrtg.spec
@@ -6,7 +6,7 @@
 Summary:   Multi Router Traffic Grapher
 Name:      mrtg
 Version:   2.17.3
-Release:   1%{?dist}
+Release:   2%{?dist}
 URL:       http://oss.oetiker.ch/mrtg/
 Source0:   http://oss.oetiker.ch/mrtg/pub/mrtg-%{version}.tar.gz
 Source1:   http://oss.oetiker.ch/mrtg/pub/mrtg-%{version}.tar.gz.md5
@@ -136,6 +136,10 @@ fi
 %{_unitdir}/mrtg.timer
 
 %changelog
+* Mon Jan 09 2012 Vitezslav Crhonek <vcrhonek at redhat.com> - 2.17.3-2
+- Fix 'undefined subroutine &SNMP_Session::inet_ntop called at
+  /usr/bin/../lib64/mrtg2/SNMP_Session.pm line 549.' error
+
 * Wed Dec 07 2011 Vitezslav Crhonek <vcrhonek at redhat.com> - 2.17.3-1
 - Update to mrtg-2.17.3
 


More information about the scm-commits mailing list