Re: [R-sig-Geo] rgdal compile confusion [RESOLVED]

2018-08-20 Thread Rich Shepard

On Mon, 20 Aug 2018, Shaun Walbridge wrote:


It looks like the maintainer of the slackbuild recently downgraded GDAL
 back to the 2.2.4 version because of the problems with the 2.3.0 release:
 
https://urldefense.proofpoint.com/v2/url?u=https-3A__git.slackbuilds.org_slackbuilds_commit_gis_gdal-3Fh-3D14.2-26id-3Dc97bd17ac886c33fb90b3954945e2c3b07907acc=DwIGaQ=n6-cguzQvX_tUIrZOS_4Og=nxHWzsbFn4X_N0ruafqevZE4LSBsSvWC_0wkjR1NVTY=ATemW5xbQSNOMLNPRJ7Qhs2z8VgsMWup3KQpGwj65HU=V_lu-cvt5T7I-SaxG-5K3zvdqiCDT8vQ-VDgV0r4_Ak=



I'd recommend you reinstall the newest (2.2.4) slackbuild version of the
package, and try rebuilding rgdal while using that.


Shaun,

  How interesting. I did not see that notice on the SBo mail list and David
did not point me to it when I wrote him about the problem.

  Yes, gdal-2.2.4 supports the building of rgdal-1.3-4. The compatibilty
problem must be subtle as configure finds C++11 on my system yet does not
build the latest gdal or rgdal.

Thanks very much,

Rich

___
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo


Re: [R-sig-Geo] rgdal compile confusion

2018-08-20 Thread Rich Shepard

On Mon, 20 Aug 2018, Roger Bivand wrote:


And the output of sessionInfo() - we don't know your platform. How was
GDAL itself installed: from source or binary? Was that binary built on the
same platform? Are there multiple GDAL installations on your system? If
so, the configure step may see one version but install sees another.


Roger,


sessionInfo()

R version 3.5.1 (2018-07-02)
Platform: i586-slackware-linux-gnu (32-bit)
Running under: Slackware 14.2

Matrix products: default
BLAS: /usr/lib/R/lib/libRblas.so
LAPACK: /usr/lib/R/lib/libRlapack.so

locale:
 [1] LC_CTYPE=en_US.UTF-8   LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8LC_COLLATE=C
 [5] LC_MONETARY=en_US.UTF-8LC_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

loaded via a namespace (and not attached):
[1] compiler_3.5.1 tools_3.5.1tcltk_3.5.1

  gdal is built from source using the SlackBuiilds.org
 build script.

  gdal-2.3.1 is the only gdal package installed.

  With the upgraded (2.3.0 -> 2.3.1) gdal version installed fails the same
way in response to both update.packages() and install.packages('rgdal'):


install.packages('rgdal')

trying URL 'https://ftp.osuosl.org/pub/cran/src/contrib/rgdal_1.3-4.tar.gz'
Content type 'application/x-gzip' length 1664774 bytes (1.6 MB)
==
downloaded 1.6 MB

* installing *source* package ‘rgdal’ ...
** package ‘rgdal’ successfully unpacked and MD5 sums checked
configure: R_HOME: /usr/lib/R
configure: CC: gcc
configure: CXX: g++
configure: C++11 support available
configure: rgdal: 1.3-4
checking for /usr/bin/svnversion... yes
configure: svn revision: 766
checking for gdal-config... /usr/bin/gdal-config
checking gdal-config usability... yes
configure: GDAL: 2.3.1
checking C++11 support for GDAL >= 2.3.0... yes
checking GDAL version >= 1.11.4... yes
checking gdal: linking with --libs only... no
checking gdal: linking with --libs and --dep-libs... no
In file included from /usr/include/gdal.h:45:0,
 from gdal_test.cc:1:
/usr/include/cpl_port.h:187:6: error: #error Must have C++11 or newer.
 #error Must have C++11 or newer.
  ^
In file included from /usr/include/gdal.h:49:0,
 from gdal_test.cc:1:
/usr/include/cpl_minixml.h:202:47: error: expected template-name before '<' 
token
 class CPLXMLTreeCloser: public std::unique_ptr
   ^
/usr/include/cpl_minixml.h:202:47: error: expected '{' before '<' token
/usr/include/cpl_minixml.h:202:47: error: expected unqualified-id before '<' 
token
In file included from /usr/include/ogr_api.h:45:0,
 from /usr/include/gdal.h:50,
 from gdal_test.cc:1:
/usr/include/ogr_core.h:79:28: error: expected '}' before end of line
/usr/include/ogr_core.h:79:28: error: expected declaration before end of line
In file included from /usr/include/gdal.h:45:0,
 from gdal_test.cc:1:
/usr/include/cpl_port.h:187:6: error: #error Must have C++11 or newer.
 #error Must have C++11 or newer.
  ^
In file included from /usr/include/gdal.h:49:0,
 from gdal_test.cc:1:
/usr/include/cpl_minixml.h:202:47: error: expected template-name before '<' 
token
 class CPLXMLTreeCloser: public std::unique_ptr
   ^
/usr/include/cpl_minixml.h:202:47: error: expected '{' before '<' token
/usr/include/cpl_minixml.h:202:47: error: expected unqualified-id before '<' 
token
In file included from /usr/include/ogr_api.h:45:0,
 from /usr/include/gdal.h:50,
 from gdal_test.cc:1:
/usr/include/ogr_core.h:79:28: error: expected '}' before end of line
/usr/include/ogr_core.h:79:28: error: expected declaration before end of line
configure: Install failure: compilation and/or linkage problems.
configure: error: GDALAllRegister not found in libgdal.
ERROR: configuration failed for package ‘rgdal’
* removing ‘/usr/lib/R/library/rgdal’
* restoring previous ‘/usr/lib/R/library/rgdal’

The downloaded source packages are in
‘/tmp/RtmpfJQHZG/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning message:
In install.packages("rgdal") :
  installation of package ‘rgdal’ had non-zero exit status

  What other information can I provide?

Regards,

Rich

___
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo


Re: [R-sig-Geo] rgdal compile confusion

2018-08-20 Thread Roger Bivand
And the output of sessionInfo() - we don't know your platform. How was 
GDAL itself installed: from source or binary? Was that binary built on the 
same platform? Are there multiple GDAL installations on your system? If 
so, the configure step may see one version but install sees another.


Roger

On Sun, 19 Aug 2018, Rich Shepard wrote:


On Sun, 19 Aug 2018, Edzer Pebesma wrote:


 please report the entire output you see when trying to install rgdal.


Edzer,

* installing *source* package ‘rgdal’ ...
** package ‘rgdal’ successfully unpacked and MD5 sums checked
configure:  R_HOME: /usr/lib/R
configure:  CC: gcc
configure:  CXX: g++
configure:  C++11 support available
configure:  rgdal: 1.3-4
checking for /usr/bin/svnversion... yes
configure:  svn revision: 766
checking for gdal-config... /usr/bin/gdal-config
checking gdal-config usability... yes
configure:  GDAL: 2.3.0
checking C++11 support for GDAL >= 2.3.0... yes
checking GDAL version >= 1.11.4... yes
checking gdal: linking with --libs only... no
checking gdal: linking with --libs and --dep-libs... no
In file included from /usr/include/gdal.h:45:0,
from gdal_test.cc:1:
/usr/include/cpl_port.h:187:6: error: #error Must have C++11 or newer.
#error Must have C++11 or newer.
 ^
In file included from /usr/include/gdal.h:49:0,
from gdal_test.cc:1:
/usr/include/cpl_minixml.h:202:47: error: expected template-name before '<' 
token
class CPLXMLTreeCloser: public std::unique_ptrCPLXMLTreeCloserDeleter>

  ^
/usr/include/cpl_minixml.h:202:47: error: expected '{' before '<' token
/usr/include/cpl_minixml.h:202:47: error: expected unqualified-id before '<' 
token

In file included from /usr/include/ogr_api.h:45:0,
 from /usr/include/gdal.h:50,
 from gdal_test.cc:1:
/usr/include/ogr_core.h:79:28: error: expected '}' before end of line
/usr/include/ogr_core.h:79:28: error: expected declaration before end of line
In file included from /usr/include/gdal.h:45:0,
from gdal_test.cc:1:
/usr/include/cpl_port.h:187:6: error: #error Must have C++11 or newer.
#error Must have C++11 or newer.
 ^
In file included from /usr/include/gdal.h:49:0,
from gdal_test.cc:1:
/usr/include/cpl_minixml.h:202:47: error: expected template-name before '<' 
token
class CPLXMLTreeCloser: public std::unique_ptrCPLXMLTreeCloserDeleter>

  ^
/usr/include/cpl_minixml.h:202:47: error: expected '{' before '<' token
/usr/include/cpl_minixml.h:202:47: error: expected unqualified-id before '<' 
token

In file included from /usr/include/ogr_api.h:45:0,
 from /usr/include/gdal.h:50,
 from gdal_test.cc:1:
/usr/include/ogr_core.h:79:28: error: expected '}' before end of line
/usr/include/ogr_core.h:79:28: error: expected declaration before end of line
configure:  Install failure: compilation and/or linkage problems.
configure:  error: GDALAllRegister not found in libgdal.
ERROR: configuration failed for package ‘rgdal’
* removing ‘/usr/lib/R/library/rgdal’
* restoring previous ‘/usr/lib/R/library/rgdal’

Regards,

Rich

___
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo




--
Roger Bivand
Department of Economics, Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; e-mail: roger.biv...@nhh.no
http://orcid.org/-0003-2392-6140
https://scholar.google.no/citations?user=AWeghB0J=en___
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo


Re: [R-sig-Geo] rgdal compile confusion

2018-08-19 Thread Rich Shepard

On Sun, 19 Aug 2018, Edzer Pebesma wrote:


please report the entire output you see when trying to install rgdal.


Edzer,

* installing *source* package ‘rgdal’ ...
** package ‘rgdal’ successfully unpacked and MD5 sums checked
configure: R_HOME: /usr/lib/R
configure: CC: gcc
configure: CXX: g++
configure: C++11 support available
configure: rgdal: 1.3-4
checking for /usr/bin/svnversion... yes
configure: svn revision: 766
checking for gdal-config... /usr/bin/gdal-config
checking gdal-config usability... yes
configure: GDAL: 2.3.0
checking C++11 support for GDAL >= 2.3.0... yes
checking GDAL version >= 1.11.4... yes
checking gdal: linking with --libs only... no
checking gdal: linking with --libs and --dep-libs... no
In file included from /usr/include/gdal.h:45:0,
 from gdal_test.cc:1:
/usr/include/cpl_port.h:187:6: error: #error Must have C++11 or newer.
 #error Must have C++11 or newer.
  ^
In file included from /usr/include/gdal.h:49:0,
 from gdal_test.cc:1:
/usr/include/cpl_minixml.h:202:47: error: expected template-name before '<' 
token
 class CPLXMLTreeCloser: public std::unique_ptr
   ^
/usr/include/cpl_minixml.h:202:47: error: expected '{' before '<' token
/usr/include/cpl_minixml.h:202:47: error: expected unqualified-id before '<' 
token
In file included from /usr/include/ogr_api.h:45:0,
 from /usr/include/gdal.h:50,
 from gdal_test.cc:1:
/usr/include/ogr_core.h:79:28: error: expected '}' before end of line
/usr/include/ogr_core.h:79:28: error: expected declaration before end of line
In file included from /usr/include/gdal.h:45:0,
 from gdal_test.cc:1:
/usr/include/cpl_port.h:187:6: error: #error Must have C++11 or newer.
 #error Must have C++11 or newer.
  ^
In file included from /usr/include/gdal.h:49:0,
 from gdal_test.cc:1:
/usr/include/cpl_minixml.h:202:47: error: expected template-name before '<' 
token
 class CPLXMLTreeCloser: public std::unique_ptr
   ^
/usr/include/cpl_minixml.h:202:47: error: expected '{' before '<' token
/usr/include/cpl_minixml.h:202:47: error: expected unqualified-id before '<' 
token
In file included from /usr/include/ogr_api.h:45:0,
 from /usr/include/gdal.h:50,
 from gdal_test.cc:1:
/usr/include/ogr_core.h:79:28: error: expected '}' before end of line
/usr/include/ogr_core.h:79:28: error: expected declaration before end of line
configure: Install failure: compilation and/or linkage problems.
configure: error: GDALAllRegister not found in libgdal.
ERROR: configuration failed for package ‘rgdal’
* removing ‘/usr/lib/R/library/rgdal’
* restoring previous ‘/usr/lib/R/library/rgdal’

Regards,

Rich

___
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo


Re: [R-sig-Geo] rgdal compile confusion

2018-08-19 Thread Edzer Pebesma
please report the entire output you see when trying to install rgdal.

On 08/19/2018 08:14 PM, Rich Shepard wrote:
> On Sat, 11 Aug 2018, Rich Shepard wrote:
> 
>   When I update.packages() I'm told that the attempt ended with a
> non-zero error message:
> 
> trying URL 'https://ftp.osuosl.org/pub/cran/src/contrib/rgdal_1.3-4.tar.gz'
> Content type 'application/x-gzip' length 1664774 bytes (1.6 MB)
> ==
> downloaded 1.6 MB
> 
> Warning message:
> In install.packages(update[instlib == l, "Package"], l, contriburl =
> contriburl,  :
>   installation of package ‘rgdal’ had non-zero exit status
> 
>   The update to version 1.3-3 last May worked. What might be the reason the
> upgrade to 1.3-4 fails?
> 
>   R produces contradictory messages:
> 
> configure: C++11 support available
> configure: rgdal: 1.3-4
>   ...
> checking for gdal-config... /usr/bin/gdal-config
> checking gdal-config usability... yes
> configure: GDAL: 2.3.0
> checking C++11 support for GDAL >= 2.3.0... yes
> checking GDAL version >= 1.11.4... yes
> 
>   Looks OK, yes? But, immediately following is this:
> 
> In file included from /usr/include/gdal.h:45:0,
>  from gdal_test.cc:1:
> /usr/include/cpl_port.h:187:6: error: #error Must have C++11 or newer.
>  #    error Must have C++11 or newer.
>   ^
>   ...
> configure: Install failure: compilation and/or linkage problems.
> configure: error: GDALAllRegister not found in libgdal.
> ERROR: configuration failed for package ‘rgdal’
> * removing ‘/usr/lib/R/library/rgdal’
> * restoring previous ‘/usr/lib/R/library/rgdal’
> 
>  Yet configure found C++11 support for gdal and the version of the
> latter is
> greater than 1.11.4.
> 
> TIA,
> 
> Rich
> 
> ___
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo

-- 
Edzer Pebesma
Institute for Geoinformatics
Heisenbergstrasse 2, 48151 Muenster, Germany
Phone: +49 251 8333081

___
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo


Re: [R-sig-Geo] rgdal compile confusion

2018-08-19 Thread Rich Shepard

On Sat, 11 Aug 2018, Rich Shepard wrote:

  When I update.packages() I'm told that the attempt ended with a non-zero 
error message:

trying URL 'https://ftp.osuosl.org/pub/cran/src/contrib/rgdal_1.3-4.tar.gz'
Content type 'application/x-gzip' length 1664774 bytes (1.6 MB)
==
downloaded 1.6 MB

Warning message:
In install.packages(update[instlib == l, "Package"], l, contriburl = 
contriburl,  :
  installation of package ‘rgdal’ had non-zero exit status

  The update to version 1.3-3 last May worked. What might be the reason the
upgrade to 1.3-4 fails?

  R produces contradictory messages:

configure: C++11 support available
configure: rgdal: 1.3-4
  ...
checking for gdal-config... /usr/bin/gdal-config
checking gdal-config usability... yes
configure: GDAL: 2.3.0
checking C++11 support for GDAL >= 2.3.0... yes
checking GDAL version >= 1.11.4... yes

  Looks OK, yes? But, immediately following is this:

In file included from /usr/include/gdal.h:45:0,
 from gdal_test.cc:1:
/usr/include/cpl_port.h:187:6: error: #error Must have C++11 or newer.
 #error Must have C++11 or newer.
  ^
  ...
configure: Install failure: compilation and/or linkage problems.
configure: error: GDALAllRegister not found in libgdal.
ERROR: configuration failed for package ‘rgdal’
* removing ‘/usr/lib/R/library/rgdal’
* restoring previous ‘/usr/lib/R/library/rgdal’

 Yet configure found C++11 support for gdal and the version of the latter is
greater than 1.11.4.

TIA,

Rich

___
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo