Subject: RE: Re: Error compiling pf.o
To: None <tech-kern@netbsd.org>
From: Nicolas Saurbier <Nicolas.Saurbier@concept04.de>
List: tech-kern
Date: 02/27/2006 13:13:11
Yes, I found out ALTQ makes the build process fail.
I tried to patch with altq.diff from http://nedbsd.nl/~ppostma/pf/
but the patch seems to be working for NetBSD 2.0 only.
Does any1 know if I can use PF + ALTQ + IPF on NetBSD 3.0?

I need to do IP-Filtering with IPF (OK, really would like to switch
to PF but this has an historical backgroud) and traffic shaping with =
ALTQ.
I need to use the patched ATLQ-PF version because standard ALTQ can't
fulfil my needs.

Regards=20

NIC=20

> -----Original Message-----
> From: tech-kern-owner@NetBSD.org=20
> [mailto:tech-kern-owner@NetBSD.org] On Behalf Of Rui Paulo
> Sent: Monday, February 27, 2006 12:58 PM
> To: tech-kern@netbsd.org
> Subject: Re: Error compiling pf.o
>=20
> "Nicolas Saurbier" <Nicolas.Saurbier@concept04.de> writes:
>=20
> > Hi,
> >
> > I get the following error when I try to 'make' a NetBSD 3.0=20
> Kernel with PF support:=20
> >
> > #   compile  SAURBIER_PF/pf.o
> > cc -ffreestanding -O2 -Werror -Wall -Wno-main=20
> -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes=20
> -Wstrict-prototypes -Wno-sign-compare=20
> -fno-zero-initialized-in-bss -Di386 -I. -I../../../../arch=20
> -I../../../.. -nostdinc -DLKM -DIPSEC_DEBUG -DALTQ_PRIQ=20
> -DMAXUSERS=3D32 -D_KERNEL -D_KERNEL_OPT -I../../../../dist/pf=20
> -I../../../../dist/ipf -c ../../../../dist/pf/net/pf.c
> > ../../../../dist/pf/net/pf.c: In function `pf_send_tcp':
> > ../../../../dist/pf/net/pf.c:1355: error: dereferencing=20
> pointer to incomplete type
> > ../../../../dist/pf/net/pf.c:1358: error: dereferencing=20
> pointer to incomplete type
> > ../../../../dist/pf/net/pf.c:1360: error: dereferencing=20
> pointer to incomplete type
> > ../../../../dist/pf/net/pf.c:1361: error: dereferencing=20
> pointer to incomplete type
> > ../../../../dist/pf/net/pf.c: In function `pf_send_icmp':
> > ../../../../dist/pf/net/pf.c:1505: error: dereferencing=20
> pointer to incomplete type
> > ../../../../dist/pf/net/pf.c:1508: error: dereferencing=20
> pointer to incomplete type
> > ../../../../dist/pf/net/pf.c:1510: error: dereferencing=20
> pointer to incomplete type
> > ../../../../dist/pf/net/pf.c:1511: error: dereferencing=20
> pointer to incomplete type
> > ../../../../dist/pf/net/pf.c: In function `pf_test':
> > ../../../../dist/pf/net/pf.c:5722: error: dereferencing=20
> pointer to incomplete type
> > ../../../../dist/pf/net/pf.c:5726: error: dereferencing=20
> pointer to incomplete type
> > ../../../../dist/pf/net/pf.c:5728: error: dereferencing=20
> pointer to incomplete type
> > ../../../../dist/pf/net/pf.c:5730: error: dereferencing=20
> pointer to incomplete type
> > ../../../../dist/pf/net/pf.c:5731: error: dereferencing=20
> pointer to incomplete type
> > ../../../../dist/pf/net/pf.c: In function `pf_test6':
> > ../../../../dist/pf/net/pf.c:6048: error: dereferencing=20
> pointer to incomplete type
> > ../../../../dist/pf/net/pf.c:6052: error: dereferencing=20
> pointer to incomplete type
> > ../../../../dist/pf/net/pf.c:6054: error: dereferencing=20
> pointer to incomplete type
> > ../../../../dist/pf/net/pf.c:6056: error: dereferencing=20
> pointer to incomplete type
> > ../../../../dist/pf/net/pf.c:6057: error: dereferencing=20
> pointer to incomplete type
> > *** Error code 1
> >
> > Stop.
> > make: stopped in /usr/src/sys/arch/i386/compile/SAURBIER_PF
> > MAIN_MODULE_LEFT#
> >
> > MAIN_MODULE_LEFT# uname -a
> > NetBSD MAIN_MODULE_LEFT 3.0 NetBSD 3.0 (XEN0_SAURBIER) #0:=20
> Wed Feb  8 20:40:02 CET 2006 =20
> root@:/usr/src/sys/arch/i386/compile/XEN0_SAURBIER i386
> > MAIN_MODULE_LEFT#
> >
> > Any advice?
>=20
> Did you enable ALTQ in the kernel config ?
>=20
> --=20
>   Rui Paulo			<rpaulo@{NetBSD{,-PT}.org,fnop.net}>
>=20
>=20
>=20