This is a discussion on Re: 4.1.14 compile error on FIONREAD within the IPFilter forums, part of the System Security and Security Related category; Vincent Fox wrote: > I tried compiling the latest 4.1.14 source code on 2 Solaris Sparc systems. > #...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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.) |