On Sat, 25 Jun 2016, dirt bag wrote:
[snip]
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 -L/usr/X11R6/lib -DMGCSFXDIR=\"/usr/X11R6//lib/\" -DSYSCONFDIR=\"/etc\" -DXVEXECPATH=\"/usr/X11R6//lib/\" -c xvpng.c
xvpng.c: In function ‘CreatePNGW’:
[snip]k
xvpng.c:97:56: error: ‘Z_NO_COMPRESSION’ undeclared (first use in this function)
[snip]
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:
https://trac.osgeo.org/mapserver/ticket/4033
https://github.com/PixarAnimationStudios/OpenSubdiv/issues/261
https://sourceforge.net/p/pngnq/bugs/13/
billo
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://lists.fedoraproject.org/admin/lists/users@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org