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

Johann Petrak johann@ai.univie.ac.at
Fri, 16 Jul 1999 15:13:03 +0200


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 ...

Johann

---
Johann Petrak                       Email: johann@ai.univie.ac.at
Austrian Research Institute for AI  Phone:     +43-1-533-61-12/13
Schottengasse 3                     Fax:       +43-1-532-61-12/77
A-1010 Vienna, AUSTRIA         http://www.ai.univie.ac.at/~johann
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._