Subject: Re: Getting a working pflkm for 2.0.2
To: Adam Hess <drsaturn@gmail.com>
From: Jeff Rizzo <riz@NetBSD.org>
List: netbsd-help
Date: 10/29/2005 19:26:50
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigCFF526679C64F103E5C9271F
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Adam Hess wrote:

>All,
>
>I'm trying to convert an old Dell NAT box of mine from linux to
>netbsd. So far I've got both NICs working (using the tlp driver for
>both).  And now I'm trying to get the pf module from pkgsrc to load. 
>So far I've tried the following:
>
>Using the binary pflkm-20050511.tgz for netbsd 2.0 (pkgsrc 2005Q2 and
>2005Q3) which give the the following when I try to load:
>
> # modload /usr/pkg/lkm/pf.o
> modload: error initializing module: Program version wrong
>
>Which makes sense since I'm using 2.0.2 not 2.0 but I don't see an
>i386 version for 2.0.2.
>
>So then I tried compiling from pkg src but make fails with the
>following when compiling if_pflog.c:
>
> if_pflog.c:39:23: sys/param.h: No such file or directory
> if_pflog.c:40:23: sys/param.h: No such file or directory
> In file included from if_pflog.c:41:
> ../include/sys/mbuf.h:79:24: sys/malloc.h No such file or directory
>
>Followed by a list of simmilar errors.
>
>So anyway I just want to get a pf.o that works. I don't particularly
>care if it is binary or from source.  Any ideas?
>  
>

I haven't looked into this deeply, but as it's an LKM, it probably
expects a source tree which matches your kernel in /usr/src ... do you
have one?

+j


--------------enigCFF526679C64F103E5C9271F
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iQCVAwUBQ2QvdLOuUtxCgar5AQPyjwP9Ec1tC+m4TY43lLO++RGHYwa/qgayY0Vw
dqTy/1O/REo2W8umZK8lVblFvo95grBgOZBVOY7R36eFxdtzpUoSZBMKcYtchb5S
v973iqUreA5TpgzBxgE35izuLaOCV8TUjxTJhp3eeU8tra+O/G08rxUOmntEDbld
BRn6ivfXoMU=
=+1P4
-----END PGP SIGNATURE-----

--------------enigCFF526679C64F103E5C9271F--