Subject: kern/33194: Packet Filter support breaks kernel compilation
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <thetemplar@free.fr>
List: netbsd-bugs
Date: 04/05/2006 03:10:00
>Number:         33194
>Category:       kern
>Synopsis:       Packet Filter support breaks kernel compilation
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 05 03:10:00 +0000 2006
>Originator:     Eddahbi Karim
>Release:        NetBSD 3.0
>Organization:
>Environment:
System: NetBSD PouipPouip 3.0 NetBSD 3.0 (GENERIC) #0: Mon Dec 19 01:04:02 UTC 2005 builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/i386/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386

>Description:
I've activated the support for Packet Filter in my kernel configuration file (see below) and it breaks the kernel compilation, returning the following error :

#   compile  MOIMOI/pf.o
cc -ffreestanding -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -fno-zero-initialized-in-bss -Di386 -I. -I../../../../arch -I../../../.. -nostdinc -DLKM -DEXT2FS_SYSTEM_FLAGS -DFRENCH_KBD -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I../../../../dist/pf -c ../../../../dist/pf/net/pf.c
../../../../dist/pf/net/pf.c: In function `pf_send_tcp':
../../../../dist/pf/net/pf.c:1355: error: dereferencing pointer to incomplete type
../../../../dist/pf/net/pf.c:1358: error: dereferencing pointer to incomplete type
../../../../dist/pf/net/pf.c:1360: error: dereferencing pointer to incomplete type
../../../../dist/pf/net/pf.c:1361: error: dereferencing pointer to incomplete type
../../../../dist/pf/net/pf.c: In function `pf_send_icmp':
../../../../dist/pf/net/pf.c:1505: error: dereferencing pointer to incomplete type
../../../../dist/pf/net/pf.c:1508: error: dereferencing pointer to incomplete type
../../../../dist/pf/net/pf.c:1510: error: dereferencing pointer to incomplete type
../../../../dist/pf/net/pf.c:1511: error: dereferencing pointer to incomplete type
../../../../dist/pf/net/pf.c: In function `pf_test':
../../../../dist/pf/net/pf.c:5722: error: dereferencing pointer to incomplete type
../../../../dist/pf/net/pf.c:5726: error: dereferencing pointer to incomplete type
../../../../dist/pf/net/pf.c:5728: error: dereferencing pointer to incomplete type
../../../../dist/pf/net/pf.c:5730: error: dereferencing pointer to incomplete type
../../../../dist/pf/net/pf.c:5731: error: dereferencing pointer to incomplete type
../../../../dist/pf/net/pf.c: In function `pf_test6':
../../../../dist/pf/net/pf.c:6048: error: dereferencing pointer to incomplete type
../../../../dist/pf/net/pf.c:6052: error: dereferencing pointer to incomplete type
../../../../dist/pf/net/pf.c:6054: error: dereferencing pointer to incomplete type
../../../../dist/pf/net/pf.c:6056: error: dereferencing pointer to incomplete type
../../../../dist/pf/net/pf.c:6057: error: dereferencing pointer to incomplete type
*** Error code 1

Stop.
make: stopped in /usr/src/sys/arch/i386/compile/MOIMOI


>How-To-Repeat:
Enabling Packet Filter support in the configuration file with the latest kernel of NetBSD 3.0.

You can download the configuration file from this URL :
        http://thetemplar.free.fr/MOIMOI

>Fix:
 The only way I know, at the moment, is to desactivate the support of Packet Filter in the latest NetBSD 3.0 kernel if I use the configuration given before.