Bug 662116

Summary: Undefined subroutine &SNMPv1_Session::getaddrinfo called at /usr/bin/../lib/mrtg2/SNMP_Session.pm line 659.
Product: [Fedora] Fedora Reporter: antony osullivan <ajos1>
Component: mrtgAssignee: Vitezslav Crhonek <vcrhonek>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: low    
Version: 14CC: vcrhonek
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: mrtg-2.16.4-3.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-06 19:27:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description antony osullivan 2010-12-10 16:45:41 UTC
Error
=====
I am getting this error every 5 minutes!!  My mailbox is filling up very quickly!  (I assume millions of others are as well... but not noticed yet).

   "Undefined subroutine &SNMPv1_Session::getaddrinfo called at /usr/bin/../lib/mrtg2/SNMP_Session.pm line 659."

Between "mrtg-2.16.4-1.fc14" and "mrtg-2.16.4-2.fc14"...

SNMP_Session.pm changed on lines on 149 and 604 from: "import Socket6;" to "Socket6->import(qw(pack_sockaddr_in6 inet_pton));" .


The Fix
=======
The change should have been:   "Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo));"


[root@onion aasaas]# la mrtg-2.16.4-?.fc14.i686.rpm
===================================================
-rw-r--r-- 1 root root 796660 Sep 27 16:58 mrtg-2.16.4-1.fc14.i686.rpm
-rw-r--r-- 1 root root 796812 Dec  2 11:46 mrtg-2.16.4-2.fc14.i686.rpm


[root@onion aasaas]# la SNMP_Session.pm_20100927 SNMP_Session.pm_20101122 
=========================================================================
-rw-r--r-- 1 root root 35084 Sep 27 14:33 SNMP_Session.pm_20100927
-rw-r--r-- 1 root root 35152 Nov 22 14:25 SNMP_Session.pm_20101122


[root@onion aasaas]# diff SNMP_Session.pm_20100927 SNMP_Session.pm_20101122
===========================================================================
149c149
<       import Socket6;
---
>       Socket6->import(qw(pack_sockaddr_in6 inet_pton));
604c604
<       import Socket6;
---
>       Socket6->import(qw(pack_sockaddr_in6 inet_pton));

Comment 1 antony osullivan 2010-12-10 16:53:58 UTC
This link agrees with my findings...

http://oss.oetiker.ch/mrtg-trac/ticket/45

Near the end... "patch updated to add getaddrinfo"...

Comment 2 Fedora Update System 2010-12-13 14:37:36 UTC
mrtg-2.16.4-3.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/mrtg-2.16.4-3.fc14

Comment 3 Fedora Update System 2010-12-13 20:04:57 UTC
mrtg-2.16.4-3.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update mrtg'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/mrtg-2.16.4-3.fc14

Comment 4 Fedora Update System 2011-01-06 19:27:26 UTC
mrtg-2.16.4-3.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.