* installing *source* package ‘rjson’ ... ** package ‘rjson’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C compiler: ‘gcc-13 (GCC) 13.2.0’ using C++ compiler: ‘g++-13 (GCC) 13.2.0’ make[2]: Entering directory '/data/gannet/ripley/R/packages/tests-noRemap/rjson/src' g++-13 -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include -fpic -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -DR_NO_REMAP -c dump.cpp -o dump.o dump.cpp: In function 'std::string escapeString(const char*)': dump.cpp:67:41: error: 'error' was not declared in this scope; did you mean 'perror'? 67 | error("unable to escape string. String is not utf8\n"); | ^~~~~ | perror dump.cpp: In function 'std::string toJSON2(SEXP, int, int)': dump.cpp:87:17: error: 'length' was not declared in this scope 87 | int n = length(x); | ^~~~~~ dump.cpp:101:25: error: 'error' was not declared in this scope; did you mean 'perror'? 101 | error("number of names does not match number of elements\n"); | ^~~~~ | perror In file included from /data/gannet/ripley/R/R-devel/include/Rdefines.h:41, from dump.cpp:8: dump.cpp:175:46: error: 'allocVector' was not declared in this scope; did you mean 'Rf_allocVector'? 175 | PROTECT( p = allocVector( REALSXP, 2 ) ); | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ dump.cpp:178:61: error: 'mkChar' was not declared in this scope 178 | SET_STRING_ELT( p_names, 0, mkChar("real") ); | ^~~~~~ dump.cpp:183:33: error: 'setAttrib' was not declared in this scope; did you mean 'Rf_setAttrib'? 183 | setAttrib( p, R_NamesSymbol, p_names ); | ^~~~~~~~~ | Rf_setAttrib dump.cpp:215:25: error: 'error' was not declared in this scope; did you mean 'perror'? 215 | error("unable to convert R type %i to JSON\n", TYPEOF(x)); | ^~~~~ | perror dump.cpp: In function 'SEXPREC* toJSON(SEXP, SEXP)': dump.cpp:234:27: error: 'allocVector' was not declared in this scope; did you mean 'Rf_allocVector'? 234 | PROTECT(p=allocVector(STRSXP, 1)); | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ dump.cpp:235:38: error: 'mkCharCE' was not declared in this scope; did you mean 'Rf_mkCharCE'? 235 | SET_STRING_ELT(p, 0, mkCharCE( buf.c_str(), CE_UTF8 )); | ^~~~~~~~ | Rf_mkCharCE make[2]: *** [/data/gannet/ripley/R/R-devel/etc/Makeconf:202: dump.o] Error 1 make[2]: Leaving directory '/data/gannet/ripley/R/packages/tests-noRemap/rjson/src' ERROR: compilation failed for package ‘rjson’ * removing ‘/data/gannet/ripley/R/packages/tests-noRemap/Libs/rjson-lib/rjson’ Command exited with non-zero status 1 Time 0:02.57, 2.06 + 0.30