Skip to content

new version 1.4.9 fails installation on Alpine Linux #548

@bastistician

Description

@bastistician
Found pkg-config cflags and libs (libpq 17.7)!
Using PKG_CFLAGS=-I/usr/include/postgresql
Using PKG_LIBS=-lpq
[...]
using C++ compiler: 'g++ (Alpine 14.2.0) 14.2.0'
[...]
g++ -std=gnu++17 -I"/home/runner/R-patched/build/include" -DNDEBUG -I/usr/include/postgresql -Ivendor -DRCPP_DEFAULT_INCLUDE_CALL=false -DRCPP_USING_UTF8_ERROR_STRING -DBOOST_NO_AUTO_PTR -I'/home/runner/R-patched/lib/cpp11/include' -I/usr/local/include   -fvisibility=hidden -fpic  -O2 -mtune=native -Wno-ignored-attributes   -c DbConnection.cpp -o DbConnection.o
DbConnection.cpp: In member function 'cpp11::list DbConnection::wait_for_notify(int)':
DbConnection.cpp:308:3: error: 'fd_set' was not declared in this scope
DbConnection.cpp:334:14: error: 'input' was not declared in this scope
[... and a few more such errors ...]
ERROR: compilation failed for package 'RPostgres'

To reproduce the error in a standard docker run --rm -it alpine, you could do:

apk add R R-dev R-doc
apk add g++ libpq-dev
R -s -e 'install.packages("RPostgres", repos = "https://cloud.r-project.org/", Ncpus = 4)'

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