Subject: Error compiling PF with ALTQ
To: None <netbsd-users@netbsd.org>
From: Mark Cullen <mark.r.cullen@gmail.com>
List: netbsd-users
Date: 07/11/2006 18:42:15
I've got PF in my kernel config and the kernel compiled just fine, but I 
would like to mess around with ALTQ. When I uncomment the ALTQ lines in 
the kernel config, the compiling fails with:

/usr/src/sys/dist/pf/net/pf.c: In function `pf_send_tcp':
/usr/src/sys/dist/pf/net/pf.c:1355: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dist/pf/net/pf.c:1358: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dist/pf/net/pf.c:1360: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dist/pf/net/pf.c:1361: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dist/pf/net/pf.c: In function `pf_send_icmp':
/usr/src/sys/dist/pf/net/pf.c:1505: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dist/pf/net/pf.c:1508: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dist/pf/net/pf.c:1510: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dist/pf/net/pf.c:1511: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dist/pf/net/pf.c: In function `pf_test':
/usr/src/sys/dist/pf/net/pf.c:5722: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dist/pf/net/pf.c:5726: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dist/pf/net/pf.c:5728: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dist/pf/net/pf.c:5730: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dist/pf/net/pf.c:5731: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dist/pf/net/pf.c: In function `pf_test6':
/usr/src/sys/dist/pf/net/pf.c:6048: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dist/pf/net/pf.c:6052: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dist/pf/net/pf.c:6054: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dist/pf/net/pf.c:6056: error: dereferencing pointer to 
incomplete type
/usr/src/sys/dist/pf/net/pf.c:6057: error: dereferencing pointer to 
incomplete type

I think it's a known problem. A google search revealed patches to fix it 
for 2.x, but I am using 3.0.1.. and they're reported not to work on 3.x 
apparently. Any ideas?
-- 
Mark Cullen <mark.r.cullen@gmail.com>