Attached is a patch for libpng-1.2.8, so that DevIL and Ogre-1.0 work under amd64. I have NOT tested this under any platform except amd64! Also, everything that uses libpng(gtk+, etc), must be rebuilt after applying this patch. Please see bug 83306 for more information. Reproducible: Always Steps to Reproduce: 1. emerge libpng-1.2.8 2. emerge ogre-1.0 3. Actual Results: ogre crashes because it can't load png images Expected Results: ogre should be able to load the images This fix is for amd64 only!
Created attachment 52323 [details] patch to fix image loading with devil and ogre on amd64
Assigned to the correct architecture team.
messing with libpng like that will require everything that linked against libpng to be rebuilt or bad things would probably happen ;)
Sorry SpanKY, but I don't think ignoring this is a good idea. The code is wrong, plain and simple. Int's are 32 bit on amd64, and long's are 64 bit. If libpng internally assumes that png_uint_32 are going to be 32 bit, then we've got bigger issues than just recompiling everything. This NEEDS to be worked out, either through version bumps on the .so (not even sure that would help) or coordinating with upstream somehow.