[MacPorts] #36214: Windowmaker @0.92.0 compile error png lib problem on Mac OS X 10.6.8 (Snow Leopard)
#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 Keywords: Windowmaker png | Port: Windowmaker -----------------------------+-------------------------------- When building Windowmaker: port -v install -s windowmaker the compile errors: {{{ make[2]: Entering directory `/opt/local_20120918/var/macports/build/_opt_local_20120918_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_windowmaker/windowmaker/work/WindowMaker-0.92.0/wrlib' /bin/sh ../libtool --mode=compile /usr/bin/llvm-gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I../src -I/opt/local/include -I/opt/local/include -pipe -O2 -arch x86_64 -c png.c /usr/bin/llvm-gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I../src -I/opt/local/include -I/opt/local/include -pipe -O2 -arch x86_64 -c png.c -fno-common -DPIC -o .libs/png.o png.c: In function 'RLoadPNG': png.c:100: error: dereferencing pointer to incomplete type make[2]: *** [png.lo] Error 1 }}} Note there is no pre-compiled binary for this port. Mac OS X 10.6.8 (Snow Leopard) -- Ticket URL: <https://trac.macports.org/ticket/36214> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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=... 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
#36214: windowmaker @0.92.0 compile error with libpng 1.5 --------------------------+-------------------------------- Reporter: martini@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: windowmaker | --------------------------+-------------------------------- Changes (by ryandesign@…): * keywords: Windowmaker png => * port: Windowmaker => windowmaker -- Ticket URL: <https://trac.macports.org/ticket/36214#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36214: windowmaker @0.92.0 compile error with libpng 1.5 --------------------------+-------------------------------- Reporter: martini@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: windowmaker | --------------------------+-------------------------------- Comment (by wolfgang.lux@…): I have been bitten by the just the same bug today. In order to fix WindowMaker, the following patch must be applied to wrlib/png.c: --- wrlib/png.c.orig 2004-10-12 20:22:04.000000000 +0200 +++ wrlib/png.c 2012-10-08 19:41:57.000000000 +0200 @@ -97,7 +97,10 @@ } RErrorCode = RERR_INTERNAL; - if (setjmp(png->jmpbuf)) { +#ifndef png_jmpbuf +# define png_jmpbuf(png) (png)->jmpbuf +#endif + if (setjmp(png_jmpbuf(png))) { fclose(f); png_destroy_read_struct(&png, &pinfo, &einfo); if (image) -- Ticket URL: <https://trac.macports.org/ticket/36214#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36214: windowmaker @0.92.0 compile error with libpng 1.5 --------------------------+-------------------------------- Reporter: martini@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: windowmaker | --------------------------+-------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: r99030 -- Ticket URL: <https://trac.macports.org/ticket/36214#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36214: windowmaker @0.92.0 compile error with libpng 1.5 --------------------------+-------------------------------- Reporter: martini@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: windowmaker | --------------------------+-------------------------------- Comment (by jean-philippe.humbert@…): It works for me. Thanks. -- Ticket URL: <https://trac.macports.org/ticket/36214#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts