Created attachment 278653 [details, diff] fltk-1.1.10-libpng1.5.patch fltk-1.10.1-r2 presently does not compile when libpng-1.5 is installed. The following compiler errors are instead shown: Compiling Fl_PNG_Image.cxx... Fl_PNG_Image.cxx: In constructor ‘Fl_PNG_Image::Fl_PNG_Image(const char*)’: Fl_PNG_Image.cxx:90: error: invalid use of incomplete type ‘struct png_info_def’ /usr/include/png.h:678: error: forward declaration of ‘struct png_info_def’ Fl_PNG_Image.cxx:93: error: invalid use of incomplete type ‘struct png_info_def’ /usr/include/png.h:678: error: forward declaration of ‘struct png_info_def’ Fl_PNG_Image.cxx:98: error: invalid use of incomplete type ‘struct png_info_def’ /usr/include/png.h:678: error: forward declaration of ‘struct png_info_def’ Fl_PNG_Image.cxx:98: error: invalid use of incomplete type ‘struct png_info_def’ /usr/include/png.h:678: error: forward declaration of ‘struct png_info_def’ Fl_PNG_Image.cxx:101: error: invalid use of incomplete type ‘struct png_info_def’ /usr/include/png.h:678: error: forward declaration of ‘struct png_info_def’ Fl_PNG_Image.cxx:102: error: invalid use of incomplete type ‘struct png_info_def’ /usr/include/png.h:678: error: forward declaration of ‘struct png_info_def’ Fl_PNG_Image.cxx:105: error: invalid use of incomplete type ‘struct png_info_def’ /usr/include/png.h:678: error: forward declaration of ‘struct png_info_def’ Fl_PNG_Image.cxx:110: error: invalid use of incomplete type ‘struct png_info_def’ /usr/include/png.h:678: error: forward declaration of ‘struct png_info_def’ Attached is a patch that corrects fltk for libpng-1.5. It, in addition to re-instating the patch in bug# 373453, permits fltk-1.1.10-r2 to build. I'm in the process of building fldigi and will soon know if it works or not, but mucking around with fluid (FLTK UI builder) suggests it is able to display PNG images.
Actually... should have checked upstream first. See the URL attached.
fltk-1.3.0 in the same SLOT builds fine, closing as OBSOLETE
*** Bug 384257 has been marked as a duplicate of this bug. ***
*** Bug 385095 has been marked as a duplicate of this bug. ***
Oh well, seems people still need 1.1.10 as fltk-1.3.0 addition to tree was poorly handled. + 30 Sep 2011; Samuli Suominen <ssuominen@gentoo.org> fltk-1.1.10-r2.ebuild, + +files/fltk-1.1.10-libpng15.patch: + Fix building with libpng15 wrt #373521 by Stuart Longland