From wei@algol.adsl.nerim.net  Tue Nov 26 14:20:55 2002
Return-Path: <wei@algol.adsl.nerim.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id EEC3A37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 26 Nov 2002 14:20:55 -0800 (PST)
Received: from algol.adsl.nerim.net (algol.adsl.nerim.net [62.212.97.189])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D3B7C43EB2
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 26 Nov 2002 14:20:54 -0800 (PST)
	(envelope-from wei@algol.adsl.nerim.net)
Received: from algol.adsl.nerim.net (localhost [127.0.0.1])
	by algol.adsl.nerim.net (8.12.6/8.12.6) with ESMTP id gAR0Esop001427;
	Wed, 27 Nov 2002 00:14:55 GMT
	(envelope-from wei@algol.adsl.nerim.net)
Received: (from wei@localhost)
	by algol.adsl.nerim.net (8.12.6/8.12.6/Submit) id gAR0EsZq001426;
	Wed, 27 Nov 2002 00:14:54 GMT
Message-Id: <200211270014.gAR0EsZq001426@algol.adsl.nerim.net>
Date: Wed, 27 Nov 2002 00:14:54 GMT
From: Harald Weis <wei@algol.adsl.nerim.net>
Reply-To: Harald Weis <hawei@nerim.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Harald Weis <hawei@nerim.net>,
	Darren Reed <avalon@coombs.anu.edu.au>
Subject: Kernel does not compile with IPFILTER options
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         45772
>Category:       misc
>Synopsis:       Kernel does not compile with IPFILTER options
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 26 14:30:01 PST 2002
>Closed-Date:    Sat Jul 12 20:42:32 PDT 2003
>Last-Modified:  Sat Jul 12 20:42:32 PDT 2003
>Originator:     Harald Weis
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD algol.adsl.nerim.net 4.7-STABLE FreeBSD 4.7-STABLE #0: Tue Nov 5 20:52:37 CET 2002 wei@algol.adsl.nerim.net:/usr/local/src/sys/compile/ALGOL i386


	
>Description:
	
	Having upgraded from 4.5 to 4.7 (use of the 4.7-mini.iso)
	everything okay except for the kernel which does not compile
	with the IPFILTER options:
cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -f
format-extensions -ansi  -nostdinc -I- -I. -I../.. -I/usr/include -I../../contrib/ipfilter  -D_KERNEL -include opt_global.h -elf  -mpreferr
ed-stack-boundary=2  ../../contrib/ipfilter/netinet/fil.c
../../contrib/ipfilter/netinet/fil.c: In function `fr_makefrip':
../../contrib/ipfilter/netinet/fil.c:267: structure has no member named `fin_misc'
../../contrib/ipfilter/netinet/fil.c: In function `fr_check':
../../contrib/ipfilter/netinet/fil.c:1082: too few arguments to function `ipfr_newfrag'
../../contrib/ipfilter/netinet/fil.c:1092: too many arguments to function `fr_addstate'
*** Error code 1

Stop in /usr/local/src/sys/compile/ALGOL.
algol {wei} /<1>compile/ALGOL
>How-To-Repeat:
	
>Fix:

	
	Fixed for me thanks to Darren Reed who suspected that the IPFilter header files in
	/usr/include/netinet did not match those in /sys/contrib/ipfilter/netinet.

	Is this not an error in the upgrade procedure ?
>Release-Note:
>Audit-Trail:

From: "Sergey N. Voronkov" <serg@tmn.ru>
To: Harald Weis <hawei@nerim.net>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: misc/45772: Kernel does not compile with IPFILTER options
Date: Wed, 27 Nov 2002 09:38:57 +0500

 > >Description:
 > 	
 > 	Having upgraded from 4.5 to 4.7 (use of the 4.7-mini.iso)
 > 	everything okay except for the kernel which does not compile
 > 	with the IPFILTER options:
 > cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -f
 > format-extensions -ansi  -nostdinc -I- -I. -I../.. -I/usr/include -I../../contrib/ipfilter  -D_KERNEL -include opt_global.h -elf  -mpreferr
 > ed-stack-boundary=2  ../../contrib/ipfilter/netinet/fil.c
 > ../../contrib/ipfilter/netinet/fil.c: In function `fr_makefrip':
 > ../../contrib/ipfilter/netinet/fil.c:267: structure has no member named `fin_misc'
 > ../../contrib/ipfilter/netinet/fil.c: In function `fr_check':
 > ../../contrib/ipfilter/netinet/fil.c:1082: too few arguments to function `ipfr_newfrag'
 > ../../contrib/ipfilter/netinet/fil.c:1092: too many arguments to function `fr_addstate'
 > *** Error code 1
 > 
 > Stop in /usr/local/src/sys/compile/ALGOL.
 > algol {wei} /<1>compile/ALGOL
 > >How-To-Repeat:
 > 	
 > >Fix:
 > 
 > 	
 > 	Fixed for me thanks to Darren Reed who suspected that the IPFilter header files in
 > 	/usr/include/netinet did not match those in /sys/contrib/ipfilter/netinet.
 > 
 > 	Is this not an error in the upgrade procedure ?
 
 No. After releasing 4.6 IPFilter headers was removed from /usr/include.
 
 You can check your instalation after source upgrade for stale files:
 
 http://docs.freebsd.org/cgi/getmsg.cgi?fetch=378720+0+archive/2001/freebsd-stable/20010610.freebsd-stable
 
 Serg N. Voronkov,
 Sibitex JSC
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Sat Jul 12 20:42:18 PDT 2003 
State-Changed-Why:  
Submitter reportsw the problem was due to stale header files. 

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