Hello,

I got the following error when i try to compile a new kernel with IPF 4.1.11 on FreeBSD 5.4-RELEASE-p11 after applying RWLOCK patch.

My kernel configuration is

options IPFILTER
options IPFILTER_LOG
options IPFILTER_SCAN
options IPFILTER_SYNC

mlfk_ipl.c:

304 #ifdef IPFILTER_SYNC
305                 if ((events & (POLLIN | POLLRDNORM)) && ipfsync_canread(xmin))
306                         revents |= events & (POLLIN | POLLRDNORM);
307                 if ((events & (POLLOUT | POLLWRNORM)) && ipfsync_canwrite(xmin))
308                         revents |= events & (POLLOUT | POLLOUTNORM);
309 #endif


cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99  -nostdinc -I-  -I. -I../../.. -I../../../contrib/dev/acpica -I../../../contrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Werror  ../../../contrib/ipfilter/netinet/mlfk_ipl.c
../../../contrib/ipfilter/netinet/mlfk_ipl.c: In function `iplpoll':
../../../contrib/ipfilter/netinet/mlfk_ipl.c:305: warning: implicit declaration of function `ipfsync_canread'
../../../contrib/ipfilter/netinet/mlfk_ipl.c:305: warning: nested extern declaration of `ipfsync_canread'
../../../contrib/ipfilter/netinet/mlfk_ipl.c:307: warning: implicit declaration of function `ipfsync_canwrite'
../../../contrib/ipfilter/netinet/mlfk_ipl.c:307: warning: nested extern declaration of `ipfsync_canwrite'
../../../contrib/ipfilter/netinet/mlfk_ipl.c:308: error: `POLLOUTNORM' undeclared (first use in this function)
../../../contrib/ipfilter/netinet/mlfk_ipl.c:308: error: (Each undeclared identifier is reported only once
../../../contrib/ipfilter/netinet/mlfk_ipl.c:308: error: for each function it appears in.)
*** Error code 1


Reply via email to