Re: 4.1.14 compile error on FIONREAD

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. > #...


Go Back   Usenet Forums > System Security and Security Related > IPFilter

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-09-2006
Hans Werner Strube
 
Posts: n/a
Default Re: 4.1.14 compile error on FIONREAD

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 With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:56 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0