httpuv fails to install with the following command using either "install.packages("httpuv")" in R or the command "R CMD INSTALL httpuv/" in a shell. Using R 3.4.3, g++4.8.
Does anyone have an idea to a solution?
The command out put is:
installing to library ‘/usr/local/lib/R/site-library’
installing source package ‘httpuv’ ...
** libs
g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG -I./libuv/include -I./http-parser -I./sha1 -I./base64 -fvisibility=hidden -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/usr/local/lib/R/site-library/BH/include" -I"/usr/local/lib/R/site-library/later/include" -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c filedatasource-unix.cpp -o filedatasource-unix.o
In file included from ./libuv/include/uv.h:62:0,
from uvutil.h:6,
from filedatasource.h:4,
from filedatasource-unix.cpp:3:
./libuv/include/uv-unix.h:102:28: error: ‘sem_t’ does not name a type
define UV_PLATFORM_SEM_T sem_t
^
./libuv/include/uv-unix.h:133:9: note: in expansion of macro ‘UV_PLATFORM_SEM_T’
typedef UV_PLATFORM_SEM_T uv_sem_t;
^
In file included from uvutil.h:6:0,
from filedatasource.h:4,
from filedatasource-unix.cpp:3:
./libuv/include/uv.h:1442:27: error: ‘uv_sem_t’ was not declared in this scope
UV_EXTERN int uv_sem_init(uv_sem_t sem, unsigned int value);
^
./libuv/include/uv.h:1442:37: error: ‘sem’ was not declared in this scope
UV_EXTERN int uv_sem_init(uv_sem_t sem, unsigned int value);
^
./libuv/include/uv.h:1442:42: error: expected primary-expression before ‘unsigned’
UV_EXTERN int uv_sem_init(uv_sem_t sem, unsigned int value);
^
./libuv/include/uv.h:1442:60: error: expression list treated as compound expression in initializer [-fpermissive]
UV_EXTERN int uv_sem_init(uv_sem_t sem, unsigned int value);
^
./libuv/include/uv.h:1443:31: error: variable or field ‘uv_sem_destroy’ declared void
UV_EXTERN void uv_sem_destroy(uv_sem_t sem);
^
./libuv/include/uv.h:1443:31: error: ‘uv_sem_t’ was not declared in this scope
./libuv/include/uv.h:1443:41: error: ‘sem’ was not declared in this scope
UV_EXTERN void uv_sem_destroy(uv_sem_t sem);
^
./libuv/include/uv.h:1444:28: error: variable or field ‘uv_sem_post’ declared void
UV_EXTERN void uv_sem_post(uv_sem_t sem);
^
./libuv/include/uv.h:1444:28: error: ‘uv_sem_t’ was not declared in this scope
./libuv/include/uv.h:1444:38: error: ‘sem’ was not declared in this scope
UV_EXTERN void uv_sem_post(uv_sem_t sem);
^
./libuv/include/uv.h:1445:28: error: variable or field ‘uv_sem_wait’ declared void
UV_EXTERN void uv_sem_wait(uv_sem_t sem);
^
./libuv/include/uv.h:1445:28: error: ‘uv_sem_t’ was not declared in this scope
./libuv/include/uv.h:1445:38: error: ‘sem’ was not declared in this scope
UV_EXTERN void uv_sem_wait(uv_sem_t sem);
^
./libuv/include/uv.h:1446:30: error: ‘uv_sem_t’ was not declared in this scope
UV_EXTERN int uv_sem_trywait(uv_sem_t sem);
^
./libuv/include/uv.h:1446:40: error: ‘sem’ was not declared in this scope
UV_EXTERN int uv_sem_trywait(uv_sem_t sem);
^
make: *** [filedatasource-unix.o] Error 1
ERROR: compilation failed for package ‘httpuv’
httpuv fails to install with the following command using either "install.packages("httpuv")" in R or the command "R CMD INSTALL httpuv/" in a shell. Using R 3.4.3, g++4.8.
Does anyone have an idea to a solution?
The command out put is:
define UV_PLATFORM_SEM_T sem_t
./libuv/include/uv-unix.h:133:9: note: in expansion of macro ‘UV_PLATFORM_SEM_T’ typedef UV_PLATFORM_SEM_T uv_sem_t; ^ In file included from uvutil.h:6:0, from filedatasource.h:4, from filedatasource-unix.cpp:3: ./libuv/include/uv.h:1442:27: error: ‘uv_sem_t’ was not declared in this scope UV_EXTERN int uv_sem_init(uv_sem_t sem, unsigned int value); ^ ./libuv/include/uv.h:1442:37: error: ‘sem’ was not declared in this scope UV_EXTERN int uv_sem_init(uv_sem_t sem, unsigned int value); ^ ./libuv/include/uv.h:1442:42: error: expected primary-expression before ‘unsigned’ UV_EXTERN int uv_sem_init(uv_sem_t sem, unsigned int value); ^ ./libuv/include/uv.h:1442:60: error: expression list treated as compound expression in initializer [-fpermissive] UV_EXTERN int uv_sem_init(uv_sem_t sem, unsigned int value); ^ ./libuv/include/uv.h:1443:31: error: variable or field ‘uv_sem_destroy’ declared void UV_EXTERN void uv_sem_destroy(uv_sem_t sem); ^ ./libuv/include/uv.h:1443:31: error: ‘uv_sem_t’ was not declared in this scope ./libuv/include/uv.h:1443:41: error: ‘sem’ was not declared in this scope UV_EXTERN void uv_sem_destroy(uv_sem_t sem); ^ ./libuv/include/uv.h:1444:28: error: variable or field ‘uv_sem_post’ declared void UV_EXTERN void uv_sem_post(uv_sem_t sem); ^ ./libuv/include/uv.h:1444:28: error: ‘uv_sem_t’ was not declared in this scope ./libuv/include/uv.h:1444:38: error: ‘sem’ was not declared in this scope UV_EXTERN void uv_sem_post(uv_sem_t sem); ^ ./libuv/include/uv.h:1445:28: error: variable or field ‘uv_sem_wait’ declared void UV_EXTERN void uv_sem_wait(uv_sem_t sem); ^ ./libuv/include/uv.h:1445:28: error: ‘uv_sem_t’ was not declared in this scope ./libuv/include/uv.h:1445:38: error: ‘sem’ was not declared in this scope UV_EXTERN void uv_sem_wait(uv_sem_t sem); ^ ./libuv/include/uv.h:1446:30: error: ‘uv_sem_t’ was not declared in this scope UV_EXTERN int uv_sem_trywait(uv_sem_t sem); ^ ./libuv/include/uv.h:1446:40: error: ‘sem’ was not declared in this scope UV_EXTERN int uv_sem_trywait(uv_sem_t sem); ^ make: *** [filedatasource-unix.o] Error 1 ERROR: compilation failed for package ‘httpuv’