From nobody@FreeBSD.org  Sat Mar 31 16:52:14 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id A75EB16A403
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 31 Mar 2007 16:52:14 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 9A0EB13C45E
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 31 Mar 2007 16:52:14 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l2VGqERT024081
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 31 Mar 2007 16:52:14 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l2VGlC80023065;
	Sat, 31 Mar 2007 16:47:12 GMT
	(envelope-from nobody)
Message-Id: <200703311647.l2VGlC80023065@www.freebsd.org>
Date: Sat, 31 Mar 2007 16:47:12 GMT
From: Peter Sanchez<pjs@petersanchez.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ipfw compiliation problem (buildworld)
X-Send-Pr-Version: www-3.0

>Number:         111063
>Category:       i386
>Synopsis:       ipfw compiliation problem (buildworld)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-i386
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 31 17:00:10 GMT 2007
>Closed-Date:    Mon Apr 16 20:58:11 GMT 2007
>Last-Modified:  Mon Apr 16 20:58:11 GMT 2007
>Originator:     Peter Sanchez
>Release:        6.2-Release
>Organization:
>Environment:
FreeBSD foto.ahcabron.com 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
This is a new server being setup. The OS was initially installed in January but the machine is being taking live now. I used cvsup9.freebsd.org to cvsup to the latest -STABLE on 3/30/2007 about 9pm PST. During the buildworld process I had compialation errors with /usr/src/sbin/ipfw/ipfw2.c at line 3976. The line shows:

action->len = F_INSN_SIZE(ipfw_insn_pipe);

(same line is also on line 3981)

The error is that ipfw_insn_pipe was undeclared. Sorry, I didn't save the actual make error output, but it was just that the variable was not declared previously. I saw no other instance of ipfw_insn_pipe in the source for ipfw, so I changed the 2 lines to the following:

action->len = F_INSN_SIZE(ipfw_insn);

ipfw_insn appears to be a valid struct variable and is used in other places in the ipfw source. Once I made this change ipfw compiled normally and buildworld was successful. Not sure if this is correct or not, but I don't use ipfw anyways, so I'm happy. Just wanted to report it.
>How-To-Repeat:
Simply cvsup to latest and buildworld
>Fix:
- action->len = F_INSN_SIZE(ipfw_insn_pipe);
+ action->len = F_INSN_SIZE(ipfw_insn);

in sbin/ipfw/ipfw2.c
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Mon Apr 16 20:57:46 UTC 2007 
State-Changed-Why:  
I'm pretty sure it was a transient error, such as 
incomplete CVSup update. 

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