[MacPorts] #42571: libpng headers are invalid with older versions of clang
#42571: libpng headers are invalid with older versions of clang ------------------------+-------------------------- Reporter: jeremyhu@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: libpng ------------------------+-------------------------- https://sourceforge.net/p/libpng/bugs/220/ {{{ /opt/local/include/libpng16/pngconf.h:379:26: error: token is not a valid binary operator in a preprocessor subexpression if __has_extension(attribute_unavailable_with_message) }}} This occurred when building gimp2 using the version of clang in the Xcode 3.2.6 for Snow Leopard: {{{ $ /usr/bin/clang --version Apple clang version 1.7 (tags/Apple/clang-77) (based on LLVM 2.9svn) Target: x86_64-apple-darwin10 Thread model: posix }}} For compatibility, please add: {{{ #ifndef __has_extension #define __has_extension(x) 0 #endif }}} -- Ticket URL: <https://trac.macports.org/ticket/42571> MacPorts <http://www.macports.org/> Ports system for OS X
#42571: libpng headers are invalid with older versions of clang -------------------------+-------------------------- Reporter: jeremyhu@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: libpng | -------------------------+-------------------------- Changes (by devans@…): * cc: devans@… (added) Comment: Confirming that this problem effects all versions of gimp2 (gimp2, gimp2-devel, gimp3-devel), gegl (gegl gegl-devel) and probably any dependent that includes <png.h>. Upstream patch in response to issue 220 can be found here: http://sourceforge.net/p/libpng/code/ci/dd6679dce8e03e8874ca758440b51c50d11d... -- Ticket URL: <https://trac.macports.org/ticket/42571#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#42571: libpng headers are invalid with older versions of clang -------------------------+-------------------------- Reporter: jeremyhu@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: haspatch Port: libpng | -------------------------+-------------------------- Changes (by ryandesign@…): * keywords: => haspatch * status: new => assigned Comment: Testing now; will commit shortly. -- Ticket URL: <https://trac.macports.org/ticket/42571#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#42571: libpng headers are invalid with older versions of clang -------------------------+-------------------------- Reporter: jeremyhu@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: fixed | Keywords: haspatch Port: libpng | -------------------------+-------------------------- Changes (by ryandesign@…): * status: assigned => closed * resolution: => fixed Comment: r117329 -- Ticket URL: <https://trac.macports.org/ticket/42571#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts