make test does not work on CentOS 5 (v. 0.7.6)
Advanced PNG optimization program
Status: Beta
Brought to you by:
cosmin
This is the error:
+ make test 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' LDFLAGS=
cd src/optipng && \
make test && \
cd ../..
make[1]: Entering directory `/builddir/build/BUILD/optipng-0.7.6/src/optipng'
gcc -c -I. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -o test/bitset_test.o test/bitset_test.c
gcc -o test/bitset_test \
test/bitset_test.o bitset.o
gcc -c -I. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -o test/ratio_test.o test/ratio_test.c
test/ratio_test.c:20: error: expected ‘)’ before ‘num’
test/ratio_test.c: In function ‘run_tests’:
test/ratio_test.c:65: warning: implicit declaration of function ‘test’
make[1]: Leaving directory `/builddir/build/BUILD/optipng-0.7.6/src/optipng'
make[1]: *** [test/ratio_test.o] Error 1
make: *** [test] Error 2
RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.58406 (%check)
Bad exit status from /var/tmp/rpm-tmp.58406 (%check)
A full build log is currently available at:
https://kojipkgs.fedoraproject.org//work/tasks/7303/13597303/build.log