Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Sep 1999 09:54:55 -0400 (EDT)
From:      jack@germanium.xtalwind.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/13540: p5-SNMP doesn't build with ucd-snmp 4.x
Message-ID:  <199909021354.JAA27947@germanium.xtalwind.net>

next in thread | raw e-mail | index | archive | help

>Number:         13540
>Category:       ports
>Synopsis:       p5-SNMP doesn't build with ucd-snmp 4.x
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep  2 07:00:07 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
>Environment:

	

>Description:

	Changes in header files in ucd-snmp 4.x prevent p5-SNMP from compiling

>How-To-Repeat:

	

>Fix:
	
diff -ruN p5-SNMP/Makefile p5-SNMP.fixed/Makefile
--- p5-SNMP/Makefile	Fri Aug 27 16:18:43 1999
+++ p5-SNMP.fixed/Makefile	Sat Aug 28 02:44:44 1999
@@ -14,9 +14,7 @@
 
 MAINTAINER=	jfitz@FreeBSD.ORG
 
-LIB_DEPENDS= 	snmp.3:${PORTSDIR}/net/ucd-snmp
-
-BROKEN=		'incompatible with the latest version of ucd-snmp'
+LIB_DEPENDS= 	snmp.4:${PORTSDIR}/net/ucd-snmp
 
 USE_PERL5=	YES
 
diff -ruN p5-SNMP/patches/patch-ab p5-SNMP.fixed/patches/patch-ab
--- p5-SNMP/patches/patch-ab	Wed Dec 31 19:00:00 1969
+++ p5-SNMP.fixed/patches/patch-ab	Sat Aug 28 01:12:46 1999
@@ -0,0 +1,29 @@
+--- SNMP.xs.orig	Mon Jun  7 18:02:57 1999
++++ SNMP.xs	Sat Aug 28 01:06:54 1999
+@@ -1778,6 +1778,7 @@
+            struct variable_list *vars;
+            struct variable_list *last_vars;
+            struct tree *tp;
++            struct sockaddr_in *pduIp;
+ 	   oid *oid_arr;
+ 	   int oid_arr_len = MAX_OID_LEN;
+            SV *tmp_sv;
+@@ -1861,14 +1862,15 @@
+                                    &pdu->enterprise_length) != SUCCESS) {
+ 		  if (verbose) warn("invalid enterprise id: %s", enterprise);
+ 	      }
++               pduIp = (struct sockaddr_in *)&(pdu->agent_addr);
+               if (agent && strlen(agent)) {
+-                 pdu->agent_addr.sin_addr.s_addr = __parse_address(agent);
+-                 if (pdu->agent_addr.sin_addr.s_addr == -1 && verbose) {
++                 pduIp->sin_addr.s_addr = __parse_address(agent);
++                 if (pduIp->sin_addr.s_addr == -1 && verbose) {
+                     warn("invalid agent address: %s", agent);
+                     goto err;
+                  }
+               } else {
+-                 pdu->agent_addr.sin_addr.s_addr = get_myaddr();
++                 pduIp->sin_addr.s_addr = get_myaddr();
+               }
+               pdu->trap_type = generic;
+               pdu->specific_type = specific;


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909021354.JAA27947>