From okor@salut.ru  Mon Dec 23 05:47:12 2002
Return-Path: <okor@salut.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D97B937B401
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 23 Dec 2002 05:47:12 -0800 (PST)
Received: from mx.salut.ru (mx.salut.ru [194.67.150.72])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 00CA443EDC
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 23 Dec 2002 05:47:11 -0800 (PST)
	(envelope-from okor@salut.ru)
Received: from bazamot.salut.ru (mx.salut.ru [194.67.150.72])
	by mx.salut.ru (ESMTP daemon) with ESMTP id gBNDkErB054826
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 23 Dec 2002 16:46:14 +0300 (MSK)
	(envelope-from okor@salut.ru)
Received: (from okor@localhost)
	by bazamot.salut.ru (8.12.6/8.12.6/Submit) id gBNDkDsD054825;
	Mon, 23 Dec 2002 16:46:13 +0300 (MSK)
	(envelope-from okor)
Message-Id: <200212231346.gBNDkDsD054825@bazamot.salut.ru>
Date: Mon, 23 Dec 2002 16:46:13 +0300 (MSK)
From: Oleg Koreshkov <okoreshkov@salut.ru>
Reply-To: Oleg Koreshkov <okoreshkov@salut.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ipfw2 kld not builded, even if IPFW2=true is set
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         46494
>Category:       kern
>Synopsis:       ipfw2 kld not builded, even if IPFW2=true is set
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    maxim
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 23 05:50:01 PST 2002
>Closed-Date:    Fri Feb 14 06:11:33 PST 2003
>Last-Modified:  Fri Feb 14 06:11:33 PST 2003
>Originator:     Oleg Koreshkov
>Release:        FreeBSD 4.7-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD xxxx.xxxxx.xx 4.7-RELEASE-p2 FreeBSD 4.7-RELEASE-p2 #8: Thu Nov 14 18:48:42 MSK 2002 root@xxxx.xxxxx.xx:/usr/obj/usr/src/sys/XXXXXX i386


>Description:

	ipfw2 kernel loadable module not builded,
	even if IPFW2=true is set in /etc/make.conf
>How-To-Repeat:

	echo IPFW2=true >> /etc/make.conf
	build kernel (and/or kernel modules)
	...
	patch below helps
>Fix:

--- sys/modules/ipfw/Makefile   1.11 1999/08/28
+++ sys/modules/ipfw/Makefile
@@ -2,9 +2,15 @@
 
 .PATH: ${.CURDIR}/../../netinet
 KMOD=  ipfw
+CFLAGS+= -DIPFIREWALL
+.if defined(IPFW2)
+SRCS=  ip_fw2.c
+CFLAGS+= -DIPFW2
+.else
 SRCS=  ip_fw.c
+.endif
+
 NOMAN=
-CFLAGS+= -DIPFIREWALL
 #
 #If you want it verbose
 #CFLAGS+= -DIPFIREWALL_VERBOSE


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: maxim 
State-Changed-When: Fri Feb 14 06:09:28 PST 2003 
State-Changed-Why:  
Fixed in rev. 1.11.2.1 src/sys/modules/ipfw/Makefile in -STABLE. Thanks! 


Responsible-Changed-From-To: freebsd-bugs->maxim 
Responsible-Changed-By: maxim 
Responsible-Changed-When: Fri Feb 14 06:09:28 PST 2003 
Responsible-Changed-Why:  
Catch feedbacks. 

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