Bug 63323

Summary: php compiled against newer version of libpng error when trying to display a png image
Product: [Retired] Red Hat Raw Hide Reporter: Brian Bruns <bruns>
Component: phpAssignee: Phil Copeland <copeland>
Status: CLOSED NOTABUG QA Contact: David Lawrence <dkl>
Severity: high Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-04-12 15:56:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Brian Bruns 2002-04-12 15:56:40 UTC
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):


How reproducible:
Always

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

Additional info:

Attempting to recompile php src rpm to see if it fixes the problem.

Comment 1 Brian Bruns 2002-04-12 18:00:03 UTC
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.