-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Description
Trying to install the odbc database using the following line I get an error:
RUN installr -d -t unixodbc-dev odbc
make libcctz.a CC="gcc" CXX="g++ -std=gnu++11" AR="ar" ARFLAGS=rv CXXPICFLAGS="-fpic")
make[1]: Entering directory '/tmp/RtmpCFkHNG/R.INSTALLf644d5738/odbc/src/cctz'
g++ -std=gnu++11 -Wall -Iinclude -std=c++11 -pthread -O -fpic -MMD -c -o time_zone_format.o src/time_zone_format.cc
g++ -std=gnu++11 -Wall -Iinclude -std=c++11 -pthread -O -fpic -MMD -c -o time_zone_if.o src/time_zone_if.cc
g++ -std=gnu++11 -Wall -Iinclude -std=c++11 -pthread -O -fpic -MMD -c -o time_zone_impl.o src/time_zone_impl.cc
g++ -std=gnu++11 -Wall -Iinclude -std=c++11 -pthread -O -fpic -MMD -c -o time_zone_info.o src/time_zone_info.cc
src/time_zone_info.cc: In function 'char* cctz::{anonymous}::errmsg(int, char*, size_t)':
src/time_zone_info.cc:64:20: error: invalid conversion from 'int' to 'char*' [-fpermissive]
return strerror_r(errnum, buf, buflen);
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
make[1]: Leaving directory '/tmp/RtmpCFkHNG/R.INSTALLf644d5738/odbc/src/cctz'
make[1]: *** [<builtin>: time_zone_info.o] Error 1
make: *** [Makevars:16: cctz/libcctz.a] Error 2
ERROR: compilation failed for package ‘odbc’
* removing ‘/usr/local/lib/R/library/odbc’
Error in i.p(...) :
(converted from warning) installation of package ‘odbc’ had non-zero exit status
Calls: <Anonymous> ... with_rprofile_user -> with_envvar -> force -> force -> i.p
Execution halted
Failed to install odbc
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels