From roebuck at mdanderson.org  Fri Apr 28 10:46:08 2006
From: roebuck at mdanderson.org (Paul Roebuck)
Date: Fri, 28 Apr 2006 03:46:08 -0500 (CDT)
Subject: [Rd] Minor issue building 2.3.0 under Red Hat Linux 9
In-Reply-To: <Pine.LNX.4.64.0604272132460.21698@gannet.stats.ox.ac.uk>
References: <4450420F.7060803@DecisionSynergy.com>
	<Pine.LNX.4.64.0604271033420.24905@gannet.stats.ox.ac.uk>
	<1146142453.4606.26.camel@localhost.localdomain>
	<Pine.LNX.4.64.0604272132460.21698@gannet.stats.ox.ac.uk>
Message-ID: <Pine.OSF.4.58.0604280230420.445346@wotan.mdacc.tmc.edu>

On Thu, 27 Apr 2006, Prof Brian Ripley wrote:

> On Thu, 27 Apr 2006, Marc Schwartz wrote:
>
> > On Thu, 2006-04-27 at 10:53 +0100, Prof Brian Ripley wrote:
> >
> >> On Thu, 27 Apr 2006, Dominick Samperi wrote:
> >>
> >>> Building R 2.3.0 fails under Red Hat 9.0 because
> >>> ssize_t is not defined in src/modules/internet/sock.h.
> >>> Inserting #include <sys/types.h> at the top of this
> >>> file fixes the problem.
> >>
> >> That's interesting: POSIX says it must be defined in unistd.h, and that is
> >> included before sock.h in all the C files AFAICS (and this is why all the
> >> Unix-alike platforms tested before release do compile that module).
> >>
> >> It's a bug in RH9 (there seems to be no 9.0), and that is maintained by
> >> Fedora Legacy -- do they have an update?
> >
> > [SNIP]
>
> I have no idea, but have modified the sock.h to have a belt-and-braces
> approach.

POSIX Programmer's Guide shows ssize_t was added to
<sys/types.h> in IEEE Std 1003.1-1990 as a result of
changing the function declarations for read() and write().

The change to "sock.h" would seem appropriate, not careful,
as the header file assumed ssize_t was previously defined.

----------------------------------------------------------
SIGSIG -- signature too long (core dumped)



[Rd] Minor issue building 2.3.0 under Red Hat Linux 9
Paul Roebuck