Subject: Re: Error compiling pf.o
To: None <tech-kern@netbsd.org>
From: Rui Paulo <rpaulo@fnop.net>
List: tech-kern
Date: 02/27/2006 11:58:07
"Nicolas Saurbier" <Nicolas.Saurbier@concept04.de> writes:

> Hi,
>
> I get the following error when I try to 'make' a NetBSD 3.0 Kernel with PF support: 
>
> #   compile  SAURBIER_PF/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 -DIPSEC_DEBUG -DALTQ_PRIQ -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I../../../../dist/pf -I../../../../dist/ipf -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/SAURBIER_PF
> MAIN_MODULE_LEFT#
>
> MAIN_MODULE_LEFT# uname -a
> NetBSD MAIN_MODULE_LEFT 3.0 NetBSD 3.0 (XEN0_SAURBIER) #0: Wed Feb  8 20:40:02 CET 2006  root@:/usr/src/sys/arch/i386/compile/XEN0_SAURBIER i386
> MAIN_MODULE_LEFT#
>
> Any advice?

Did you enable ALTQ in the kernel config ?

-- 
  Rui Paulo			<rpaulo@{NetBSD{,-PT}.org,fnop.net}>