From owner-freebsd-questions@FreeBSD.ORG  Mon Nov 17 16:46:11 2008
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
Delivered-To: freebsd-questions@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E95AF1065670
	for <freebsd-questions@freebsd.org>;
	Mon, 17 Nov 2008 16:46:11 +0000 (UTC)
	(envelope-from freebsd-questions-local@be-well.ilk.org)
Received: from mail7.sea5.speakeasy.net (mail7.sea5.speakeasy.net
	[69.17.117.9]) by mx1.freebsd.org (Postfix) with ESMTP id C24AB8FC0C
	for <freebsd-questions@freebsd.org>;
	Mon, 17 Nov 2008 16:46:11 +0000 (UTC)
	(envelope-from freebsd-questions-local@be-well.ilk.org)
Received: (qmail 28370 invoked from network); 17 Nov 2008 16:46:07 -0000
Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org)
	([66.92.78.145])
	(envelope-sender <freebsd-questions-local@be-well.ilk.org>)
	by mail7.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP
	for <freebsd-questions@freebsd.org>; 17 Nov 2008 16:45:58 -0000
Received: by be-well.ilk.org (Postfix, from userid 1147)
	id ED31A5085A; Mon, 17 Nov 2008 11:45:56 -0500 (EST)
To: "R Dicaire" <kritek@gmail.com>
References: <e754e90811161012qfb6905bgaba377ac2a1b60d9@mail.gmail.com>
From: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
Date: Mon, 17 Nov 2008 11:45:56 -0500
In-Reply-To: <e754e90811161012qfb6905bgaba377ac2a1b60d9@mail.gmail.com> (R.
	Dicaire's message of "Sun\, 16 Nov 2008 13\:12\:14 -0500")
Message-ID: <44y6zi9u7v.fsf@be-well.ilk.org>
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Cc: freebsd-questions@freebsd.org
Subject: Re: net-snmp port upgrade build error
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: freebsd-questions@freebsd.org
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 17 Nov 2008 16:46:12 -0000

"R Dicaire" <kritek@gmail.com> writes:

> Hi folks,
> After updating ports tree with portsnap fetch update, then running
> pkg_version -l '<', pkg_version shows net-snmp is upgradable:
>
> pkg_version -l '<'
> net-snmp                            <
>
> pkg_replace net-snmp
> --->  Replacing 'net-snmp-5.3.2_3' with 'net-snmp-5.3.2.3'
> --->  Building '/usr/ports/net-mgmt/net-snmp53'
>
> You may use the following build options:
>
> WITH_INETADDRESS_HACK=yes       builds with the inetaddress hack
> WITH_TKMIB=yes          Install a graphical Perl/Tk/SNMP based mib browser
> WITHOUT_DUMMY_VALUES=yes        Provide 'placeholder' dummy values where
>                                 the necessary information is not available.
> WITHOUT_PERL=yes                Do not install the perl modules along
> with the rest
>                                 of the net-snmp toolkit.
> WITHOUT_IPV6=yes                Disable IPv6.
>
> DEFAULT_SNMP_VERSION="3"        Default version of SNMP to use.
> NET_SNMP_SYS_CONTACT="nobody@nowhere.invalid"
>                                 Default system contact.
> NET_SNMP_SYS_LOCATION="somewhere"
>                                 Default system location.
> NET_SNMP_LOGFILE="/var/log/snmpd.log"
>                                 Default log file location for snmpd.
> NET_SNMP_PERSISTENTDIR="/var/net-snmp"
>                                 Default directory for persistent data storage.
> NET_SNMP_MIB_MODULES="host disman/event-mib smux mibII/mta_sendmail
> mibII/tcpTable ucd-snmp/diskio"
>                                 Optional mib modules that can be built into the
>                                 agent
>
> ===>  net-snmp-5.3.2.3 has known vulnerabilities:
> => net-snmp -- DoS for SNMP agent via crafted GETBULK request.
>    Reference: <http://www.FreeBSD.org/ports/portaudit/daf045d7-b211-11dd-a987-000c29ca8953.html>
> => Please update your ports tree and try again.
> *** Error code 1
>
> Stop in /usr/ports/net-mgmt/net-snmp53.
> ** Command failed (exit code 1): make UPGRADE_PKG=net-snmp-5.3.2_3
> UPGRADE_PKG_VER=5.3.2_3
> ** Fix the problem and try again.
>
> --->  Processed 1: 0 done, 0 ignored, 0 skipped, 1 failed
>
> The port is trying to be upgraded with the same version as installed or?

The version in ports is 5.4.2.1, and that's the one you want to have.
I'm not sure why you didn't get it by using portsnap, but it's been in
the tree for a couple of days already.  Have you tried again?

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
		http://be-well.ilk.org/~lowell/