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

Bug 307695

Summary: dev-games/openscenegraph-2.8.2 fails to compile against >=media-libs/libpng-1.4.0
Product: Gentoo Linux Reporter: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Component: [OLD] DevelopmentAssignee: Tupone Alfredo <tupone>
Status: RESOLVED FIXED    
Severity: normal CC: games
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/OpenSceneGraph/OpenSceneGraph-libpng.patch?rev=1.1
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 305095    
Attachments: build.log

Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-03-04 00:29:45 UTC
[ 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:
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-03-04 00:44:05 UTC
Created attachment 221987 [details]
build.log
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-03-11 15:08:26 UTC
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.