[ 81%] Building CXX object src/osgPlugins/png/CMakeFiles/osgdb_png.dir/ReaderWriterPNG.o /var/tmp/portage/dev-games/openscenegraph-2.8.2/work/OpenSceneGraph-2.8.2/src/osgPlugins/png/ReaderWriterPNG.cpp: In member function ‘osgDB::ReaderWriter::ReadResult ReaderWriterPNG::readPNGStream(std::istream&) const’: /var/tmp/portage/dev-games/openscenegraph-2.8.2/work/OpenSceneGraph-2.8.2/src/osgPlugins/png/ReaderWriterPNG.cpp:176: error: ‘png_check_sig’ was not declared in this scope /var/tmp/portage/dev-games/openscenegraph-2.8.2/work/OpenSceneGraph-2.8.2/src/osgPlugins/png/ReaderWriterPNG.cpp:227: error: ‘png_set_gray_1_2_4_to_8’ was not declared in this scope make[2]: *** [src/osgPlugins/png/CMakeFiles/osgdb_png.dir/ReaderWriterPNG.o] Error 1 make[1]: *** [src/osgPlugins/png/CMakeFiles/osgdb_png.dir/all] Error 2 make: *** [all] Error 2 * ERROR: dev-games/openscenegraph-2.8.2 failed: * Make failed! * * Call stack: * ebuild.sh, line 48: Called src_compile * environment, line 3324: Called cmake-utils_src_compile * environment, line 921: Called _execute_optionaly 'src_compile' * environment, line 409: Called enable_cmake-utils_src_compile * environment, line 1292: Called cmake-utils_src_make * environment, line 940: Called die * The specific snippet of code: * emake "$@" || die "Make failed!"; * * If you need support, post the output of 'emerge --info =dev-games/openscenegraph-2.8.2', * the complete build log and the output of 'emerge -pqv =dev-games/openscenegraph-2.8.2'. * The complete build log is located at '/var/tmp/portage/dev-games/openscenegraph-2.8.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-games/openscenegraph-2.8.2/temp/environment'. * S: '/var/tmp/portage/dev-games/openscenegraph-2.8.2/work/OpenSceneGraph-2.8.2' >>> Failed to emerge dev-games/openscenegraph-2.8.2 There's a patch from PLD Linux available (see URL) but since I get segfaults in flightgear because it cannot load any png pictures I'm not sure the patch is sane. Reproducible: Always Steps to Reproduce:
Created attachment 221987 [details] build.log
The patch was bogus... missing ! in the png_sig_cmp so the logic was reverse. Applied a patch form Arch Linux instead. + 11 Mar 2010; Samuli Suominen <ssuominen@gentoo.org> + openscenegraph-2.8.2.ebuild, +files/openscenegraph-2.8.2-libpng14.patch: + Fix building with libpng14 wrt #307695 by Lars Wendler.