On Sat, 25 Jun 2016, dirt bag wrote:
gcc -O3 -Wall -DDOPNG -I/usr/include -I/usr/include -DDOJPEG -I/usr/include -DDOTIFF
-DUSE_TILED_TIFF_BOTLEFT_FIX -I/usr/include -DDOPDS -DUSLEEP -DLINUX
-DSYSCONFDIR=\"/etc\" -DXVEXECPATH=\"/usr/X11R6//lib/\" -c xvpng.c
xvpng.c: In function ‘CreatePNGW’:
xvpng.c:97:56: error: ‘Z_NO_COMPRESSION’ undeclared (first use in this function)
Man, xv. A blast from the past. I used to love that program.
A quick look around the net suggests that libpng versions above 1.5 don't link to
zlib.h, even if you have it installed -- so programs that programs that think it does will
crump. You have to manually add the include.
See, for instance: