Package: libsnmp-session-perl
Version: 1.13-1.1~deb7u1
Severity: important

Dear Maintainer,

mrtg was failing and by turning on debug (--logging logfile 
--debug="cfg,dir,base,tarp,snpo,coca,fork,time,log,eval,prof") it gave me the 
error in the subject.

Seems that the fix for bug #628804 has broken libsnmp-session-perl. Adding 
inet_ntop into the import statements fixes it (credit to a fedora list with the 
same problem).

diff -u /usr/share/perl5/SNMP_Session.pm~ /usr/share/perl5/SNMP_Session.pm
--- /usr/share/perl5/SNMP_Session.pm~   2014-09-04 15:55:59.000000000 +0100
+++ /usr/share/perl5/SNMP_Session.pm    2015-03-24 14:18:30.538377131 +0000
@@ -146,7 +146,7 @@
 
     if (eval {local $SIG{__DIE__};require Socket6;} &&
        eval {local $SIG{__DIE__};require IO::Socket::INET6; 
IO::Socket::INET6->VERSION("1.26");}) {
-       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;
     }
@@ -605,7 +605,7 @@
 BEGIN {
     if($SNMP_Session::ipv6available) {
        import IO::Socket::INET6;
-       Socket6->import(qw(inet_pton getaddrinfo));
+       Socket6->import(qw(inet_pton getaddrinfo inet_ntop));
     }
 }

This is the change that debsums is complaining about below. 

-- System Information:
Debian Release: 7.8
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libsnmp-session-perl depends on:
ii  perl  5.14.2-21+deb7u2

Versions of packages libsnmp-session-perl recommends:
ii  libio-socket-inet6-perl  2.69-2
ii  libsocket6-perl          0.23-1+b2

libsnmp-session-perl suggests no packages.

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/share/perl5/SNMP_Session.pm (from 
libsnmp-session-perl package)


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to