Bug #64061 [Com]: GD extension fails to build when png.h is not found
| From: | mirco dot babin at gmail dot com | Date: | Fri, 01 Feb 2013 21:15:16 +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-176395@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: 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: Closed
Type: Bug
Package: GD related
Operating System: Windows
PHP Version: 5.4.11
Block user comment: N
Private report: N
New Comment:
My compilation problems seem to be related to the "/analyze" option of the
Visual Studio compiler cl.exe. After searching the internet I noticed others
expirienced also crashes with /analyze.
After specifying "--enable-static-analyze=no" php compiles correctly.
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-mssql" "--without-pdo-mssql"
"--without-pi3web" "--
enable-com-dotnet=shared" "--with-mcrypt=static"
"--enable-static-analyze=no" >
configured.txt 2>&1
Thanks for your attention!
Regards,
Mirco Babin
Previous Comments:
------------------------------------------------------------------------
[2013-01-28 06:22:48] stephencoxmail at gmail dot com
GD can be build without the patch using the new deps-5.4 archive
------------------------------------------------------------------------
[2013-01-26 07:17:44] pajoye@php.net
btw, you can also compile only using the SDK, it includes the compilation tools
suite.
------------------------------------------------------------------------
[2013-01-26 07:17:08] pajoye@php.net
You only need to copy the error here, not the full log.
------------------------------------------------------------------------
[2013-01-25 21:35:41] mirco dot babin at gmail dot com
Regarding my previous comment, I uploaded compilation.txt to pastebin. You can see
it at http://pastebin.com/p07WQCAU
------------------------------------------------------------------------
[2013-01-25 21:20:37] mirco dot babin at gmail dot com
Configure now works correctly (without the patch). I downloaded the php 5.4.11
sources and the php 5.4 dependencies.
Unfortunately building PHP fails. I did build php 5.4.10 correctly.
Compilation is done using the steps provided in
https://wiki.php.net/internals/windows/stepbystepbuild
on:
- Windows/XP in a VirtualBox (fully updated)
- Microsoft Visual Studio 2008 Express
- Windows SDK 6.1 command prompt (don't use the Visual Studio command prompt, as
it does not execute SETENV correctly)
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-mssql" "--without-pdo-mssql"
"--without-pi3web" "--
enable-com-dotnet=shared" "--with-mcrypt=static" > configured.txt 2>&1
nmake snap > compilation.txt 2>&1
I don't know how to upload compilation.txt into this bug database. Pasting is
refused (probably too big).
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=64061
--
Edit this bug report at https://bugs.php.net/bug.php?id=64061&edit=1