Description of problem: ROOT can't write png images because it seems to be built against libpng 1.2 (F17 comes with 1.5) Version-Release number of selected component (if applicable): root-5.32.02-1.fc17.x86_64 How reproducible: Always Steps to Reproduce: 1. run "root" 2. enter the following code TCanvas c("c","c",500,500); TH1F histo("histo","histo",100,-5.,5.); histo.FillRandom("gaus",5000); histo.Draw(); c.SaveAs("gauss.png"); Actual results: A warning message is printed: libpng warning: Application built with libpng-1.2.44 but running with 1.5.10 Info in <TCanvas::Print>: file gauss.png has been created But gauss.png is empty Expected results: gauss.png should not be empty Additional info:
The latest root build in Fedora 17 is already built using libpng 1.5. However, root does not use libpng directtly, but uses it through libAfterImage. The libAfterImage package is not yet rebuilt using the new libpng package. Reassigning to libAfterImage.
A patch to build libAfterImage with libpng 1,5 can be found in gentoo: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-libs/libafterimage/files/libafterimage-libpng15.patch If I rebuild libAfterImage with this patch root starts working again.
Thank you. I confirm that the patch is working. I hope the maintainer of libAfterImage can rebuild the F17 package at some point.
libAfterImage-1.20-5.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/libAfterImage-1.20-5.fc16
libAfterImage-1.20-5.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/libAfterImage-1.20-5.fc17
libAfterImage-1.20-5.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/libAfterImage-1.20-5.fc15
Package libAfterImage-1.20-5.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing libAfterImage-1.20-5.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-8568/libAfterImage-1.20-5.fc17 then log in and leave karma (feedback).
*** Bug 836243 has been marked as a duplicate of this bug. ***
I always updated my system, but I still had this bug and with every opening of new instance of TBrowser the error message "libpng warning: Application built with libpng-1.2.44 but running with 1.5.10" got created several times... For me the problem was solved with updating the package libAfterImage as described in comment #7: # su -c 'yum update --enablerepo=updates-testing libAfterImage-1.20-5.fc17' So far so good, but this announcement was a month ago and in all these days the fix wasn't pushed into the "normal" repo. So please do so, otherwise a lot of people are forced to search for this bug report, like I was. The solution could be made very more easy. Thanks a lot for your work, I appreciate that! ;)
I second that. libAfterImage-1.20-5.fc17 also fixes my problem of creating .png files and, yes, I also noticed the problem with TBrowser. That is also fixed.
libAfterImage-1.20-5.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.
libAfterImage-1.20-5.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.