[MacPorts] #53413: rsgislib 2.1.20140825_1 +python27 build failure

MacPorts noreply at macports.org
Wed May 3 17:34:41 UTC 2017

#53413: rsgislib 2.1.20140825_1 +python27 build failure
  Reporter:  ForTozs   |      Owner:  Veence
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.4.0
Resolution:            |   Keywords:
      Port:  rsgislib  |

Comment (by kencu):

 I'll start by saying I know nothing about rsgislib or GEOS, but I do know
 how to often build things on MacPorts that won't initially build.

 The error in your build file seems to be this:
 error: calling a protected constructor of class
 6656    :info:build                 this->geomFactory = new
 6657    :info:build                                         ^
 6658    :info:build /opt/local/include/geos/geom/GeometryFactory.h:453:2:
 note: declared protected here
 6659    :info:build         GeometryFactory(const PrecisionModel *pm);
 6660    :info:build         ^
 6661    :info:build
 error: calling a protected destructor of class
 6662    :info:build                 delete geomFactory;
 6663    :info:build                        ^
 6664    :info:build /opt/local/include/geos/geom/GeometryFactory.h:474:10:
 note: declared protected here
 6665    :info:build         virtual ~GeometryFactory();
 6666    :info:build                 ^
 6667    :info:build 2 errors generated.
 6668    :info:build make[2]: ***
 Error 1

 And this issue <https://github.com/osmcode/libosmium/issues/168> suggests
 that GeometryFactory changed in GEOS version 3.6.0 in a way that broke
 some other things with what looks like a similar error, and warns there
 may not be a fix coming for this.

 So one thing that would be fairly easy to try and would not take much time
 would be to roll back to a version of GEOS < 3.6.0, and if that installs
 for you without issue, perhaps rsgislib will build against that older GEOS
 for you, while you wait to see if rsgislib gets fixed or updated someday.

 If you already have older versions of GEOS installed on your system, you
 can `sudo port activate` the version you want.

 If not, you would have to install and then roll back a MacPorts git repo
 to that commit, which looks to be a commit somewhere around this one:
 summary geos: bump to 3.6.0
 previous 4fa361776dbbd53e1d275e4cf0a7625fb0ba1bca science/geos/Portfile
 I hope this is helpful.

Ticket URL: <https://trac.macports.org/ticket/53413#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS

More information about the macports-tickets mailing list