From Kurt.Hornik@ci.tuwien.ac.at  Fri Jul 16 14:22:10 1999
From: Kurt.Hornik@ci.tuwien.ac.at (Kurt Hornik)
Date: Fri, 16 Jul 1999 15:22:10 +0200 (CEST)
Subject: R-0.64.2 ssize_t not defined in src/unix/sock.h
In-Reply-To: <378F2FDF.349381C0@ai.univie.ac.at>
References: <378F2FDF.349381C0@ai.univie.ac.at>
Message-ID: <14223.12802.659507.724069@aragorn.ci.tuwien.ac.at>

>>>>> Johann Petrak writes:

> I though I should let you all know of this:
> Trying to build R-0.62.2 on a SunOS xxxx 4.1.4 2 sun4m machine
> using gcc (gcc version egcs-2.91.57 19980901 (egcs-1.1 release)):

> gnumake[2]: Entering directory `/tmp_mnt/xxxx/src/R-0.64.2/src/unix'
> gcc -g -O2 -I../include -I../../src/include  -c Rsock.c -o Rsock.o
> In file included from Rsock.c:8:
> sock.h:21: parse error before `Sock_read'
> sock.h:21: warning: data definition has no type or storage class
> sock.h:22: parse error before `Sock_write'
> sock.h:22: warning: data definition has no type or storage class
> Rsock.c: In function `Rsockwrite':
> Rsock.c:112: `ssize_t' undeclared (first use in this function)
> Rsock.c:112: (Each undeclared identifier is reported only once
> Rsock.c:112: for each function it appears in.)
> Rsock.c:112: parse error before `n'
> Rsock.c:125: `n' undeclared (first use in this function)
> gnumake[2]: *** [Rsock.o] Error 1
> gnumake[2]: Leaving directory `/tmp_mnt/xxxx/src/R-0.64.2/src/unix'
> gnumake[1]: *** [R] Error 1
> gnumake[1]: Leaving directory `/tmp_mnt/xxxx/src/R-0.64.2/src'
> gnumake: *** [R] Error 1

> Adding a typedef like for Win32 seems to help ...

This is fixed in 0.65.  I'll also do it for r-release.

-k
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


R-0.64.2 ssize_t not defined in src/unix/sock.h
Kurt Hornik