gnash-0.8.5 uses deprecated function from libpng12, png_set_gray_1_2_4_to_8, which was removed in libpng14. Reproducible: Always Steps to Reproduce:
Created attachment 237235 [details, diff] www-plugins/gnash/files/gnash-0.8.5-libpng14.patch Just replace png_set_gray_1_2_4_to_8 with png_set_expand_gray_1_2_4_to_8 in libbase/GnashImagePng.cpp
Created attachment 237237 [details, diff] www-plugins/gnash/gnash-0.8.5.ebuild.patch Add www-plugins/gnash/files/gnash-0.8.5-libpng14.patch to used patches.
I don't know why you are using 0.8.5, but the problem is same for 0.8.7... fixing summary.
(In reply to comment #3) > I don't know why you are using 0.8.5, but the problem is same for 0.8.7... > fixing summary. > Or rather the faulty code is present in all of 0.8.5, 0.8.6, 0.8.7 but only 0.8.5's ebuild is passing --enable-png and thus the only ebuild hitting this bug.
ah no, 0.8.7 had the fix already (unnecessarily with #ifdef's though, upstream failed). fixed properly for 0.8.5 and 0.8.6: + 02 Jul 2010; Samuli Suominen <ssuominen@gentoo.org> + +files/gnash-0.8.x-libpng14.patch, gnash-0.8.5.ebuild, gnash-0.8.6.ebuild: + Fix building with libpng14 wrt #326599 by Serhij S. Stasyuk.
Thanks for quick response.