IP Filter on FreeBSD 5.2.1

Wayne Pascoe freebsd-feb at penguinpowered.org
Tue Sep 7 10:54:50 PDT 2004


Hi all,

I'm trying to get ipfilter working with FreeBSD 5.2.1. I did a cvsup 
using the tag RELENG_5_2 night before last.

Today I did make world (which succeeded) and then tried to build my
kernel.

Before doing the make kernel, I edited my kernel configuration file and
added the following lines:

# IPFilter stuf
options IPFILTER
options IPFILTER_LOG

I then did 
make kernel KERNCONF=MYKERNEL

After a while, that dies with the error at the bottom of this message.

Can anyone advise me what is going wrong and how I can fix this ? 

Thanks in advance,

---- ERROR MESSAGE - LINES LONGER THAN 72 CHARS FOLLOW ----
cc -c -O -pipe -march=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99  -nostdinc -I-  -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 -fno-strict-aliasing  -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror  /usr/src/sys/contrib/ipfilter/netinet/ip_fil.c
/usr/src/sys/contrib/ipfilter/netinet/ip_fil.c: In function `fr_check_wrapper':
/usr/src/sys/contrib/ipfilter/netinet/ip_fil.c:319: error: `PFIL_OUT' undeclared (first use in this function)
/usr/src/sys/contrib/ipfilter/netinet/ip_fil.c:319: error: (Each undeclared identifier is reported only once
/usr/src/sys/contrib/ipfilter/netinet/ip_fil.c:319: error: for each function it appears in.)
/usr/src/sys/contrib/ipfilter/netinet/ip_fil.c: In function `fr_check_wrapper6':
/usr/src/sys/contrib/ipfilter/netinet/ip_fil.c:329: error: `PFIL_OUT' undeclared (first use in this function)
/usr/src/sys/contrib/ipfilter/netinet/ip_fil.c: In function `iplattach':
/usr/src/sys/contrib/ipfilter/netinet/ip_fil.c:376: warning: unused variable `ph_inet'
/usr/src/sys/contrib/ipfilter/netinet/ip_fil.c:378: warning: unused variable `ph_inet6'
/usr/src/sys/contrib/ipfilter/netinet/ip_fil.c: At top level:
/usr/src/sys/contrib/ipfilter/netinet/ip_fil.c:317: warning: `fr_check_wrapper' defined but not used
/usr/src/sys/contrib/ipfilter/netinet/ip_fil.c:327: warning: `fr_check_wrapper6' defined but not used
*** Error code 1

Stop in /usr/obj/usr/src/sys/WTP.
*** Error code 1

---- END OF ERROR MESSAGE ----


-- 
Wayne Pascoe    (gpg --keyserver www.co.uk.pgp.net --recv-keys 79A7C870)
Mary had a crypto key, she kept it in
escrow, and everything that Mary said,
the Feds were sure to know.


More information about the freebsd-questions mailing list