[R] Trying to build R-1.6.2 under sparc-sun-solaris2.9.

Roger Peng rpeng at stat.ucla.edu
Mon Mar 17 18:27:52 CET 2003


Is it possible that something has changed in your system setup since the
last install?  The problem below seems to be that SOCKLEN_T is not
defined, which is why (I think) you get the error

> Rsock.c:378: `len' undeclared (first use in this function)

If I remember correctly, your configure gave warnings about not being able
to determine the length of a socket, which is defined in some header
files on your system somewhere (sorry, I don't use Solaris).  I'd check to
make sure these are being included or that their in the place R thinks
they are.

-roger
_______________________________
UCLA Department of Statistics
rpeng at stat.ucla.edu
http://www.stat.ucla.edu/~rpeng

On Mon, 17 Mar 2003, Rolf Turner wrote:

> 
> This is a follow-up to a message I posted yesterday concerning
> building R-1.6.2.
> 
> After a deafening silence regarding that first message I decided
> to be fool-hardy and just comment out the line that seemed to
> be giving trouble in the file /usr/include/sys/stream.h.
> 
> This worked for a while, but soon another error resulted:
> 
> ===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===
> gcc -I. -I../../../src/include -I../../../src/include  -DHAVE_CONFIG_H  -fPIC  -g -O2 -c Rsock.c -o Rsock.lo
> Rsock.c: In function `R_SockConnect':
> Rsock.c:378: `len' undeclared (first use in this function)
> Rsock.c:378: (Each undeclared identifier is reported only once
> Rsock.c:378: for each function it appears in.)
> *** Error code 1
> make: Fatal error: Command failed for target `Rsock.lo'
> Current working directory /tmp/Rtmp/R-1.6.2/src/modules/internet
> *** Error code 1
> make: Fatal error: Command failed for target `R'
> Current working directory /tmp/Rtmp/R-1.6.2/src/modules/internet
> *** Error code 1
> make: Fatal error: Command failed for target `R'
> Current working directory /tmp/Rtmp/R-1.6.2/src/modules
> *** Error code 1
> make: Fatal error: Command failed for target `R'
> Current working directory /tmp/Rtmp/R-1.6.2/src
> *** Error code 1
> make: Fatal error: Command failed for target `R'
> ===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===
> 
> Now this (Rsock.c) is actually dinky-di R code, but of course the
> error has probably been induced by the previous error involving
> ``stream.h'' and possibly aggravated by my commenting out the
> offending line in stream.h.
> 
> Has anyone out there a clue as to what is going on, and what
> I might do to fix it?
> 
> Everlastingly grateful for any suggestions.
> 
> 				cheers,
> 
> 					Rolf Turner
> 					rolf at math.unb.ca
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>



More information about the R-help mailing list