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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 19:01:29 2024 UTC