Re: HELP compiling with ALTQ

Manuel Bouyer <[email protected]>
Newsgroups gmane.os.netbsd.help
Message-ID <[email protected]>
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 <[email protected]>
     NetBSD: 26 ans d'experience feront toujours la difference
--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.