Subject: kern/33065: compile errors in pf.c when making GENERIC + "pf" + "altq": "atag-> ..."
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <joan@melbpc.org.au>
List: netbsd-bugs
Date: 03/12/2006 14:30:00
>Number:         33065
>Category:       kern
>Synopsis:       compile errors in pf.c when making GENERIC + "pf" + "altq": "atag-> ..."
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 12 14:30:00 +0000 2006
>Originator:     Douglas Ray
>Release:        3.0
>Organization:
>Environment:
NetBSD h2o.site 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/2005121820242-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386
>Description:
Compiling kernel fails if using queues (via altq) within pf.

"error: dereferencing pointer to incomplete type",
in /usr/src/sys/dist/pf/net/pf.c,
within each "#ifdef ALTQ" block,
whenever local var "atag" is dereferenced.
>How-To-Repeat:
cd /sys/arch/i386/conf
cp GENERIC GENERIC.altq-pf
... uncomment all ALTQ options (vi: ":g/ALTQ/s/^#opt/opt/")
... uncomment both pf pseudodev's (vi: ":g/ce^Ipf/s/^#ps/ps/"; ^I is <TAB>)
config GENERIC.altq-pf
... cd to compile subdir
make depend; make
>Fix: