[MacPorts] #55748: rsgislib +python27 2.1.20140825_3: build failure, update problems with Boost

MacPorts noreply at macports.org
Thu Jan 25 01:23:07 UTC 2018


#55748: rsgislib +python27 2.1.20140825_3: build failure, update problems with
Boost
---------------------+----------------------
 Reporter:  ForTozs  |      Owner:
     Type:  defect   |     Status:  new
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:  2.4.2
 Keywords:           |       Port:  rsgislib
---------------------+----------------------
 I just wanted to report that rsgislib currently fails to build. I'm
 probably wasting space here, but this was the error:

 {{{
 :info:build [ 17%] Building CXX object
 src/CMakeFiles/rsgis_utils.dir/utils/RSGISPlotPolygonsCSVParse.cpp.o
 :info:build cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_rsgislib/rsgislib/work/9135d61/src
 && /usr/bin/clang++  -Drsgis_utils_EXPORTS -I/opt/local
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_rsgislib/rsgislib/work/9135d61/src
 -pipe -Os -stdlib=libc++ -Wall -Wpointer-arith -Wcast-align -Wcast-qual
 -Wredundant-decls -Wno-long-long -DNDEBUG -arch x86_64 -mmacosx-version-
 min=10.13 -fPIC   -o
 CMakeFiles/rsgis_utils.dir/utils/RSGISPlotPolygonsCSVParse.cpp.o -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_rsgislib/rsgislib/work/9135d61/src/utils/RSGISPlotPolygonsCSVParse.cpp
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_rsgislib/rsgislib/work/9135d61/src/utils/RSGISGEOSFactoryGenerator.cpp:34:27:
 error: calling a protected constructor of class
 'geos::geom::GeometryFactory'
 :info:build                 this->geomFactory = new
 geos::geom::GeometryFactory(this->pm);
 :info:build                                         ^
 :info:build /opt/local/include/geos/geom/GeometryFactory.h:453:2: note:
 declared protected here
 :info:build         GeometryFactory(const PrecisionModel *pm);
 :info:build         ^
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_rsgislib/rsgislib/work/9135d61/src/utils/RSGISGEOSFactoryGenerator.cpp:59:10:
 error: calling a protected destructor of class
 'geos::geom::GeometryFactory'
 :info:build                 delete geomFactory;
 :info:build                        ^
 :info:build /opt/local/include/geos/geom/GeometryFactory.h:474:10: note:
 declared protected here
 :info:build         virtual ~GeometryFactory();
 }}}

 I'm trying to be more self-sufficient on MacPorts, so I tried to make my
 own patch. I directed the port to rsgislib version 3.4.9. With this I seem
 to be encountering some kind of problem with Boost, which seems to be a
 common problem recently, but I'm not sure how to fix the problem. My build
 failure happens at the very end (100%) and looks like this:

 {{{
 RSGISCmdHistoCube.cpp.o
 -Wl,-rpath,/opt/local/var/macports/build/_opt_local_var_macports_sources
 _rsync.macports.org_release_tarballs_ports_gis_rsgislib/rsgislib/work/rsgislib-3.4.9/src
 librsgis_calib.1.1.0.dylib
 librsgis_classify.1.1.0.dylib librsgis_filter.1.0.0.dylib
 librsgis_modeling.1.1.0.dylib librsgis_radar.1.1.1.dylib
 librsgis_registration.1.2.0.dylib librsgis_segmentation.1.0.0.dylib
 librsgis_histocube.1.0.0.dylib -L/opt/local -
 lboost_filesystem-mt -lboost_system-mt -lboost_date_time-mt -L/opt/local
 -lgdal -L/opt/local -lgsl -lgslcblas -
 L/opt/local -lCGAL -L/opt/local -lgeos -L/opt/local -lmuparser
 -L/opt/local -lhdf5 -lhdf5_hl -lhdf5_cpp -L/opt/local -
 lgmp -L/opt/local -lmpfr -L/opt/local -lkea -L/opt/local
 -lboost_filesystem-mt -lboost_system-mt -lboost_date_time-mt
  librsgis_vec.2.2.0.dylib librsgis_rastergis.2.0.0.dylib
 librsgis_img.3.0.0.dylib librsgis_geom.1.1.0.dylib
 librsgis_utils.1.1.0.dylib librsgis_maths.1.1.0.dylib
 librsgis_datastruct.1.1.0.dylib librsgis_commons.1.3.0.dylib -lgsl -
 lgslcblas -lCGAL -lgeos -lmuparser -lkea -lxerces-c -L/opt/local
 -lboost_filesystem-mt -lboost_system-mt -
 lboost_date_time-mt -lgdal -lhdf5 -lhdf5_hl -lhdf5_cpp -lgmp -lmpfr

 :info:build Undefined symbols for architecture x86_64:
 :info:build   "boost::gregorian::greg_month::get_month_map_ptr()",
 referenced from:
 :info:build       unsigned short
 boost::date_time::month_str_to_ushort<boost::gregorian::greg_month>
     (std::__1::basic_string<char, std::__1::char_traits<char>,
 std::__1::allocator<char> > const&) in
     RSGISCmdHistoCube.cpp.o
 :info:build ld: symbol(s) not found for architecture x86_64
 }}}

 I am not able to figure what is wrong here. It seems to be calling
 -lboost_date_time-mt, but is unable to link. This would be a great port to
 have up again, as py6S depends on it. It would also be valuable to me to
 see how this port is fixed. Thanks.

--
Ticket URL: <https://trac.macports.org/ticket/55748>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list