From owner-freebsd-questions@FreeBSD.ORG Wed Apr 29 19:35:09 2009 Return-Path: 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 1B7351065686 for ; Wed, 29 Apr 2009 19:35:09 +0000 (UTC) (envelope-from freebsd-questions@pp.dyndns.biz) Received: from proxy2.bredband.net (proxy2.bredband.net [195.54.101.72]) by mx1.freebsd.org (Postfix) with ESMTP id C4EEB8FC19 for ; Wed, 29 Apr 2009 19:35:08 +0000 (UTC) (envelope-from freebsd-questions@pp.dyndns.biz) Received: from ironport.bredband.com (195.54.101.120) by proxy2.bredband.net (7.3.140.3) id 49F59CBD000F4C00 for freebsd-questions@freebsd.org; Wed, 29 Apr 2009 21:35:07 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkQGAIdI+ElV4jp1PGdsb2JhbACBUItsiSIBAQEBuWuDdQU X-IronPort-AV: E=Sophos;i="4.40,267,1238968800"; d="scan'208";a="510928258" Received: from c-753ae255.107-1-64736c10.cust.bredbandsbolaget.se (HELO gatekeeper.pp.dyndns.biz) ([85.226.58.117]) by ironport1.bredband.com with ESMTP; 29 Apr 2009 21:35:06 +0200 Received: from [192.168.69.67] (phobos [192.168.69.67]) by gatekeeper.pp.dyndns.biz (8.14.2/8.14.2) with ESMTP id n3TJZ5I5075233 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 29 Apr 2009 21:35:06 +0200 (CEST) (envelope-from freebsd-questions@pp.dyndns.biz) Message-ID: <49F8ABE9.4060505@pp.dyndns.biz> Date: Wed, 29 Apr 2009 21:35:05 +0200 From: =?ISO-8859-1?Q?Morgan_Wesstr=F6m?= User-Agent: Thunderbird 2.0.0.21 (X11/20090412) MIME-Version: 1.0 CC: Free BSD Questions list References: <26ddd1750904270928g106c8d7dg72b6b3a09ffc0afa@mail.gmail.com> <49F5F459.9000403@ibctech.ca> <49F5FBBF.6060207@comcast.net> In-Reply-To: <49F5FBBF.6060207@comcast.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: bsnmpd vs net-snmp X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2009 19:35:09 -0000 > net-snmp has no problems providing 64-bit counters (interface and > disk). You must build it with -DWITH_MFD_REWRITES (passes > --with-mfd-rewrites to ./configure). I do not know why this is not the > default. It works just fine. I also have a PR open to make this define > a ports 'make config' option (therefore a persistent setting), but the > maintainer has ignored this. > This post caught my attention because I've had a 64 bit -> 32 bit truncation error in my SNMP logs since I installed net-snmp on my AMD64 a year ago. I was unable to figure out how to add -DWITH_MFD_REWRITES to make so I ended up editing the Makefile and added --enable-mfd-rewrites (the compile told me --with-mfd-rewrites had been replace by --enable-mfd-rewrites). My error messages now seems to have disappeared so I'm extremely happy. I later found the following info in NEWS: Solaris, FreeBSD, OpenBSD: - Experimental support for 64bit interface counters (ifXTable). Enable via '--with-mib-modules=if-mib --enable-mfd-rewrites'. So I have two questions: 1) Is --with-mib-modules=if-mib already covered in the Makefile? I can see the parameter but it refers to a variable I don't know the contents of. The variable seems to refer to the build option NET_SNMP_MIB_MODULES which is mentioned at the beginning of the compile process but I don't know how to use it or its initial value. 2) Is there anyway to enable these two options during make without editing the Makefile? Regards Morgan