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
Peter Dalgaard BSA
2003-Mar-17 17:05 UTC
[R] Trying to build R-1.6.2 under sparc-sun-solaris2.9.
Rolf Turner <rolf at math.unb.ca> writes:> 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:...> Has anyone out there a clue as to what is going on, and what > I might do to fix it?[The R-core team is in meetings in Vienna, so the response rate is not going to be great this week] It's certainly doable:> version_ platform sparc-sun-solaris2.9 arch sparc os solaris2.9 system sparc, solaris2.9 status major 1 minor 6.2 year 2003 month 01 day 10 language R It's been a while since I built that, but that's pretty much a vanilla system with the Solaris 9 freeware installed. Your configure output suggests that you hav a system installation problem and some include files has gone AWOL. Check the config.log for hints about what might be missing. -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
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 >