Skip to content

sf update / compile fails on debian / OAMS_TRADITIONAL_GIS_ORDER #1906

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ghost opened this issue Feb 15, 2022 · 1 comment
Closed

sf update / compile fails on debian / OAMS_TRADITIONAL_GIS_ORDER #1906

ghost opened this issue Feb 15, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 15, 2022

Describe the bug
A clear and concise description of what the bug is.

while updating sf package the compilation fails with the following error:

g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/gdal -I/usr/include -I'/usr/local/lib/R/site-library/Rcpp/include'    -fpic  -g -O2 -fdebug-prefix-map=/home/jranke/git/r-backports/buster/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c stars.cpp -o stars.o
stars.cpp: In function ‘void CPL_create(Rcpp::CharacterVector, Rcpp::IntegerVector, Rcpp::NumericVector, Rcpp::CharacterVector, Rcpp::NumericVector, Rcpp::NumericVector)’:
stars.cpp:771:7: error: ‘class OGRSpatialReference’ has no member named ‘SetAxisMappingStrategy’
  oSRS.SetAxisMappingStrategy(OAMS_TRADITIONAL_GIS_ORDER);
       ^~~~~~~~~~~~~~~~~~~~~~
stars.cpp:771:30: error: ‘OAMS_TRADITIONAL_GIS_ORDER’ was not declared in this scope
  oSRS.SetAxisMappingStrategy(OAMS_TRADITIONAL_GIS_ORDER);
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [/usr/lib/R/etc/Makeconf:177: stars.o] Error 1
ERROR: compilation failed for package ‘sf’

To Reproduce

R ‘4.1.2’
Debian GNU/Linux 10 (buster)
Linking to GEOS 3.7.1, GDAL 2.4.0, PROJ 5.2.0; sf_use_s2() is TRUE
trying URL 'https://cloud.r-project.org/src/contrib/sf_1.0-6.tar.gz'

update.packages(checkBuilt=TRUE, ask=FALSE)

Additional context
Add any other context about the problem here.

R version 4.1.2 (2021-11-01)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 10 (buster)

Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/atlas/libblas.so.3.10.3
LAPACK: /usr/lib/x86_64-linux-gnu/atlas/liblapack.so.3.10.3

locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] sf_1.0-5

loaded via a namespace (and not attached):
[1] Rcpp_1.0.8 magrittr_2.0.2 units_0.8-0 tidyselect_1.1.1
[5] R6_2.5.1 rlang_1.0.1 fansi_1.0.2 dplyr_1.0.8
[9] tools_4.1.2 grid_4.1.2 KernSmooth_2.23-20 utf8_1.2.2
[13] cli_3.2.0 e1071_1.7-9 DBI_1.1.2 ellipsis_0.3.2
[17] class_7.3-20 tibble_3.1.6 lifecycle_1.0.1 crayon_1.5.0
[21] purrr_0.3.4 vctrs_0.3.8 glue_1.6.1 proxy_0.4-26
[25] compiler_4.1.2 pillar_1.7.0 generics_0.1.2 classInt_0.4-3
[29] pkgconfig_2.0.3

sf::sf_extSoftVersion()
GEOS GDAL proj.4 GDAL_with_GEOS USE_PROJ_H
"3.7.1" "2.4.0" "5.2.0" "true" "false"
PROJ
"5.2.0"

@edzer
Copy link
Member

edzer commented Feb 15, 2022

See #1899 : install 1.0-7 from github

@edzer edzer closed this as completed Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant