id summary reporter owner description type status priority milestone component version resolution keywords cc port 44323 gnutls @3.3.5: support c89 (error: comma at end of enumerator list) ryandesign Schamschula "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." defect closed Normal ports 2.3.1 fixed haspatch cooljeanius gnutls