From owner-freebsd-ports Thu Sep 2 7: 1:12 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 5CE4F15647 for ; Thu, 2 Sep 1999 07:01:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id HAA27262; Thu, 2 Sep 1999 07:00:08 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from germanium.xtalwind.net (germanium.xtalwind.net [205.160.242.5]) by hub.freebsd.org (Postfix) with ESMTP id E291B155D1 for ; Thu, 2 Sep 1999 06:56:16 -0700 (PDT) (envelope-from jack@germanium.xtalwind.net) Received: (from jack@localhost) by germanium.xtalwind.net (8.9.3/8.9.3) id JAA27947; Thu, 2 Sep 1999 09:54:55 -0400 (EDT) Message-Id: <199909021354.JAA27947@germanium.xtalwind.net> Date: Thu, 2 Sep 1999 09:54:55 -0400 (EDT) From: jack@germanium.xtalwind.net Reply-To: jack@germanium.xtalwind.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/13540: p5-SNMP doesn't build with ucd-snmp 4.x Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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