[R-sig-Geo] library rgdal 1.5-15 installation failed

massimo bressan m@@@|mo@bre@@@n @end|ng |rom @rp@@veneto@|t
Thu Aug 6 11:19:29 CEST 2020


I've got this error by updating rgdal packages from 1.5-12 to 1.5-15

###################################

projectit.cpp:159:95: error: expected ‘,’ or ‘...’ before ‘SEXP’
 SEXP transform_ng(SEXP fromargs, SEXP toargs, SEXP coordOp, SEXP npts,
SEXP x, SEXP y, SEXP z SEXP aoi) {

                   ^~~~
projectit.cpp: In function ‘SEXPREC* transform_ng(SEXP, SEXP, SEXP, SEXP,
SEXP, SEXP, SEXP)’:
projectit.cpp:159:6: error: conflicting declaration of C function ‘SEXPREC*
transform_ng(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)’
 SEXP transform_ng(SEXP fromargs, SEXP toargs, SEXP coordOp, SEXP npts,
SEXP x, SEXP y, SEXP z SEXP aoi) {
      ^~~~~~~~~~~~
In file included from projectit.cpp:11:0:
rgdal.h:132:6: note: previous declaration ‘SEXPREC* transform_ng(SEXP,
SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)’
 SEXP transform_ng(SEXP fromargs, SEXP toargs, SEXP coordOp, SEXP npts,
SEXP x, SEXP y, SEXP z, SEXP aoi); // both
      ^~~~~~~~~~~~
/usr/lib/R/etc/Makeconf:177: recipe for target 'projectit.o' failed
make: *** [projectit.o] Error 1
ERROR: compilation failed for package ‘rgdal’
* removing ‘/home/max/R/x86_64-pc-linux-gnu-library/3.5/rgdal’
* restoring previous ‘/home/max/R/x86_64-pc-linux-gnu-library/3.5/rgdal’
####################################
my system is:

Debian 9 stretch, Debian 4.9.228-1 (2020-07-05)

R version 3.6.3 (2020-02-29) -- "Holding the Windsock"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

any help for that?
thanks

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list