Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 308651 - games-action/extreme-tuxracer fails to build with libpng14
Summary: games-action/extreme-tuxracer fails to build with libpng14
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: libpng-1.4
  Show dependency tree
 
Reported: 2010-03-09 14:27 UTC by Ai Locke Shinseiko (Wizzleby)
Modified: 2010-03-09 18:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
extreme-tuxracer-libpng14.patch (extreme-tuxracer-libpng14.patch,1.60 KB, patch)
2010-03-09 15:31 UTC, Ai Locke Shinseiko (Wizzleby)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ai Locke Shinseiko (Wizzleby) 2010-03-09 14:27:17 UTC
The specific error is: 
ppgltk/images/png_reader.cpp: In constructor ‘pp::ReaderPNG::ReaderPNG(const char*)’:
ppgltk/images/png_reader.cpp:80: error: ‘int_p_NULL’ was not declared in this scope
ppgltk/images/png_reader.cpp:117: error: ‘png_infopp_NULL’ was not declared in this scope
ppgltk/images/png_reader.cpp:35: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
ppgltk/images/png_reader.cpp: In constructor ‘pp::ReaderPNG::ReaderPNG(const char*)’:
ppgltk/images/png_reader.cpp:35: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
ppgltk/images/png_reader.cpp: In constructor ‘pp::ReaderPNG::ReaderPNG(const char*)’:
ppgltk/images/png_reader.cpp:35: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
make[2]: *** [png_reader.o] Error 1
Comment 1 Ai Locke Shinseiko (Wizzleby) 2010-03-09 15:31:31 UTC
Created attachment 222839 [details, diff]
extreme-tuxracer-libpng14.patch

Patch works on both stable and ~arch versions, compiles against libpng12 and libpng14
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-03-09 18:30:50 UTC
+  09 Mar 2010; Samuli Suominen <ssuominen@gentoo.org>
+  extreme-tuxracer-0.5_beta.ebuild,
+  +files/extreme-tuxracer-0.5_beta-libpng14.patch:
+  Fix building with libpng14 wrt #308651 by Locke Shinseiko (Wizzleby).