[mrtg/f16] 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:32:42 UTC 2012


commit 8019600d94102a17112545a657fa1d43f321282b
Author: Vitezslav Crhonek <vcrhonek at redhat.com>
Date:   Mon Jan 9 16:32:33 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 5fd28a2..0ce7f4c 100644
--- a/mrtg-2.17.2-socket6-fix.patch
+++ b/mrtg-2.17.2-socket6-fix.patch
@@ -6,7 +6,7 @@ diff -up mrtg-2.17.2/lib/mrtg2/SNMP_Session.pm.socket6 mrtg-2.17.2/lib/mrtg2/SNM
      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));
-+       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;
      }
@@ -15,7 +15,7 @@ diff -up mrtg-2.17.2/lib/mrtg2/SNMP_Session.pm.socket6 mrtg-2.17.2/lib/mrtg2/SNM
      if($SNMP_Session::ipv6available) {
  	    import IO::Socket::INET6;
 -        Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo));
-+        Socket6->import(qw(inet_pton getaddrinfo));
++        Socket6->import(qw(inet_pton getaddrinfo inet_ntop));
      }
  }
  
diff --git a/mrtg.spec b/mrtg.spec
index 02315d7..f0678b8 100644
--- a/mrtg.spec
+++ b/mrtg.spec
@@ -6,7 +6,7 @@
 Summary:   Multi Router Traffic Grapher
 Name:      mrtg
 Version:   2.17.2
-Release:   6%{?dist}
+Release:   7%{?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
@@ -135,6 +135,10 @@ fi
 %{_unitdir}/mrtg.timer
 
 %changelog
+* Mon Jan 09 2012 Vitezlsav Crhonek <vcrhonek at redhat.com> - 2.17.2-7
+- Fix 'undefined subroutine &SNMP_Session::inet_ntop called at
+  /usr/bin/../lib64/mrtg2/SNMP_Session.pm line 549.' error
+
 * Tue Dec 20 2011 Vitezslav Crhonek <vcrhonek at redhat.com> - 2.17.2-6
 - Fix 'undefined subroutine &main::AF_UNSPEC called at /usr/bin/mrtg line 2247.' error
 


More information about the scm-commits mailing list