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

Bug 355079

Summary: sci-astronomiy/celestia-1.6.0: compilation fails with media-libs/libpng-1.5.x
Product: Gentoo Linux Reporter: Lars Wendler (Polynomial-C) <polynomial-c>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/pkgsrc/misc/celestia/patches/patch-aq?rev=1.1
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 354479    
Attachments: celestia-1.6.0-libpng15.patch

Description Lars Wendler (Polynomial-C) gentoo-dev 2011-02-15 18:30:48 UTC
i686-pc-linux-gnu-g++ -DCONFIG_DATA_DIR='"/usr/share/celestia"' -DLOCALEDIR='"/usr/share/locale"' -DHAVE_CONFIG_H -I. -I../.. -I..    -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=barcelona -O2 -pipe -fsigned-char -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common   -Wall    -pthread -DQT_SHARED -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/libdrm -I/usr/include/qt4/QtCore -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include   -DQT_SHARED -pthread -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/libdrm -I/usr/include/qt4/QtCore        -DLUA_VER=0x050100 -DCELX -MT url.o -MD -MP -MF .deps/url.Tpo -c -o url.o url.cpp
favorites.cpp: In function ‘void WriteFavoritesList(FavoritesList&, std::ostream&)’:
favorites.cpp:138:20: warning: enumeration value ‘PhaseLock_Old’ not handled in switch
favorites.cpp:138:20: warning: enumeration value ‘Chase_Old’ not handled in switch
favorites.cpp:138:20: warning: enumeration value ‘Unknown’ not handled in switch
imagecapture.cpp: In function ‘bool CaptureGLBufferToPNG(const std::string&, int, int, int, int)’:
imagecapture.cpp:184:40: error: ‘Z_BEST_COMPRESSION’ was not declared in this scope
imagecapture.cpp: In function ‘void PNGWriteData(png_struct*, png_byte*, png_size_t)’:
imagecapture.cpp:113:40: warning: ignoring return value of ‘size_t fwrite(const void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
make[4]: *** [imagecapture.o] Error 1
Comment 1 Lars Wendler (Polynomial-C) gentoo-dev 2011-02-15 18:31:50 UTC
Created attachment 262645 [details, diff]
celestia-1.6.0-libpng15.patch

Patch taken from NetBSD (see URL).
Comment 2 Samuli Suominen gentoo-dev 2011-08-07 08:02:50 UTC
+  07 Aug 2011; Samuli Suominen <ssuominen@gentoo.org> celestia-1.6.1.ebuild,
+  +files/celestia-1.6.1-libpng15.patch:
+  Include zlib.h for Z_BEST_COMPRESSION (required by libpng15 porting) wrt
+  #355079 by Lars Wendler