[MacPorts] #44323: gnutls @3.3.5: support c89 (error: comma at end of enumerator list)

MacPorts noreply at macports.org
Sun Jul 13 21:00:31 PDT 2014


#44323: gnutls @3.3.5: support c89 (error: comma at end of enumerator list)
--------------------------+----------------------------
 Reporter:  ryandesign@…  |      Owner:  mschamschula@…
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.3.1
 Keywords:                |       Port:  gnutls
--------------------------+----------------------------
 Compiling gloox on Snow Leopard with its gcc-4.2 fails:

 {{{
 /opt/local/include/gnutls/gnutls.h:172: error: comma at end of enumerator
 list
 /opt/local/include/gnutls/gnutls.h:186: error: comma at end of enumerator
 list
 /opt/local/include/gnutls/gnutls.h:244: error: comma at end of enumerator
 list
 /opt/local/include/gnutls/gnutls.h:295: error: comma at end of enumerator
 list
 /opt/local/include/gnutls/gnutls.h:394: error: comma at end of enumerator
 list
 /opt/local/include/gnutls/gnutls.h:434: error: comma at end of enumerator
 list
 /opt/local/include/gnutls/gnutls.h:485: error: comma at end of enumerator
 list
 /opt/local/include/gnutls/gnutls.h:599: error: comma at end of enumerator
 list
 /opt/local/include/gnutls/gnutls.h:618: error: comma at end of enumerator
 list
 /opt/local/include/gnutls/gnutls.h:668: error: comma at end of enumerator
 list
 /opt/local/include/gnutls/gnutls.h:688: error: comma at end of enumerator
 list
 /opt/local/include/gnutls/gnutls.h:722: error: comma at end of enumerator
 list
 /opt/local/include/gnutls/gnutls.h:1598: error: comma at end of enumerator
 list
 /opt/local/include/gnutls/gnutls.h:1937: error: comma at end of enumerator
 list
 /opt/local/include/gnutls/gnutls.h:2085: error: comma at end of enumerator
 list
 }}}

 It seems that having a comma at the end of an enumerator list is legal in
 c99 (which is the default for clang) but not with c89 (which is the
 default for gcc-4.2). So one fix would be to use c99. However, I think
 it's unreasonable to force all ports that want to use gnutls to switch to
 c99. Therefore I think gnutls should be fixed to support c89 again, as
 gnutls 3.1.x did before.

 I'll work on a patch for this, and an upstream bug report for the
 developers.

-- 
Ticket URL: <https://trac.macports.org/ticket/44323>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list