Skip to content

Unexpected configure error following recent rgeos release?

1 message · Roger Bivand

#
Dear Carl,

Thanks for reporting this issue. Note that I did post early in September 
on https://stat.ethz.ch/pipermail/r-sig-geo/2018-September/026842.html 
about the possibly breaking changes in this release (not breaking 
configure, but changing exception handling to try to free memory properly 
on exception (topology exceptions being common).

I think that the underlying issue is as seen in:

https://r-forge.r-project.org/scm/viewvc.php/pkg/configure.ac?root=rgeos&r1=553&r2=574

that is one change in mid August caused by chaos in the GEOS RCs (the 
version string started including the RC? tag -

https://trac.osgeo.org/geos/ticket/917

which also led to the second change to rgeos/configure.ac, to use 
geos-config --cclibs instead of --libs (to avoid the broken version 
numbers). There was no problem on CRAN's Debian (testing) on submission. I 
assume that this is a GEOS versioning issue, so I've committed a patch to 
R-Forge (r580) to continue to use geos-config --libs for GEOS < 3.7.0, and 
only use --cclibs >= 3.7.0. Either wait for R-Forge to generate a new 
tarball (tomorrow Monday for you if in California, watching 
https://r-forge.r-project.org/R/?group_id=602 for rev: 580, then
install.packages("rgeos", repos="http://R-Forge.R-project.org")), or 
download configure, configure.ac and insert into the 0.4-1 tarball if 
you can test this immediately. I don't have an installed GEOS 3.5.1 (the 
latest release for stretch, I think), so I can't check the output of 
geos-config --cclibs.

sf has slightly different configure.ac code for setting up GEOS shared 
objects, and uses --clibs and --static-clibs, not --libs or --cclibs.

The underlying problem was GEOS releasing RC bundles with broken 
versioning strings that added RC? to version strings and shared object 
version strings. Released GEOS seems to be OK, but checking against betas 
and RCs is normal practice to secure forward compatibility.

Hope this helps,

Roger
On Mon, 22 Oct 2018, Carl Boettiger wrote: