php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13728 --with-png-dir does not set the include dir
Submitted: 2001-10-18 04:27 UTC Modified: 2001-10-18 21:01 UTC
From: jeanfrancois dot lecam at altiplano dot fr Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.0.6 OS: slackware 7.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jeanfrancois dot lecam at altiplano dot fr
New email:
PHP Version: OS:

 

 [2001-10-18 04:27 UTC] jeanfrancois dot lecam at altiplano dot fr
I have installed the new version of libpng-1.2.0 under /home/local/libpng

I still have an old version of libpng (1.0.3) under /usr

Using --with-png-dir=/home/local/libpng, I expect to have php compiled with the new libpng.

It compiles ok, but when I use gd functions, I get the following error message :

> libpng warning: Application was compiled with png.h from libpng-1.0.3
> libpng warning: Application  is running with png.c from libpng-1.2.0
> gd-png:  fatal libpng error: Incompatible libpng version in application and > library
> Segmentation fault

I guess the php configure script sets the lib dir according to --with-png-dir, but forgets to set the include dir...

config.nice :

"./configure" \
"--with-mysql" \
"--enable-track-vars" \
"--enable-force-cgi-redirect" \
"--enable-discard-path" \
"--prefix=/home/hidden/site7/tools/php" \
"--with-config-file-path=/home/hidden/site7/tools/php/conf" \
"--with-gd=/home/local/gd" \
"--with-png-dir=/home/local/libpng" \
"--with-ttf=/home/local/libttf1" \
"--with-jpeg-dir=/home/local/libjpeg" \
"--with-xpm-dir=/usr/X11R6" \
"--disable-debug" \
"--with-mhash=/home/local/mhash" \
"--with-mcrypt=/home/local/mcrypt" \
"--with-mm=/home/local/mm" \
"--enable-trans-sid" \
"--with-dom=/home/local/libxml" \
"--with-magic-quotes" \
"--with-zlib" \
"--with-imap=/home/local/libimap" \
"--with-t1lib=/home/local/t1lib" \

Thanks,

Jean-Francois LE CAM

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-18 04:31 UTC] rasmus@php.net
An "rm config.cache; make clean" and a full rebuild should take care of that.  Let us know.
 [2001-10-18 04:55 UTC] derick@php.net
User reported:
No way, I still have the error...

Please use the webform to add comments to your report the next time.

Derick
 [2001-10-18 21:01 UTC] sniper@php.net
Please ask support questions on the mailing lists:

http://www.php.net/support.php

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Nov 05 00:00:02 2025 UTC