[Rd] R compilation on old(ish) CentOS
pd@|gd @end|ng |rom gm@||@com
Thu Apr 29 16:19:22 CEST 2021
You may want to check out your checkout....
Peter-Dalgaards-iMac:R pd$ grep newsock src/main/connections.c
con = R_newsock(host, port, server, serverfd, open, timeout, options);
but your file seems to have lost the ", options" bit somehow. Also, mine is line 3488, not 3477.
Maybe you have an old file getting in the way?
> On 29 Apr 2021, at 15:58 , Ben Bolker <bbolker using gmail.com> wrote:
> 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 connections.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: *** [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: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
> Distributor ID: CentOS
> Description: CentOS Linux release 7.8.2003 (Core)
> Release: 7.8.2003
> Codename: Core
> R-devel using r-project.org mailing list
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Office: A 4.23
Email: pd.mes using cbs.dk Priv: PDalgd using gmail.com
More information about the R-devel