#4 Compilation error (libpng15)

v1.0 (example)
closed-fixed
None
5
2013-06-03
2013-03-08
Lazy_Kent
No

Failed compile against libpng15.

gcc -I.. -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -c pngrecolor.c
pngrecolor.c: In function 'read_png':
pngrecolor.c:188:9: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
gcc -o pngrecolor pngrecolor.o -lpng -lz -lm
gcc -I.. -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -c pngstrip.c
pngstrip.c: In function 'rewrite_png':
pngstrip.c:294:44: error: 'Z_BEST_COMPRESSION' undeclared (first use in this function)
pngstrip.c:294:44: note: each undeclared identifier is reported only once for each function it appears in
pngstrip.c:112:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
make[1]: *** [pngstrip.o] Error 1

Discussion

  • Brian Lindholm

    Brian Lindholm - 2013-06-03

    Yep. I caught this one also, during earlier testing on Cygwin. Now fixed in littleutils-1.0.28.

     
  • Brian Lindholm

    Brian Lindholm - 2013-06-03
    • status: open --> closed-fixed
    • assigned_to: Brian Lindholm
    • Group: --> v1.0 (example)
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks