[MacPorts] #54203: gdal @2.2.0: broken on non-C++11 setups

MacPorts noreply at macports.org
Fri May 19 21:36:59 UTC 2017


#54203: gdal @2.2.0: broken on non-C++11 setups
--------------------+--------------------
 Reporter:  mojca   |      Owner:  Veence
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:  gdal
--------------------+--------------------
 gdal 2.2.0 is broken on non-C++11 setups, but the compilation should
 theoretically still work with C++03.

 The most important part would be to pass `--without-cpp11` to
 `configure.args` when not using C++11. The way to check that is probably
 by testing for stdlib and declare C++11 support non-existent when it's not
 `libc++`, even if that's not exactly correct.

 Once you do that, one of the major issues becomes the dance around
 `isnan()` and `isinf()`. The master branch / trunk works much better in
 this respect due to addition of
 {{{
 #!C++
 #elif defined(__cplusplus) && defined(HAVE_STD_IS_NAN) && HAVE_STD_IS_NAN
 }}}
 in `port/cpl_port.h` and on 10.7 it leads to successful compilation. 10.6
 would probably need a newer compiler, I didn't test yet.

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


More information about the macports-tickets mailing list