i686-pc-linux-gnu-g++ -o src/screenshot.o -c -march=barcelona -O2 -pipe -D_GNU_SOURCE=1 -D_REENTRANT -I. -Isrc -I/usr/include/SDL -I. -Isrc src/screenshot.cpp src/screenshot.cpp: In static member function 'static void Screenshot::save_png(const std::string&, uint8_t*, int, int)': src/screenshot.cpp:162:7: error: invalid use of incomplete type 'struct png_struct' /usr/include/png.h:803:16: error: forward declaration of 'struct png_struct' src/screenshot.cpp: In static member function 'static void Screenshot::save_ppm(const std::string&, uint8_t*, int, int)': src/screenshot.cpp:128:65: warning: ignoring return value of 'size_t fwrite(const void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result scons: *** [src/screenshot.o] Error 1
Created attachment 262629 [details, diff] pingus-0.7.3-libpng15.patch Patch from NetBSD people.
in portage. thanks for the bug report and patch submission.