[MacPorts] #71734: libkml fails to build with current expat: /opt/local/include/expat.h:135: error: comma at end of enumerator list

MacPorts noreply at macports.org
Fri Jan 3 20:48:01 UTC 2025


#71734: libkml fails to build with current expat: /opt/local/include/expat.h:135:
error: comma at end of enumerator list
---------------------------+------------------------
  Reporter:  barracuda156  |      Owner:  ryandesign
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.10.5
Resolution:                |   Keywords:
      Port:  expat         |
---------------------------+------------------------

Comment (by ryandesign):

 Replying to [ticket:71734 barracuda156]:
 > {{{
 > /opt/local/include/expat.h:135: error: comma at end of enumerator list
 > }}}

 A comma at the end of an enumerator list is legal in C99 but wasn't in C89
 which your compiler defaults to. Expat bills itself as a C99 library. If
 this is the only C99ism in the headers we could easily remove the trailing
 comma(s) and I think the developer might accept such a fix since it's
 simple. If it's too hard to restore C89 compatibility then projects using
 expat need to ensure they use a `-std=` flag to request C99 mode or later.

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


More information about the macports-tickets mailing list