I'm trying to build ipfilter 4.1.12 on a freebsd 6.1b4 box, but it doesn't seem to want to work. The error I get is as follows:

gcc -Wall -Wuninitialized -Wstrict-prototypes -O -I. -g -I../.. - D_BSD_SOURCE -DIPFILTER_LKM -DIPFILTER_LOG -DIPFILTER_LOOKUP - DIPFILTER_SCAN -Di386 -D__i386__ -DINET -DKERNEL -D_KERNEL -I/usr/ include -I/sys -I/sys/sys -I/sys/arch -DDEVFS -DKLD_MODULE -c ip_fil.c -o ip_fil.o
In file included from ip_fil.c:47:
/sys/sys/systm.h:150: warning: conflicting types for built-in function 'log'
In file included from /sys/sys/systm.h:242,
                 from ip_fil.c:47:
/sys/sys/libkern.h:100: warning: conflicting types for built-in function 'strdup'
In file included from /sys/vm/uma.h:41,
                 from /sys/sys/mbuf.h:40,
                 from ip_fil.c:54:
/sys/sys/malloc.h:105: warning: conflicting types for built-in function 'malloc'
In file included from /sys/sys/pcpu.h:46,
                 from /sys/sys/mutex.h:41,
                 from /sys/sys/eventhandler.h:34,
                 from /sys/net/if_var.h:78,
                 from /sys/net/if.h:360,
                 from ip_fil.c:60:
/usr/include/machine/pcpu.h:171:2: #error this file needs to be ported to your compiler
*** Error code 1

Stop in /usr/local/src/ip_fil4.1.12/BSD/FreeBSD-6.1-BETA4-i386.
*** Error code 1

Stop in /usr/local/src/ip_fil4.1.12.


Is there a patch or anything available to resolve this? If not, what needs to be done to get this to work?

Thanks
-Justin

Reply via email to