IRIX and Solaris need SOCK_STREAM set to 2
Roy T. Fielding (fielding@avron.ICS.UCI.EDU)
Wed, 24 May 1995 00:25:39 -0700
> I think I have answered my own question, after consulting the perl FAQ. It
> mentioned sockets not working on solaris and it seems the same problem arises
> on IRIX: namely, that libwww comes with its own sys/socket.ph which defines
> SOCK_STREAM to be 1 even though IRIX and Solaris actually moved it to 2.
> (Why, why, why???)
libwww only comes with its own socket.ph if you generate one from the C
system libraries (which is the real source of the problem).
> I got a clue toward this by switching back to v0.20 and seeing that it was
> complaining about not being able to bind, as opposed to hitting the undefined
> FS return. Changing the constant to 2 did the trick, as a stopgap measure.
> What's the right long-term solution for libwww?
Fix SVR4. (that's the only *long-term* solution)
> I should point out, I found out a while ago that "get" didn't work properly on
> solaris either, but didn't pay much attention to it then. Changing the
> constant fixes it there too.
Thanks, I'll include that in my list of "stupid Unix tricks".
....Roy T. Fielding Department of ICS, University of California, Irvine USA
<fielding@ics.uci.edu>
<URL:http://www.ics.uci.edu/dir/grad/Software/fielding>