Bug #64061 [Com]: GD extension fails to build when png.h is not found
| From: | stephencoxmail at gmail dot com | Date: | Fri, 25 Jan 2013 19:20:10 +0000 |
| Subject: | Bug #64061 [Com]: GD extension fails to build when png.h is not found | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-176250@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64061&edit=1
ID: 64061
Comment by: stephencoxmail at gmail dot com
Reported by: stephencoxmail at gmail dot com
Summary: GD extension fails to build when png.h is not found
Status: Open
Type: Bug
Package: GD related
Operating System: Windows
PHP Version: 5.4.11
Block user comment: N
Private report: N
New Comment:
Yes, but libxpm is not included in http://windows.php.net/downloads/php-sdk/deps-
5.4-vc9-x86.7z. This is only a secondary problem, the initial problem this patch
tries to solve is to change the path where libpng is found in deps-5.4.
Previous Comments:
------------------------------------------------------------------------
[2013-01-25 19:07:48] pajoye@php.net
Easier to fetch all deps at once here:
http://windows.php.net/downloads/php-sdk/
------------------------------------------------------------------------
[2013-01-25 19:06:48] stephencoxmail at gmail dot com
You need to extract http://windows.php.net/downloads/php-sdk/deps/libxpm-3.5.10-
vc9-x86.zip in the dependencies.
------------------------------------------------------------------------
[2013-01-25 18:39:55] mirco dot babin at gmail dot com
Description:
------------
I applied the patch to PHP 5.4.10. The GD extension then still fails to build on
Windows. Configure outputs an error about missing libXpm_a.lib.
It appears this library is not present in the dependencies from:
http://windows.php.net/downloads/php-sdk/deps-5.4-vc9-x86.7z
Configure Statement:
--------------------
call configure "--enable-snapshot-build" "--disable-isapi"
"--disable-cgi" "--
enable-cli" "--disable-nsapi" "--disable-apache"
"--disable-apache2-2filter" "--
disable-apache2-2handler" "--disable-embed" "--enable-cli-win32"
"--enable-
debug-pack" "--without-pi3web" "--enable-com-dotnet=shared" "--with-
mcrypt=static" > configured.txt 2>&1
Configure output:
-----------------
[..SNIP..]
Checking for library vpxmt.lib ... ..\deps\lib\vpxmt.lib
Checking for library libjpeg_a.lib;libjpeg.lib ... ..\deps\lib\libjpeg_a.lib
Checking for library freetype_a.lib;freetype.lib ... ..\deps\lib\freetype_a.lib
Checking for library libpng_a.lib;libpng.lib ... ..\deps\lib\libpng_a.lib
Checking for gd.h ... ext\gd\libgd
Checking for png.h ... C:\php-sdk\php54dev\vc9\x86\deps\include\libpng
Checking for library libiconv_a.lib;libiconv.lib ... ..\deps\lib\libiconv_a.lib
Checking for iconv.h ... C:\php-sdk\php54dev\vc9\x86\deps\include
Checking for library libXpm_a.lib ... <not found>
WARNING: gd not enabled; libraries and headers not found
[..SNIP..]
------------------------------------------------------------------------
[2013-01-24 10:44:38] stephencoxmail at gmail dot com
Description:
------------
When building PHP on Windows the GD extension fails to build. The problem is that
the config.w32 searches for png.h in include/libpng12 instead of include/libpng.
The dependencies was downloaded from http://windows.php.net/downloads/php-
sdk/deps-5.4-vc9-x86.7z
Test script:
---------------
configure --enable-mailparse=shared --enable-http=shared --with-mysqlnd --with-mysql
--disable-com-dotnet --disable-ftp --disable-odbc --without-wddx --disable-cgi --enable-mbstring
--enable-fileinfo=shared --with-imap=shared --enable-apc --enable-apc-srwlock-native
--enable-apache2-2handler --with-mcrypt --enable-soap=shared --with-openssl=shared
--enable-intl=shared --with-curl --with-mysqli --with-xmlrpc
Expected result:
----------------
The GD extension is supposed to be configured
Actual result:
--------------
The GD extension fails to be configured
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64061&edit=1