Hello, I'm trying to install R on a linux machine running Red Hat 8. I ran ./configure make and get the following error. I've installed several versions of R (2.2.1 most recently) on this machine and haven't had any problems until now. I wondered if the outdated compiler (gcc version 3.2) was the problem and attempted to install my own, more recent version. I tried gcc versions 4.1.0 and 3.4.6, but still have problems. The output below is using gcc 3.4.6 (my best attempt, but still ending with the same error as gcc 3.2). Any pointers would be appreciated. Best, Randy system: i686-pc-linux-gnu gcc version: 3.4.6 everything seems to be fine up to this point: . . . make[4]: Entering directory `/home/lgd/rjohnson/bin/R-2.3.0/src/modules/internet' gcc -I. -I../../../src/include -I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fpic -g -O2 -std=gnu99 -c Rsock.c -o Rsock.o gcc -I. -I../../../src/include -I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fpic -g -O2 -std=gnu99 -c internet.c -o internet.o gcc -I. -I../../../src/include -I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fpic -g -O2 -std=gnu99 -c nanoftp.c -o nanoftp.o gcc -I. -I../../../src/include -I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fpic -g -O2 -std=gnu99 -c nanohttp.c -o nanohttp.o gcc -I. -I../../../src/include -I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fpic -g -O2 -std=gnu99 -c sock.c -o sock.o gcc -I. -I../../../src/include -I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fpic -g -O2 -std=gnu99 -c sockconn.c -o sockconn.o In file included from sockconn.c:34: sock.h:38: error: syntax error before "Sock_read" sock.h:38: warning: type defaults to `int' in declaration of `Sock_read' sock.h:38: warning: data definition has no type or storage class sock.h:39: error: syntax error before "Sock_write" sock.h:39: warning: type defaults to `int' in declaration of `Sock_write' sock.h:39: warning: data definition has no type or storage class make[4]: *** [sockconn.o] Error 1 make[4]: Leaving directory `/home/lgd/rjohnson/bin/R-2.3.0/src/modules/internet' make[3]: *** [R] Error 2 make[3]: Leaving directory `/home/lgd/rjohnson/bin/R-2.3.0/src/modules/internet' make[2]: *** [R] Error 1 make[2]: Leaving directory `/home/lgd/rjohnson/bin/R-2.3.0/src/modules' make[1]: *** [R] Error 1 make[1]: Leaving directory `/home/lgd/rjohnson/bin/R-2.3.0/src' make: *** [R] Error 1 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Randall C Johnson Bioinformatics Analyst SAIC-Frederick, Inc (Contractor) Laboratory of Genomic Diversity NCI-Frederick, P.O. Box B Bldg 560, Rm 11-85 Frederick, MD 21702 Phone: (301) 846-1304 Fax: (301) 846-1686 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On Fri, 2006-05-19 at 15:37 -0400, Randall C Johnson [Contr.] wrote:> Hello, > I'm trying to install R on a linux machine running Red Hat 8. I ran > > ./configure > make > > and get the following error. I've installed several versions of R (2.2.1 > most recently) on this machine and haven't had any problems until now. I > wondered if the outdated compiler (gcc version 3.2) was the problem and > attempted to install my own, more recent version. I tried gcc versions 4.1.0 > and 3.4.6, but still have problems. The output below is using gcc 3.4.6 (my > best attempt, but still ending with the same error as gcc 3.2). Any pointers > would be appreciated. > > Best, > Randy<SNIP of sock.h related errors> Randy, This looks like the same issue that was reported on r-devel back at the end of April for RH 9. Download the latest r-patched tarball and you should be OK. Prof. Ripley made some changes to sock.h that should get around these issues. Unfortunately, they were not reported until after the release of 2.3.0. Download from here: ftp://ftp.stat.math.ethz.ch/Software/R/R-patched.tar.gz It might be time to consider updating your system, since RH 8.0 is not even supported by the Fedora Legacy folks any longer. That means no functional or security updates. Best regards, Marc Schwartz