From owner-freebsd-ports@FreeBSD.ORG Sun Oct 19 19:10:18 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C890F106566B for ; Sun, 19 Oct 2008 19:10:18 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from plato.miralink.com (mail.miralink.com [70.103.185.20]) by mx1.freebsd.org (Postfix) with ESMTP id 9D56C8FC14 for ; Sun, 19 Oct 2008 19:10:18 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id 9682B1A911F for ; Sun, 19 Oct 2008 12:00:17 -0700 (PDT) X-Virus-Scanned: amavisd-new at X-Spam-Flag: NO X-Spam-Score: -4.399 X-Spam-Level: X-Spam-Status: No, score=-4.399 tagged_above=-10 required=6.6 tests=[ALL_TRUSTED=-1.8, BAYES_00=-2.599] Received: from plato.miralink.com ([127.0.0.1]) by localhost (plato.miralink.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DcP8j4Wtlrb6 for ; Sun, 19 Oct 2008 12:00:17 -0700 (PDT) Received: from [10.47.1.6] (vpn.office.miralink.com [10.0.0.5]) by plato.miralink.com (Postfix) with ESMTP id F340E1A9100 for ; Sun, 19 Oct 2008 12:00:16 -0700 (PDT) Message-ID: <48FB8618.4030207@miralink.com> Date: Sun, 19 Oct 2008 12:10:16 -0700 From: Sean Bruno User-Agent: Thunderbird 2.0.0.16 (X11/20080723) MIME-Version: 1.0 To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: net-snmp-5.4.1.2_2 mib2c errors X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Oct 2008 19:10:18 -0000 It looks like net-snmp's mib2c tools need to use "gindent" instead of the installed version of indent. I've generated a small patch for net-snmp that seems to resolve the issue inside of mib2c and clears the error. Also "gindent" would have to be added as a dependency of net-snmp. Here is the output of mib2c-update when using "indent" instead of "gindent" from ports. [sbruno@desdemona ~/work/src/ankeny/src/miralink/sbin/snmp]$ mib2c-update Starting regneration of ml using mib2c.table_data.conf at 2008-10-19_12.01 Creating patch for your custom code checking files in /home/sbruno/work/src/ankeny/src/miralink/sbin/snmp/.orig/ (/home/sbruno/work/src/ankeny/src/miralink/sbin/snmp/.orig) /home/sbruno/work/src/ankeny/src/miralink/sbin/snmp no custom code changes found. mib2c -c mib2c.table_data.conf ml writing to ml.h writing to ml.c running indent on ml.h indent: Command line: unknown parameter "-orig" running indent on ml.c indent: Command line: unknown parameter "-orig" /home/sbruno/work/src/ankeny/src/miralink/sbin/snmp Checking for updates to generated code checking files in /home/sbruno/work/src/ankeny/src/miralink/sbin/snmp/.orig/ (/home/sbruno/work/src/ankeny/src/miralink/sbin/snmp/.orig) /home/sbruno/work/src/ankeny/src/miralink/sbin/snmp Generated code has not changed. Here is a patch that resolves the build issue: [sbruno@desdemona /usr/local/bin]$ diff -u mib2c.orig mib2c --- mib2c.orig 2008-10-19 12:08:13.000000000 -0700 +++ mib2c 2008-10-19 12:07:10.000000000 -0700 @@ -235,7 +235,7 @@ next if ($i eq "-"); next if (!($i =~ /\.[ch]$/)); print STDERR "running indent on $i\n" if (!$quiet); - system("indent -orig -nbc -bap -nut -nfca -T size_t -T netsnmp_mib_handler -T netsnmp_handler_registration -T netsnmp_delegated_cache -T netsnmp_mib_handler_methods -T netsnmp_old_api_info -T netsnmp_old_api_cache -T netsnmp_set_info -T netsnmp_request_info -T netsnmp_set_info -T netsnmp_tree_cache -T netsnmp_agent_request_info -T netsnmp_cachemap -T netsnmp_agent_session -T netsnmp_array_group_item -T netsnmp_array_group -T netsnmp_table_array_callbacks -T netsnmp_table_row -T netsnmp_table_data -T netsnmp_table_data_set_storage -T netsnmp_table_data_set -T netsnmp_column_info -T netsnmp_table_registration_info -T netsnmp_table_request_info -T netsnmp_iterator_info -T netsnmp_data_list -T netsnmp_oid_array_header -T netsnmp_oid_array_header_wrapper -T netsnmp_oid_stash_node -T netsnmp_pdu -T netsnmp_request_list -T netsnmp_callback_pass -T netsnmp_callback_info -T netsnmp_transport -T netsnmp_transport_list -T netsnmp_tdomain $i"); + system("gindent -orig -nbc -bap -nut -nfca -T size_t -T netsnmp_mib_handler -T netsnmp_handler_registration -T netsnmp_delegated_cache -T netsnmp_mib_handler_methods -T netsnmp_old_api_info -T netsnmp_old_api_cache -T netsnmp_set_info -T netsnmp_request_info -T netsnmp_set_info -T netsnmp_tree_cache -T netsnmp_agent_request_info -T netsnmp_cachemap -T netsnmp_agent_session -T netsnmp_array_group_item -T netsnmp_array_group -T netsnmp_table_array_callbacks -T netsnmp_table_row -T netsnmp_table_data -T netsnmp_table_data_set_storage -T netsnmp_table_data_set -T netsnmp_column_info -T netsnmp_table_registration_info -T netsnmp_table_request_info -T netsnmp_iterator_info -T netsnmp_data_list -T netsnmp_oid_array_header -T netsnmp_oid_array_header_wrapper -T netsnmp_oid_stash_node -T netsnmp_pdu -T netsnmp_request_list -T netsnmp_callback_pass -T netsnmp_callback_info -T netsnmp_transport -T netsnmp_transport_list -T netsnmp_tdomain $i"); } } -- Sean Bruno MiraLink Corporation 6015 NE 80th Ave, Ste 100 Portland, OR 97218 Cell 503-358-6832 Phone 503-621-5143 Fax 503-621-5199 MSN: sbruno@miralink.com Google: seanwbruno@gmail.com