Opened 9 years ago

Closed 9 years ago

#32564 closed update (duplicate)

Provide port for libpng is too old for Lion and causes conflicts because of confusion with headers of 1.5.4 distributed with the Lion SDK

Reported by: nelson.ferreira@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: libpng

Description

When compiling some software less pedantic about the order of -I (and which include /usr/X11/include before /opt/local/include) libpng will fail because the one include at /Developer/SDKs/MacOSX10.7.sdk/usr/X11/include/png.h:364:#define PNG_LIBPNG_VER_STRING "1.5.4"

and libpng does hard verify of caller passing that define against actual encoded lib value, which when dyld links the mac ports libpng 1.4.8 fails...

Change History (1)

comment:1 Changed 9 years ago by ryandesign (Ryan Schmidt)

Port: libpng added
Resolution: duplicate
Status: newclosed
Type: enhancementupdate

Within MacPorts ports, we don't want to ever use anything in /usr/X11 so any port doing so needs to be fixed.

If you're building software outside of MacPorts, then it would be up to you (or up to the developers of the software in question) to ensure the software either uses each particular MacPorts dependency completely, or doesn't use it at all, not some mix of the two as you seem to be experiencing.

The request to upgrade libpng to 1.5.x is #28385. It explains why we've been waiting awhile before updating to this version.

Note: See TracTickets for help on using tickets.