Subject: Re: HELP compiling with ALTQ
To: Pimin <pimin@rockhead.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-help
Date: 11/11/2006 23:53:11
On Sat, Nov 11, 2006 at 02:37:16PM -0800, Pimin wrote:
> NetBSD 3.0.1
> 
> I get these erros when I select "option ALTQ":
> 
> 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 -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:1354: error: invalid application of `sizeof' to an incomplete type
> ../../../../dist/pf/net/pf.c:1356: error: dereferencing pointer to incomplete type
> ../../../../dist/pf/net/pf.c:1359: error: dereferencing pointer to incomplete type
> ../../../../dist/pf/net/pf.c:1361: error: dereferencing pointer to incomplete type
> ../../../../dist/pf/net/pf.c:1362: error: dereferencing pointer to incomplete type
> ../../../../dist/pf/net/pf.c:1354: warning: unused variable `jj'
> ../../../../dist/pf/net/pf.c: In function `pf_send_icmp':
> ../../../../dist/pf/net/pf.c:1506: error: dereferencing pointer to incomplete type
> ../../../../dist/pf/net/pf.c:1509: error: dereferencing pointer to incomplete type
> ../../../../dist/pf/net/pf.c:1511: error: dereferencing pointer to incomplete type
> ../../../../dist/pf/net/pf.c:1512: error: dereferencing pointer to incomplete type
> ../../../../dist/pf/net/pf.c: In function `pf_test':
> ../../../../dist/pf/net/pf.c:5723: error: dereferencing pointer to incomplete type
> ../../../../dist/pf/net/pf.c:5727: error: dereferencing pointer to incomplete type
> ../../../../dist/pf/net/pf.c:5729: error: dereferencing pointer to incomplete type
> ../../../../dist/pf/net/pf.c:5731: error: dereferencing pointer to incomplete type
> ../../../../dist/pf/net/pf.c:5732: error: dereferencing pointer to incomplete type
> ../../../../dist/pf/net/pf.c: In function `pf_test6':
> ../../../../dist/pf/net/pf.c:6049: error: dereferencing pointer to incomplete type
> ../../../../dist/pf/net/pf.c:6053: error: dereferencing pointer to incomplete type
> ../../../../dist/pf/net/pf.c:6055: error: dereferencing pointer to incomplete type
> ../../../../dist/pf/net/pf.c:6057: error: dereferencing pointer to incomplete type
> ../../../../dist/pf/net/pf.c:6058: error: dereferencing pointer to incomplete type
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/src/sys/arch/i386/compile/BIGBOX
> 
> Do I need to select more options?

No, you just can't have ALTQ and PF together on netbsd-3-0 (maybe this has
been fixed in netbsd-3, I can't remember).

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--