Bug 35334

Summary: Solaris sctp.h requires sys/socket.h
Product: APR Reporter: Allen Wittenauer <allenw>
Component: APRAssignee: Apache Portable Runtime bugs mailinglist <bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 0.9.6   
Target Milestone: ---   
Hardware: Sun   
OS: Solaris   

Description Allen Wittenauer 2005-06-12 17:15:44 UTC
The configure order for apr does netinet/sctp.h before sys/socket.h.  Solaris
requires sys/socket.h be included for sctp.h to be properly detected. 
Re-arranging it so that socket.h is detected before sctp.h should solve the
problem and allow for Apache to utilize SCTP on Solaris properly.
Comment 1 Joe Orton 2005-09-08 15:34:57 UTC

*** This bug has been marked as a duplicate of 35021 ***
Comment 2 William A. Rowe Jr. 2006-02-03 08:50:46 UTC
The referenced 'duplicate' did fix the code.  It did not fix autoconf.

Currently we aren't detecting sctp.h because the autoconf-foo doesn't
know to include sys/socket.h in the process of testing for sctp.h;
sctp.h won't compile.

There's a pretty big red warning on solaris 10, at least, in ./configure.
Comment 3 Garrett Rooney 2006-02-04 00:02:17 UTC
Actually, while this is kind of ugly, it turns out to not be an actual problem.
 The presence of netinet/sctp.h is detected, and that's what's used later on
when determining if we should use it, and at that point we do include
sys/socket.h first, so it does work.  It would certainly be nice if we didn't
get that scary warning, but it's not a bug in the sense that the SCTP support
does still end up turned on, at least as far as I can tell.