Fails to compile on CentOS/RHEL 5:
Advanced PNG optimization program
Status: Beta
Brought to you by:
cosmin
Build Error:
gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -I../cexcept -I../opngreduc -I../pngxtern -o optim.o optim.c
optim.c: In function 'opng_print_fsize_ratio':
optim.c:224: error: storage size of 'ratio' isn't known
optim.c:229: warning: implicit declaration of function 'opng_ullratio_to_factor_string'
optim.c:224: warning: unused variable 'ratio'
make[1]: *** [optim.o] Error 1
This was after applying https://sourceforge.net/p/optipng/patches/7/ because otherwise it failed earlier.
Diff:
Fixed in version 0.7.6.