You may want to check out your checkout.... I see:
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? - Peter > On 29 Apr 2021, at 15:58 , Ben Bolker <bbol...@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[3]: *** [connections.o] Error 1 > > Any suggestions for a quick fix/diagnosis? > > cheers > 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@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd....@cbs.dk Priv: pda...@gmail.com ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel