Bug 35334 - Solaris sctp.h requires sys/socket.h
Summary: Solaris sctp.h requires sys/socket.h
Status: RESOLVED FIXED
Alias: None
Product: APR
Classification: Unclassified
Component: APR (show other bugs)
Version: 0.9.6
Hardware: Sun Solaris
: P3 normal (vote)
Target Milestone: ---
Assignee: Apache Portable Runtime bugs mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-12 17:15 UTC by Allen Wittenauer
Modified: 2006-02-03 15:02 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.