Edit report at http://bugs.php.net/bug.php?id=53379&edit=1

 ID:                 53379
 User updated by:    FractalizeR at yandex dot ru
 Reported by:        FractalizeR at yandex dot ru
 Summary:            --with-gd and --with-jpeg-dir configure options are
                     not commutative
-Status:             Feedback
+Status:             Open
 Type:               Bug
 Package:            GD related
 Operating System:   CentOS 5.5
 PHP Version:        5.3.3
 Block user comment: N
 Private report:     N

 New Comment:

Hello. 



Full configure line is as follows:



./configure --enable-bcmath --enable-calendar --enable-calendar
--enable-exif --enable-exif --enable-fpm --enable-ftp --enable-ftp
--enable-gd-native-ttf --enable-libxml --enable-magic-quotes
--enable-mbstring --enable-mbstring --enable-pdo --enable-soap
--enable-sockets --enable-wddx --enable-zend-multibyte --enable-zip
--with-bz2 --with-bz2 --with-curl --with-curl --with-curlwrappers
--with-gd --with-jpeg-dir --with-png-dir --with-libdir=lib64
--with-mcrypt --with-mysql=mysqlnd --with-mysqli=mysqlnd
--with-openssl-dir=/usr --with-openssl=/usr --with-pdo-mysql=mysqlnd
--with-pdo-sqlite --with-pear --with-pic --with-sqlite --with-tidy
--with-xmlrpc --with-xsl --with-zlib --with-zlib



Before executing it I've also done:

yum install autoconf libtool httpd-devel libxml2 zlib-devel
libxml2-devel openssl-devel bzip2-devel libpng-devel libtidy-devel
libxslt-devel libevent-devel curl-devel libmcrypt-devel libtool-libs
libtool-ltdl-devel


Previous Comments:
------------------------------------------------------------------------
[2010-11-23 10:16:56] [email protected]

5.3.3 works just fine for me regardless of the order of those
parameters. Only difference in my test was the use of
'--with-libdir=lib64' since I only have 64bit libs around. So you're not
telling everything, for starters, what was the FULL configure line you
tried which failed?

------------------------------------------------------------------------
[2010-11-23 09:51:43] FractalizeR at yandex dot ru

I don't use any path in my example. That was not my URL but some other
guy. No, I did not any custom configurations. Did you try 5.3.3?

------------------------------------------------------------------------
[2010-11-23 09:35:40] [email protected]

First of all, you're using wrong path to --with-jpeg-dir. It expects
/usr without the "/lib" part which in your case is most likely not lib
but lib64 anyway. 



But I can not reproduce this using proper sources downloaded from
php.net. Did you by any chance do buildconf or autoconf yourself?

------------------------------------------------------------------------
[2010-11-22 16:17:26] FractalizeR at yandex dot ru

Description:
------------
Hello.



Providing "--with-jpeg-dir --with-gd" to ./configure script builds PHP
with GD with JPEG support. However providing "--with-gd --with-jpeg-dir"
(inverse order) silently ignores JPEG instruction. No warnings or errors
shown to user, but PHP is compiled without JPEG support.



Same case link:
http://mattiasgeniar.be/2009/04/10/compiling-php-with-with-jpeg-dir-not-working/



------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=53379&edit=1

Reply via email to