Skip to content

Fails to Install odbc Pkg #25

@marcelo-g-simas

Description

@marcelo-g-simas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions