Re: rgdal compile confusion

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: rgdal compile confusion

Rich Shepard
On Sat, 11 Aug 2018, Roger Bivand wrote:

> The gcc you have is ancient; I would guess that your GDAL was not built with
> it.

Roger,

   On Slackware everything is built from source other than a few applications
that are repacked by the SlackBuild.org maintainers from .deb or .rpm
packages.

> What happens if you install GDAL from source? Very likely the decision in
> GDAL to go with CXX11 was premature, but tardy platforms need forcing too
> (typical problem on CentOS and RHEL too).

   Slackware stays back from the bleeding edge and upgrades slowly so the
distribution remains stable.

> Could you post on R-sig-geo - there may be someone there in your
> situation.

   Moved to the mail list with this response.

Thanks,

Rich

---------- Original message -----------

>>  Please share your thoughts on what might be going on here.
>>
>> * 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<CPLXMLNode,
>> CPLXMLTreeCloserDeleter>
>>                                               ^
>> /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<CPLXMLNode,
>> CPLXMLTreeCloserDeleter>
>>                                               ^
>> /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/RtmpVGIz3Q/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
>>
>>  Installed here are:
>> gcc-5.5.0-i586-1_slack14.2
>> gcc-g++-5.5.0-i586-1_slack14.2
>> gcc-gfortran-5.5.0-i586-1_slack14.2
>> gcc-gnat-5.5.0-i586-1_slack14.2
>> gcc-go-5.5.0-i586-1_slack14.2
>> gcc-java-5.5.0-i586-1_slack14.2
>> gcc-objc-5.5.0-i586-1_slack14.2
>> gccmakedep-1.0.3-noarch-1
>>
>> and
>>
>> gdal-2.3.0-i586-1_SBo
>>
>> Regards,
>>
>> Rich

_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Reply | Threaded
Open this post in threaded view
|

Re: rgdal compile confusion

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
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Reply | Threaded
Open this post in threaded view
|

Re: rgdal compile confusion

edzer
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
> [hidden email]
> 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
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Reply | Threaded
Open this post in threaded view
|

Re: rgdal compile confusion

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<CPLXMLNode, CPLXMLTreeCloserDeleter>
                                                ^
/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<CPLXMLNode, CPLXMLTreeCloserDeleter>
                                                ^
/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
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Reply | Threaded
Open this post in threaded view
|

Re: rgdal compile confusion

Roger Bivand
Administrator
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_ptr<CPLXMLNode,
> CPLXMLTreeCloserDeleter>
>                                               ^
> /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<CPLXMLNode,
> CPLXMLTreeCloserDeleter>
>                                               ^
> /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
> [hidden email]
> 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: [hidden email]
http://orcid.org/0000-0003-2392-6140
https://scholar.google.no/citations?user=AWeghB0AAAAJ&hl=en
_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Roger Bivand
Department of Economics
Norwegian School of Economics
Helleveien 30
N-5045 Bergen, Norway
Reply | Threaded
Open this post in threaded view
|

Re: rgdal compile confusion

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-8        LC_COLLATE=C
  [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

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

   gdal is built from source using the SlackBuiilds.org
<https://www.slackbuilds.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<CPLXMLNode, CPLXMLTreeCloserDeleter>
                                                ^
/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<CPLXMLNode, CPLXMLTreeCloserDeleter>
                                                ^
/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
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Reply | Threaded
Open this post in threaded view
|

Re: rgdal compile confusion

Shaun Walbridge
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&d=DwIGaQ&c=n6-cguzQvX_tUIrZOS_4Og&r=fCPRb7QX-vd5bnO9gIJHCiX852SVUtyYX--xtCKtpfk&m=vscOV_5PwQCvnbNef9uvIzp5QCsmoJ43pg4dGDIoXfM&s=FGqho_qYJ7kdidW3uV6ru6kZrzlMbMBU4ujJC0cq4NY&e=

With the line "The update to version 2.3.0 broke lots of dependent packages that don't use c++11. Sorry!"

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

On 8/20/18, 11:28 AM, "R-sig-Geo on behalf of Rich Shepard" <[hidden email] on behalf of [hidden email]> wrote:

    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-8        LC_COLLATE=C
      [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
   
    loaded via a namespace (and not attached):
    [1] compiler_3.5.1 tools_3.5.1    tcltk_3.5.1
   
       gdal is built from source using the SlackBuiilds.org
    <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.slackbuilds.org_&d=DwIGAA&c=n6-cguzQvX_tUIrZOS_4Og&r=YFaRLkcUCdDkLrpTbNOUV9J1CwYBCTMwgm5tdQkRSm4&m=wxTHWsd_1Dg_NP86zMVoYKF9rSG2FjVW_DFJf3-svAU&s=CGzyyiturMPUgBqnwm8a991UlrEj6v7Greh6EUG9L1U&e=> 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://urldefense.proofpoint.com/v2/url?u=https-3A__ftp.osuosl.org_pub_cran_src_contrib_rgdal-5F1.3-2D4.tar.gz&d=DwIGAA&c=n6-cguzQvX_tUIrZOS_4Og&r=YFaRLkcUCdDkLrpTbNOUV9J1CwYBCTMwgm5tdQkRSm4&m=wxTHWsd_1Dg_NP86zMVoYKF9rSG2FjVW_DFJf3-svAU&s=FgWPmtd9KO4To56icX1JJSQCZ8DGlUHxUCdkHjzY7X0&e='
    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<CPLXMLNode, CPLXMLTreeCloserDeleter>
                                                    ^
    /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<CPLXMLNode, CPLXMLTreeCloserDeleter>
                                                    ^
    /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
    [hidden email]
    https://urldefense.proofpoint.com/v2/url?u=https-3A__stat.ethz.ch_mailman_listinfo_r-2Dsig-2Dgeo&d=DwIGAA&c=n6-cguzQvX_tUIrZOS_4Og&r=YFaRLkcUCdDkLrpTbNOUV9J1CwYBCTMwgm5tdQkRSm4&m=wxTHWsd_1Dg_NP86zMVoYKF9rSG2FjVW_DFJf3-svAU&s=jvOPSfwlAz48alb_wKku-UEk-ob5pOUZ5WHG6BIgn1w&e=
   


_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Reply | Threaded
Open this post in threaded view
|

Re: rgdal compile confusion [RESOLVED]

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&d=DwIGaQ&c=n6-cguzQvX_tUIrZOS_4Og&r=nxHWzsbFn4X_N0ruafqevZE4LSBsSvWC_0wkjR1NVTY&m=ATemW5xbQSNOMLNPRJ7Qhs2z8VgsMWup3KQpGwj65HU&s=V_lu-cvt5T7I-SaxG-5K3zvdqiCDT8vQ-VDgV0r4_Ak&e=

> 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
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo