Re: [Rd] Minor issue building 2.3.0 under Red Hat Linux 9

From: Paul Roebuck <roebuck_at_mdanderson.org>
Date: Fri 28 Apr 2006 - 08:46:08 GMT

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)

R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri Apr 28 18:48:14 2006

This archive was generated by hypermail 2.1.8 : Fri 28 Apr 2006 - 10:17:45 GMT