Red Hat Bugzilla – Bug 63323
php compiled against newer version of libpng error when trying to display a png image
Last modified: 2007-04-18 12:41:55 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.79 [en] (Windows NT 5.0; U)
Description of problem:
PHP 4.1.2-5 included in Rawhide is compiled against libpng 1.2.1 and not 1.0.12, which generates an error and segfault in the php module of
apache when trying to use php to display png images.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install apache 1.3.23 and PHP 4.1.2-5
2. Try to use a PHP coded page which generates png images
Actual Results: In apache errror_log:
libpng warning: Application was compiled with png.h from libpng-1.2.1
libpng warning: Application is running with png.c from libpng-1.0.12
gd-png: fatal libpng error: Incompatible libpng version in application and library
[Fri Apr 12 11:48:37 2002] [notice] child pid 28000 exit signal Segmentation fault (11)
Expected Results: Display the PNG image
Attempting to recompile php src rpm to see if it fixes the problem.
Found the problem. Apparently, from the previous rawhide setup (not sure what happened, but suddenly one day all of the major updates in
rawhide were replaced with updated versions from 7.2, almost like it had been reverted to a much eariler build of everything), there was a libpng
1.2.1 RPM. This was still installed. Ripping it out linked the program correctly to libpng.so.2 and its fixed.