gcc -O2 -fno-strength-reduce -fno-strict-aliasing -I.. -I../.. -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DUSE_PNG -DUSE_XPM -I/usr/include/X11 -I/usr/include/X11 -DNFSS -DLATEX2E_GRAPHICS -DDVIPS -DI18N -DFIG2DEV_LIBDIR=/usr/share/fig2dev -DFIG2DEV_LIBDIR_STR=\"/usr/share/fig2dev\" -DBITMAPDIR=\"/usr/share/xfig/bitmaps\" -c -o readpng.o readpng.c readpng.c: In function ‘read_png’: readpng.c:65:9: error: dereferencing pointer to incomplete type readpng.c:81:17: error: dereferencing pointer to incomplete type readpng.c:82:38: error: dereferencing pointer to incomplete type readpng.c:86:17: error: dereferencing pointer to incomplete type readpng.c:88:39: error: dereferencing pointer to incomplete type make[2]: *** [readpng.o] Error 1
Created attachment 264093 [details, diff] fix not upstreamed, please do it
Patch applied in 3.2.5d-r1 and upstreamed. Thank you Alexis!