-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
> install.packages(repos=NULL, type='source', '/opt/r-warc')
* installing *source* package ‘warc’ ...
** libs
g++ -std=gnu++11 -I"/usr/lib32/R/include" -DNDEBUG -I../inst/include -I"/usr/lib/R/library/Rcpp/include" -fpic -D_FORTIFY_SOURCE=2 -mtune=i686 -O2 -pipe -g -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I"/usr/lib32/R/include" -DNDEBUG -I../inst/include -I"/usr/lib/R/library/Rcpp/include" -fpic -D_FORTIFY_SOURCE=2 -mtune=i686 -O2 -pipe -g -c gzindex.cpp -o gzindex.o
gzindex.cpp:61: warning: "_ISOC99_SOURCE" redefined
#define _ISOC99_SOURCE
In file included from /usr/include/c++/8.2/i686-pc-linux-gnu/bits/os_defines.h:39,
from /usr/include/c++/8.2/i686-pc-linux-gnu/bits/c++config.h:508,
from /usr/include/c++/8.2/cmath:41,
from /usr/lib/R/library/Rcpp/include/Rcpp/platform/compiler.h:100,
from /usr/lib/R/library/Rcpp/include/Rcpp/r/headers.h:59,
from /usr/lib/R/library/Rcpp/include/RcppCommon.h:29,
from /usr/lib/R/library/Rcpp/include/Rcpp.h:27,
from gzindex.cpp:1:
/usr/include/features.h:194: note: this is the location of the previous definition
# define _ISOC99_SOURCE 1
gzindex.cpp: In function 'void int_create_cdx_from_warc(std::__cxx11::string, std::__cxx11::string, std::__cxx11::string, std::__cxx11::string)':
gzindex.cpp:177:19: error: 'strnstr' was not declared in this scope
char *v = strnstr(buf, ": ", strlen(buf));
^~~~~~~
gzindex.cpp:177:19: note: suggested alternative: 'strstr'
char *v = strnstr(buf, ": ", strlen(buf));
^~~~~~~
strstr
gzindex.cpp:264:21: error: 'strnstr' was not declared in this scope
char *v = strnstr(buf, ": ", strlen(buf));
^~~~~~~
gzindex.cpp:264:21: note: suggested alternative: 'strstr'
char *v = strnstr(buf, ": ", strlen(buf));
^~~~~~~
strstr
make: *** [/usr/lib32/R/etc/Makeconf:168: gzindex.o] Error 1
ERROR: compilation failed for package ‘warc’
* removing ‘/usr/lib/R/library/warc’
Warning message:
In install.packages(repos = NULL, type = "source", "/opt/r-warc") :
installation of package ‘/opt/r-warc’ had non-zero exit status
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels