Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Mar 2008 01:12:23 GMT
From:      Christopher Cowart <ccowart@rescomp.berkeley.edu>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/121375: net-mgmt/net-snmp4 broken on freebsd 7 [with patch]
Message-ID:  <200803050112.m251CNB3065909@www.freebsd.org>
Resent-Message-ID: <200803050120.m251K1qM011782@freefall.freebsd.org>

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

>Number:         121375
>Category:       ports
>Synopsis:       net-mgmt/net-snmp4 broken on freebsd 7 [with patch]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 05 01:20:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Christopher Cowart
>Release:        7.0
>Organization:
RSSP-IT
>Environment:
FreeBSD dev-wifi-aux-2.rescomp.berkeley.edu 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Tue Mar  4 04:49:44 PST 2008     root@dev-wifi-aux-2.rescomp.berkeley.edu:/usr/obj/usr/src/sys/AUX_DEV  i386

>Description:
When installing the port, it refuses, because BROKEN=YES for 7.0-REL.


>How-To-Repeat:
make -C /usr/ports/net-mgmt/net-snmp4 install
>Fix:
Attached. Had to patch the sources to include the openssl/des.h header.

Patch attached with submission follows:

diff -Nrub net-snmp4/Makefile /tmp/ccowart/net-snmp4/Makefile
--- net-snmp4/Makefile	2007-07-27 04:59:28.000000000 -0700
+++ /tmp/ccowart/net-snmp4/Makefile	2008-03-04 17:04:12.000000000 -0800
@@ -7,7 +7,7 @@
 
 PORTNAME=	ucd-snmp
 PORTVERSION=	4.2.6
-PORTREVISION=	7
+PORTREVISION=	8
 CATEGORIES=	net-mgmt ipv6
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	net-snmp
@@ -101,10 +101,6 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} >= 700019
-BROKEN=		Does not compile on FreeBSD >= 7.0
-.endif
-
 .if ${OSVERSION} >= 600000
 CFLAGS+=	-Dfreebsd5
 .endif
diff -Nrub net-snmp4/files/patch-scapi.c /tmp/ccowart/net-snmp4/files/patch-scapi.c
--- net-snmp4/files/patch-scapi.c	1969-12-31 16:00:00.000000000 -0800
+++ /tmp/ccowart/net-snmp4/files/patch-scapi.c	2008-03-04 16:57:17.000000000 -0800
@@ -0,0 +1,10 @@
+--- ../../work/ucd-snmp-4.2.6/snmplib/scapi.c	2001-10-01 02:52:49.000000000 -0700
++++ snmplib/scapi.c	2008-03-04 16:41:52.000000000 -0800
+@@ -56,6 +56,7 @@
+ #include <openssl/hmac.h>
+ #include <openssl/evp.h>
+ #include <openssl/rand.h>
++#include <openssl/des.h>
+ #endif
+ 
+ #ifdef QUITFUN


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



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