nawirb wrote:

In original source of pfil iu.ap (not after you
install the package) all interface is commented, see
below. It just doesn't have e1000g
# cat pfil/SunOS/iu.ap
# Solaris
#      major   minor lastminor  modules
#nf     -1      0       pfil
#le     -1      0       pfil
#hme    -1      0       pfil
#fa     -1      0       pfil
#ci     -1      0       pfil
#el     -1      0       pfil
#e1000g -1      0       pfil
#qfe    -1      0       pfil
#qe     -1      0       pfil
#ipdptp -1      0       pfil
#lane   -1      0       pfil

Yes, you should add e1000g -- but _without_ the #.
And besides, those are not _interfaces_, but _drivers_ for the NIC. Ie, you should not put any number at the end.


Look at mine:
$ cat iu.ap
        iprb    -1      0       pfil
        rf      -1      0       pfil

Only two lines, with the two drivers I'm using.

I have two interface, e1000g0 and e1000g1. both will
appear in iu.ap after pfil pkg installed using pkgadd

And there should be only one line: e1000g -1 0 pfil

In my situation, pfil not come up after reboot, that's
why I purposly put
ifconfig e1000g0 modinsert [EMAIL PROTECTED]
ifconfig e1000g1 modinsert [EMAIL PROTECTED]
in /etc/init.d/pfil

It's probably because your configuration file is not correct. There is no need to do anything beyond what's in the installation doc.


Here what I get using latest gcc 3.4.0 sol9 intel from
sunfreeware.
[snip output]
In file included from /usr/include/sys/reg.h:13,
[snip more output]

From that line, I can tell you this is because the GCC from Sunfreeware was not built on the same Solaris version as yours.
More precisely, Solaris 9 x86 4/04 introduced modified system headers (because it supports SSE instructions), which makes a GCC built on a previous version incompatible, because GCC likes to 'fix' the headers.


Two solutions:
1) I've been told by somebody @Sun that just running the 'mkheaders' script from GCC is enough (mine is /opt/gcc-3.3.3/lib/gcc-lib/i386-pc-solaris2.9/3.3.3/install-tools/mkheaders). I haven't tried this myself.


2) what I have done myself was to rebuild GCC, and it worked nicely (it can be built even with a "broken" version). Did that with 3.3.3.

You can see the list's archive for some people having the same problem.
However, I can assure you that I've built IP filter using GCC for years now, since GCC 2.95, and it works very well.


HTH,

Laurent
--
A hundred thousand lemmings can't be wrong!

Reply via email to