Bug 181229 - net-mgmt/p5-SNMP_Session 1.13_1 has an undefined subroutine call for pack_sockaddr_in6
Summary: net-mgmt/p5-SNMP_Session 1.13_1 has an undefined subroutine call for pack_soc...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dmitry Sivachenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-11 19:40 UTC by Darren Henderson
Modified: 2013-08-12 12:20 UTC (History)
0 users

See Also:


Attachments
file.diff (659 bytes, patch)
2013-08-11 19:40 UTC, Darren Henderson
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Darren Henderson 2013-08-11 19:40:00 UTC

Portupgrade of p5-SNMP_Session to 1.13_1 yesterday resulted in failures of mrtg runs with the following:

Undefined subroutine &SNMP_Session::pack_sockaddr_in6 called at /usr/loca/lib/p erl5/site_perl/5.12/SNMP_Session.pm line 150.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.12/SNMP_Se ssion.pm line 154.
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.12/SNMP_util.p  m line 44.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.12/SNMP_ut  il.pm line 44.
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.12/MRTG_lib.pm  line 662.

System had already moved from using the x.xx.xx to the x.xx model lib path for perl. Running perl 5.12.5

Fix: Change call of pack_sockaddr_in6 in /usr/local/lib/perl5/site_perl/5.12/Session_SNMP.pm to Socket6::pack_sockaddr_in6



Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-08-11 21:40:39 UTC
Responsible Changed
From-To: freebsd-ports-bugs->demon

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-08-12 12:15:12 UTC
Author: demon
Date: Mon Aug 12 11:15:04 2013
New Revision: 324621
URL: http://svnweb.freebsd.org/changeset/ports/324621

Log:
  pack_sockaddr_in6 --> Socket6::pack_sockaddr_in6
  
  PR:		181229
  Submitted by:	Darren Henderson <darren.henderson@gmail.com>

Modified:
  head/net-mgmt/p5-SNMP_Session/Makefile
  head/net-mgmt/p5-SNMP_Session/files/patch-SNMP_Session.pm

Modified: head/net-mgmt/p5-SNMP_Session/Makefile
==============================================================================
--- head/net-mgmt/p5-SNMP_Session/Makefile	Mon Aug 12 09:27:35 2013	(r324620)
+++ head/net-mgmt/p5-SNMP_Session/Makefile	Mon Aug 12 11:15:04 2013	(r324621)
@@ -3,7 +3,7 @@
 
 PORTNAME=	SNMP_Session
 PORTVERSION=	1.13
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net-mgmt perl5
 MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
 PROJECTHOST=	snmp-session

Modified: head/net-mgmt/p5-SNMP_Session/files/patch-SNMP_Session.pm
==============================================================================
--- head/net-mgmt/p5-SNMP_Session/files/patch-SNMP_Session.pm	Mon Aug 12 09:27:35 2013	(r324620)
+++ head/net-mgmt/p5-SNMP_Session/files/patch-SNMP_Session.pm	Mon Aug 12 11:15:04 2013	(r324621)
@@ -1,14 +1,16 @@
---- lib/SNMP_Session.pm.orig	2011-01-31 14:10:12.000000000 +0600
-+++ lib/SNMP_Session.pm	2011-01-31 14:11:20.000000000 +0600
-@@ -146,7 +146,7 @@
+--- lib/SNMP_Session.pm.orig	2008-11-21 08:25:17.000000000 +0300
++++ lib/SNMP_Session.pm	2013-08-12 15:13:26.000000000 +0400
+@@ -146,8 +146,8 @@
  
      if (eval {local $SIG{__DIE__};require Socket6;} &&
         eval {local $SIG{__DIE__};require IO::Socket::INET6; IO::Socket::INET6->VERSION("1.26");}) {
 -	import Socket6;
+-	$ipv6_addr_len = length(pack_sockaddr_in6(161, inet_pton(AF_INET6(), "::1")));
 +       	Socket6->import(qw(inet_pton inet_ntop getaddrinfo));
- 	$ipv6_addr_len = length(pack_sockaddr_in6(161, inet_pton(AF_INET6(), "::1")));
++	$ipv6_addr_len = length(Socket6::pack_sockaddr_in6(161, inet_pton(AF_INET6(), "::1")));
  	$SNMP_Session::ipv6available = 1;
      }
+     eval 'local $SIG{__DIE__};local $SIG{__WARN__};$dont_wait_flags = MSG_DONTWAIT();';
 @@ -549,7 +549,7 @@
      # complaining about AF_INET6 when Socket6 is not available
  
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Dmitry Sivachenko freebsd_committer freebsd_triage 2013-08-12 12:15:25 UTC
State Changed
From-To: open->closed

Patch committed, thanks.