Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 355065

Summary: games-puzzle/pingus-0.7.3: compilation fails with media-libs/libpng-1.5.x
Product: Gentoo Linux Reporter: Lars Wendler (Polynomial-C) <polynomial-c>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 354479    
Attachments: pingus-0.7.3-libpng15.patch

Description Lars Wendler (Polynomial-C) gentoo-dev 2011-02-15 17:48:41 UTC
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
Comment 1 Lars Wendler (Polynomial-C) gentoo-dev 2011-02-15 17:49:49 UTC
Created attachment 262629 [details, diff]

Patch from NetBSD people.
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2011-02-15 17:58:05 UTC
in portage.  thanks for the bug report and patch submission.