Subject: Re: pf fails with ALTQ
To: None <current-users@netbsd.org>
From: Hernani Marques Madeira <hernani@vecirex.net>
List: current-users
Date: 07/15/2005 23:41:47
On Fri, Jul 15, 2005 at 11:42:20PM +0200, Marcin Jessa wrote:

> For some time compiling pf with ALTQ enabled on CURRENT gives following e=
rrors (pf compiles fine without ALTQ) :
>=20
> #   compile  WIFIBSD_RUN/pf.o
> /usr/src/obj/tooldir.NetBSD-3.99.6-i386/bin/i386--netbsdelf-gcc -ffreesta=
nding -Os -mcpu=3Di486 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpo=
inter-arith -Wmissing-prototypes -Wstrict-prototypes -Wreturn-type -Wswitch=
 -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare -Wno-shadow -fno-ze=
ro-initialized-in-bss -Di386 -I. -I/usr/src/sys/arch -I/usr/src/sys -nostdi=
nc -DTIMER_FREQ=3D1189200 -DDUMMY_NOPS -DMAXUSERS=3D32 -D_KERNEL -D_KERNEL_=
OPT -I/usr/src/sys/dist/pf -c /usr/src/sys/dist/pf/net/pf.c
> /usr/src/sys/dist/pf/net/pf.c: In function `pf_send_tcp':
> /usr/src/sys/dist/pf/net/pf.c:1523: error: dereferencing pointer to incom=
plete type
> /usr/src/sys/dist/pf/net/pf.c:1526: error: dereferencing pointer to incom=
plete type
> /usr/src/sys/dist/pf/net/pf.c:1528: error: dereferencing pointer to incom=
plete type
> /usr/src/sys/dist/pf/net/pf.c:1529: error: dereferencing pointer to incom=
plete type
> /usr/src/sys/dist/pf/net/pf.c: In function `pf_send_icmp':
> /usr/src/sys/dist/pf/net/pf.c:1673: error: dereferencing pointer to incom=
plete type
> /usr/src/sys/dist/pf/net/pf.c:1676: error: dereferencing pointer to incom=
plete type
> /usr/src/sys/dist/pf/net/pf.c:1678: error: dereferencing pointer to incom=
plete type
> /usr/src/sys/dist/pf/net/pf.c:1679: error: dereferencing pointer to incom=
plete type
> /usr/src/sys/dist/pf/net/pf.c: In function `pf_test':
> /usr/src/sys/dist/pf/net/pf.c:6063: error: dereferencing pointer to incom=
plete type
> /usr/src/sys/dist/pf/net/pf.c:6067: error: dereferencing pointer to incom=
plete type
> /usr/src/sys/dist/pf/net/pf.c:6069: error: dereferencing pointer to incom=
plete type
> /usr/src/sys/dist/pf/net/pf.c:6071: error: dereferencing pointer to incom=
plete type
> /usr/src/sys/dist/pf/net/pf.c:6072: error: dereferencing pointer to incom=
plete type
> /usr/src/sys/dist/pf/net/pf.c: In function `pf_test6':
> /usr/src/sys/dist/pf/net/pf.c:6404: error: dereferencing pointer to incom=
plete type
> /usr/src/sys/dist/pf/net/pf.c:6408: error: dereferencing pointer to incom=
plete type
> /usr/src/sys/dist/pf/net/pf.c:6410: error: dereferencing pointer to incom=
plete type
> /usr/src/sys/dist/pf/net/pf.c:6412: error: dereferencing pointer to incom=
plete type
> /usr/src/sys/dist/pf/net/pf.c:6413: error: dereferencing pointer to incom=
plete type
>=20
> *** Failed target:  pf.o
> *** Failed command: echo '# ' "compile WIFIBSD_RUN/pf.o"; echo /usr/src/o=
bj/tooldir.NetBSD-3.99.6-i386/bin/i386--netbsdelf-gcc -ffreestanding -Os -m=
cpu=3Di486 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith =
-Wmissing-prototypes -Wstrict-prototypes -Wreturn-type -Wswitch -Wshadow -W=
cast-qual -Wwrite-strings -Wno-sign-compare -Wno-shadow -fno-zero-initializ=
ed-in-bss -Di386 -I. -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DTIMER_F=
REQ=3D"1189200" -DDUMMY_NOPS -DMAXUSERS=3D32 -D_KERNEL -D_KERNEL_OPT -I/usr=
/src/sys/dist/pf -c /usr/src/sys/dist/pf/net/pf.c; /usr/src/obj/tooldir.Net=
BSD-3.99.6-i386/bin/i386--netbsdelf-gcc -ffreestanding -Os -mcpu=3Di486 -We=
rror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prot=
otypes -Wstrict-prototypes -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwr=
ite-strings -Wno-sign-compare -Wno-shadow -fno-zero-initialized-in-bss -Di3=
86 -I. -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DTIMER_FREQ=3D"1189200=
" -DDUMMY_NOPS -DMAXUSERS=3D!
>  32 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/dist/pf -c /usr/src/sys/dist/p=
f/net/pf.c
> *** Error code 1
>=20
> Stop.
> nbmake: stopped in /usr/obj/sys/arch/i386/compile/WIFIBSD_RUN
>=20
> ERROR: Failed to make all in /usr/src/sys/arch/i386/compile/obj/WIFIBSD_R=
UN
> *** BUILD ABORTED ***

Only FIY, there's also PR kern/30712 showing up this problem.

--=20
hernani