[Rd] R compilation on old(ish) CentOS

Ben Bolker bbo|ker @end|ng |rom gm@||@com
Thu Apr 29 15:58:22 CEST 2021

   I probably don't want to go down this rabbit hole very far, but if 
anyone has any *quick* ideas ...

   Attempting to build R from scratch with a fresh SVN checkout on a 
somewhat out-of-date CentOS system (for which I don't have root access, 
although I can bug people if I care enough).

   ../r-devel/configure; make

ends with

gcc -std=gnu99 -I../../../r-devel/trunk/src/extra  -I. 
-I../../src/include -I../../../r-devel/trunk/src/include 
-I/usr/local/include -I../../../r-devel/trunk/src/nmath -DHAVE_CONFIG_H 
  -fopenmp  -g -O2  -c ../../../r-devel/trunk/src/main/connections.c -o 
../../../r-devel/trunk/src/main/connections.c: In function ‘do_sockconn’:
../../../r-devel/trunk/src/main/connections.c:3477:5: error: too few 
arguments to function ‘R_newsock’
      con = R_newsock(host, port, server, serverfd, open, timeout);
In file included from ../../../r-devel/trunk/src/main/connections.c:80:0:
../../../r-devel/trunk/src/include/Rconnections.h:83:13: note: declared here
  Rconnection R_newsock(const char *host, int port, int server, int 
serverfd, const char * const mode, int timeout, int options);
make[3]: *** [connections.o] Error 1

   Any suggestions for a quick fix/diagnosis?

     Ben Bolker


$ gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)

$ lsb_release -a
LSB Version: 
Distributor ID:	CentOS
Description:	CentOS Linux release 7.8.2003 (Core)
Release:	7.8.2003
Codename:	Core

More information about the R-devel mailing list