Bug #13728: --with-png-dir does not set the include dir
| From: | jeanfrancois dot lecam at altiplano dot fr | Date: | Thu, 18 Oct 2001 08:27:06 +0000 |
| Subject: | Bug #13728: --with-png-dir does not set the include dir | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-68194@lists.php.net to get a copy of this message | ||
From: jeanfrancois.lecam@altiplano.fr
Operating system: slackware 7.0
PHP version: 4.0.6
PHP Bug Type: *Compile Issues
Bug description: --with-png-dir does not set the include dir
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
--
Edit bug report at: http://bugs.php.net/?id=13728&edit=1