[MacPorts] #36214: Windowmaker @0.92.0 compile error png lib problem on Mac OS X 10.6.8 (Snow Leopard)
MacPorts
noreply at macports.org
Tue Sep 18 13:33:39 PDT 2012
#36214: Windowmaker @0.92.0 compile error png lib problem on Mac OS X 10.6.8 (Snow
Leopard)
--------------------------+--------------------------------
Reporter: martini@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Resolution: | Keywords: Windowmaker png
Port: Windowmaker |
--------------------------+--------------------------------
Comment (by martini@…):
I found a workaround.[[BR]]
The problem is caused by a change in the png struct png_info which was
removed in modern versions of libpng.[[BR]]
Documented in: http://stackoverflow.com/questions/10507610/libpng-1-5-10
-error-dereferencing-pointer-to-incomplete-type [[BR]]
{{{
The png_info struct was removed from the png.h in 1.5.0 and now you should
use this pointer with the png_get_* and png_set_* functions.
The png_info structure is designed to provide information about the PNG
file. At one time, the fields of png_info were intended to be directly
accessible to the user. However, this tended to cause problems with
applications using dynamically loaded libraries, and as a result a set of
interface functions for png_info (the png_get_*() and png_set_*()
functions) was developed, and direct access to the png_info fields was
deprecated..
}}}
So when libpng was upgraded to @1.5.12 all ports that depend on png_info
broke. I found that libpng Revision 96302 is at version @1.4.12 which
still has png_info.
I downloaded the Portfile from
https://trac.macports.org/browser/trunk/dports/graphics/libpng/Portfile?rev=96302
and build the old version of libpng and then windowmaker compiles just
fine.[[BR]]
Windomaker should be patched in macports to account for the changes in
1.5.12, and probably should be changed in the original source as
well.[[BR]]
--
Ticket URL: <https://trac.macports.org/ticket/36214#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list