From nobody@FreeBSD.org  Wed Oct  3 13:43:54 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 5F89F16A41A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  3 Oct 2007 13:43:54 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 6319D13C480
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  3 Oct 2007 13:43:54 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l93DhstV028635
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 3 Oct 2007 13:43:54 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l93DhsOE028634;
	Wed, 3 Oct 2007 13:43:54 GMT
	(envelope-from nobody)
Message-Id: <200710031343.l93DhsOE028634@www.freebsd.org>
Date: Wed, 3 Oct 2007 13:43:54 GMT
From: "Gonzalo A. Arana" <gonzalo.arana@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: bsnmpd/modules/snmp_bridge/bridge.def broken
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         116872
>Category:       kern
>Synopsis:       bsnmpd/modules/snmp_bridge/bridge.def broken
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    syrinx
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 03 13:50:02 GMT 2007
>Closed-Date:    Fri Oct 05 15:51:47 GMT 2007
>Last-Modified:  Fri Oct 05 15:51:47 GMT 2007
>Originator:     Gonzalo A. Arana
>Release:        RELENG_6
>Organization:
>Environment:
FreeBSD **** 6.2-STABLE FreeBSD 6.2-STABLE 
>Description:
After cvsup'ing "src-all", "make buildworld" fails to build bsnmpd/modules/snmp_bridge.
>How-To-Repeat:
cat <<EOF >stable-supfile

*default host=cvsup3.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=RELENG_6
*default delete use-rel-suffix
*default compress

src-all

EOF

cvsup -g -L2 stable-supfile
...

cd /usr/src
make buildworld
..
===> usr.sbin/bsnmpd/modules/snmp_bridge (depend)
cat /usr/src/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_tree.def | gensnmptree -e dot1dBridge newRoot topologyChange begemotBridgeNewRoot  begemotBridgeTopologyChange begemotBridgeBaseName > bridge_oid.h
line 31: '(' expected at begin of node
context: " TruthValue ENUM (
*** Error code 1

Stop in /usr/src/usr.sbin/bsnmpd/modules/snmp_bridge.
*** Error code 1

Stop in /usr/src/usr.sbin/bsnmpd/modules.
*** Error code 1

Stop in /usr/src/usr.sbin/bsnmpd.
*** Error code 1

Stop in /usr/src/usr.sbin.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

>Fix:


>Release-Note:
>Audit-Trail:

From: Ricardo Nabinger Sanchez <rnsanchez@wait4.org>
To: "Gonzalo A. Arana" <gonzalo.arana@gmail.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/116872: bsnmpd/modules/snmp_bridge/bridge.def broken
Date: Wed, 3 Oct 2007 11:19:30 -0300

 On Wed, 3 Oct 2007 13:43:54 GMT
 "Gonzalo A. Arana" <gonzalo.arana@gmail.com> wrote:
 
 >Fix:
 
 You must update gensnmptree prior to rebuilding.  Please see this
 message:
 
 http://lists.freebsd.org/pipermail/freebsd-stable/2007-August/036816.html
 
 Regards.
 
 -- 
 Ricardo Nabinger Sanchez                   rnsanchez@wait4.org
 Powered by FreeBSD
 
   "Left to themselves, things tend to go from bad to worse."
Responsible-Changed-From-To: freebsd-bugs->syrinx 
Responsible-Changed-By: bz 
Responsible-Changed-When: Wed Oct 3 15:44:21 UTC 2007 
Responsible-Changed-Why:  

Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=116872 

From: Ruslan Ermilov <ru@freebsd.org>
To: bz@freebsd.org
Cc: bug-followup@freebsd.org, syrinx@freebsd.org
Subject: Re: misc/116872: bsnmpd/modules/snmp_bridge/bridge.def broken
Date: Wed, 3 Oct 2007 21:49:37 +0400

 On Wed, Oct 03, 2007 at 03:44:51PM +0000, bz@freebsd.org wrote:
 > Synopsis: bsnmpd/modules/snmp_bridge/bridge.def broken
 > 
 > Responsible-Changed-From-To: freebsd-bugs->syrinx
 > Responsible-Changed-By: bz
 > Responsible-Changed-When: Wed Oct 3 15:44:21 UTC 2007
 > Responsible-Changed-Why: 
 > 
 > Over to maintainer.
 > 
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=116872
 > 
 gensnmptree(1) in RELENG_6 was last updated on March 7:
 
 : revision 1.1.1.7.2.3
 : date: 2007/03/07 16:31:47;  author: syrinx;  state: Exp;  lines: +649 -70
 : MFC:
 : src/contrib/bsnmp/gensnmptree/gensnmptree.1, Revision 1.1.1.7
 : src/contrib/bsnmp/gensnmptree/gensnmptree.c, Revision 1.1.1.11
 : src/contrib/bsnmp/gensnmpdef/gensnmpdef.1, Revision 1.1.1.5
 : src/contrib/bsnmp/gensnmpdef/gensnmpdef.c, Revision 1.1.1.3
 : 
 : Vendor patch: add support for the BITS construct and enumerations in
 : both gensnmpdef and gensnmptree. Add include and typedef directives to
 : gensnmptree.
 : 
 : Approved by:    bz (mentor)
 : OKed by:        harti
 
 On the same date, Makefile.inc1 was updated to bootstrap
 gensnmptree(1) until __FreeBSD_version will be bumped to
 602106:
 
 : .if ${BOOTSTRAPPING} < 602106
 : _gensnmptree=   usr.sbin/bsnmpd/gensnmptree
 : .endif
 
 602106 bump happened in this commit to sys/sys/param.h:
 
 : 1.244.2.23   (jhb      31-Mar-07): #define __FreeBSD_version 602106     /* Master, propagated to newvers */
 
 So there's no problem in the build system, and the problem
 is most likely the broken build system of this user.  This
 happens when e.g. /usr/include/osreldate.h is lying about
 __FreeBSD_version.
 
 
 Cheers,
 -- 
 Ruslan Ermilov
 ru@FreeBSD.org
 FreeBSD committer

From: "Gonzalo Arana" <gonzalo.arana@gmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: misc/116872: bsnmpd/modules/snmp_bridge/bridge.def broken
Date: Thu, 4 Oct 2007 09:58:05 -0300

 Hi,
 
 On 10/4/07, Shteryana Shopova <syrinx@freebsd.org> wrote:
 > Hi,
 >
 > First of all thanks for reporting the issue. Could you please look at
 
 On the contrary, thank you all for your time and patience.
 
 > Ruslan's suggestion and confirm that this is the case indeed. We've
 > had other people reporting the same issue -
 > http://lists.freebsd.org/pipermail/freebsd-stable/2007-August/036816.html
 > - there's a work arround suggested there - and IMO we don't need to
 > add an entry about the issue in UPDATING. If there are no objections I
 > would like to close the PR.
 
 Indeed, it worked, but now I get: "cannot open tc.def" (as
 bridge_tree.def has a "include <tc.def>" line).
 I am running a find /usr -name tc.def right now.
 
 > ...
 > So there's no problem in the build system, and the problem
 > is most likely the broken build system of this user.  This
 > happens when e.g. /usr/include/osreldate.h is lying about
 > __FreeBSD_version.
 
 My /usr/include/osreldate.h says:
 ...
 #undef __FreeBSD_version
 #define __FreeBSD_version 602111
 ...
 
 (btw, it has no $Id$ string).
 
 Again, thank you all for your valuable time,
 
 -- 
 Gonzalo A. Arana

From: "Gonzalo Arana" <gonzalo.arana@gmail.com>
To: bug-followup@FreeBSD.org, gonzalo.arana@gmail.com
Cc:  
Subject: Re: kern/116872: bsnmpd/modules/snmp_bridge/bridge.def broken
Date: Thu, 4 Oct 2007 12:12:28 -0300

 This bug could be closed.
 
 Thank you all for your time,
 
 -- 
 Gonzalo A. Arana
State-Changed-From-To: open->closed 
State-Changed-By: syrinx 
State-Changed-When: Fri Oct 5 15:47:00 UTC 2007 
State-Changed-Why:  

The problem was due to broken build system of the user. 
The reported of the PR confirmed the PR can be closed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=116872 
>Unformatted:
