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; Summum Bonum wrote: > Taking Hans tips, I have tested 4.1.14 source code on Solaris 10 sparc > ...


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-19-2006
Hans Werner Strube
 
Posts: n/a
Default Re: 4.1.14 compile error on FIONREAD

Summum Bonum wrote:
> 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


This holds only for Solaris 10 and up. Otherwise, cr_uid is defined in
sys/cred.h which is already included. There should be some #if accounting
for this.
Also, when using a Sun compiler (at least up to Forte 7) rather than gcc,
you must make the second change suggested by me:

> > (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 09:33 AM.


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