Subject: i386 -current ipf tries to include kernel header.
To: None <current-users@netbsd.org>
From: Todd Whitesel <toddpw@best.com>
List: current-users
Date: 12/11/1998 02:31:10
i386 -current, just supped today. make build fails in usr.sbin/ipf/ipf:

vader# cd /usr/src/usr.sbin/ipf/ipf
vader# make
cc -O2  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Werror   -c ipf.c
In file included from ipf.c:40:
/usr/include/netinet/ip_fil.h:21: opt_ipfilter_log.h: No such file or directory
*** Error code 1

Stop.

An exhaustive find of the source tree reveals that this header is in the
kernel compile directory. This patch appears to get things going again:

--- src/sys/netinet/ip_fil.h.orig	Fri Dec 11 02:11:30 1998
+++ src/sys/netinet/ip_fil.h	Fri Dec 11 02:11:43 1998
@@ -18,7 +18,9 @@
 # if defined(PFIL_HOOKS)
 #  include "opt_pfil_hooks.h"
 # endif
+#ifdef _KERNEL
 # include "opt_ipfilter_log.h"
+#endif
 #endif
 
 /*

# eof

Todd Whitesel
toddpw @ best.com