[MacPorts] #54218: gmt4-4.5.14_4+gdal fails to compile

MacPorts noreply at macports.org
Wed May 24 10:27:54 UTC 2017


#54218: gmt4-4.5.14_4+gdal fails to compile
-------------------------+-------------------
  Reporter:  EJFielding  |      Owner:
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.1
Resolution:              |   Keywords:
      Port:  gmt4        |
-------------------------+-------------------

Comment (by ryandesign):

 The log says:

 {{{
 :info:build In file included from /opt/local/include/gdal.h:42:
 :info:build /opt/local/include/cpl_port.h:126:99: error: invalid token at
 start of a preprocessor expression
 :info:build #if defined(GDAL_COMPILATION) && defined(__sun__) &&
 __STDC_VERSION__ >= 201112L && _XOPEN_SOURCE < 600
 }}}

 So gdal's header assumes `_XOPEN_SOURCE` is a number. But gmt4's source
 files define it to empty: `#define _XOPEN_SOURCE`. As far as I can tell,
 gmt4 is wrong and this has already been fixed in gmt4 @4.5.15. See #54223
 and http://gmt.soest.hawaii.edu/issues/817.

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


More information about the macports-tickets mailing list