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

 ID:                 64061
 Comment by:         mirco dot babin 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:

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..]


Previous Comments:
------------------------------------------------------------------------
[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

Reply via email to