Problems compiling 5.3.0alpha3 with extensions
am 24.12.2008 22:58:17 von nielHi all.
I have been trying to compile 5.3.0 alpha 3 (from
http://downloads.php.net/johannes/php-5.3.0alpha3.tar.bz2), for several
days now. It builds fine with a very basic configuration, but when I
add extensions I run into problems.
Setup is:
MS Windows XP Pro 64 Bit + SP2
MS VC9 Express + SP1
MS Server 2008 SDK and .NET Framework 3.5
Libraries from http://pecl2.php.net/downloads/php-windows-builds/php-libs/V =
C9/x86/
extracted into directory win32build
Tools from http://pecl2.php.net/downloads/php-windows-builds/php-libs/b inar=
y-tools.zip
extracted into a directory and added to PATH (bison.simple copied to
D:\usr\local\share)
Directories:
D:\Dev\C\PHP
+- !Builds\x86\
+- bin (binary tools)
+- php-5.3.0-alpha3
+- win32build
D:\usr\local\share
I have minimised the configuration to be as simple as possible and still
produce the problem. The error is:
simplexml.c
\ext/libxml/php_libxml.h(38) : fatal error C1083: Cannot open include fi=
le: 'libxml/tree.h': No such file or directory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft\Visual Studio=
\9.0\VC\BIN\cl.exe"' : return code '0x2'
'libxml/tree.h' does exist in the 'win32build/include' directory
In case it is useful here's the configure output:
D:\Dev\C\PHP\php-5.3.0alpha3>cscript /nologo configure.js --disable-all --e=
nable-cli
--without-ereg --with-iconv --enable-intl --disable-ipv6 --with-libxml=20
--enable-object-out-dir=3D"..\!Builds\x86" --with-simplexml=3Dshared
Saving configure options to config.nice.bat
Checking for cl.exe ...
Detected compiler MSVC9 (Visual C++ 2008)
Detected 32-bit compiler
Checking for link.exe ... C:\Program Files (x86)\Microsoft\Visual Studio\9.=
0\VC\BIN
Checking for nmake.exe ...
Checking for lib.exe ...
Checking for bison.exe ...
Checking for re2c.exe ...
Detected re2c version 0.13.5
Checking for zip.exe ...
Checking for lemon.exe ...
Checking for mc.exe ... C:\Program Files\Microsoft\SDKs\Windows\v6.1\bin
Checking for mt.exe ... C:\Program Files\Microsoft\SDKs\Windows\v6.1\bin
Build dir: ..\!Builds\x86\Release_TS
PHP Core: php5ts.dll and php5ts.lib
Checking for NewAPIs.h ...
Checking for NewAPIs.h ...
Enabling SAPI sapi\cli
Enabling extension ext\date
Checking for library libiconv_a.lib ... ..\win32build\lib\libiconv_a.lib
Checking for iconv.h ... ../win32build\include
Enabling extension ext\iconv
Checking for library icuuc.lib ... ..\win32build\lib\icuuc.lib
Checking for unicode/utf.h ... ../win32build\include
Enabling extension ext\intl [shared]
Enabling extension ext\pcre
Enabling extension ext\reflection
Enabling extension ext\spl
Checking for timelib_config.h ... ext/date/lib
Enabling extension ext\standard
Checking for library libxml2_a_dll.lib;libxml2_a.lib ... ..\win32build\libx=
ml2-2.6.32-vc9\lib\libxml2_a_dll.lib
Checking for library libiconv_a.lib;iconv_a.lib;libiconv.lib;iconv.lib ... ..=
\win32build\lib\libiconv_a.lib
Checking for libxml/parser.h ... ../win32build\include
Enabling extension ext\libxml
Enabling extension ext\simplexml [shared]
Creating build dirs...
Generating files...
Generating Makefile
Generating main/internal_functions.c
[content unchanged; skipping]
Generating main/config.w32.h
Done.
It seems the libxml is being found by configure, but not when needed by
the extensions.
I would really appreciate any help in solving this, as it is driving me
nuts now.
--
Niel Archer
niel.archer (at) blueyonder.co.uk
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php