Hi All,

Taking Hans tips, I have tested 4.1.14 source code on Solaris 10 sparc
with gcc. For a clean compile, looks like one needs (from
Hans):

1> add #include <sys/filio.h>  in fil.c

and to fix "dereferencing pointer to incomplete type" error for problem
with cp->cr_uid:

2> add #include <sys/cred_impl.h>  in ip_fil_solaris.c

Cheerios,

-- Sum
sick at home 



> 
> Vincent Fox wrote:
> > I tried compiling the latest 4.1.14 source code on 2 Solaris Sparc systems.
> > #1) Solaris 9 with Forte 6 compilers
> > #2) Solaris 8 with SunStudio 11
> > and in both cases make solaris fails here:
> > 
> > cc -Xa -xildoff -I. -g -I../.. -D_BSD_SOURCE  -DSOLARIS2=8 -DIPFILTER_LOG
> > -DIPFILTER_LOOKUP  -DIPFILTER_SCAN -DIPFILTER_SYNC -DIPFILTER_CKSUM  -c
> > ./../fil.c -o sparcv7/fil_u.o
> > "../../fil.c", line 6796: warning: no explicit type given for parameter: uid
> > "../../fil.c", line 7035: undefined symbol: FIONREAD
> > "../../fil.c", line 7035: non-constant case expression
> 
> For Solaris with any Sun compiler, there must be two fixes:
> (1) In fil.c, <sys/filio.h> must be included (presently, it is only for some
> FreeBSD versions).
> 
> (2) In ip_auth.c, lines 953 and 954 must be interchanged, giving
>       mb_t *m;
>       SPL_INT(s);
> (In Solaris SPL_INT(s) is an empty macro, but a lone ';' is not allowed among
> definitions.)
> 

Reply via email to