Re: [INTERNALS-WIN] More Extension problems with 5.3.0
[email protected] (Niel)
| Newsgroups | php.internals.win |
|---|---|
| Message-ID | <[email protected]> |
> hi, > > On Fri, Dec 26, 2008 at 2:46 AM, Niel <[email protected]> wrote: > > > Setup is as before: > > MS Windows XP Pro 64 Bit + SP2 > > MS VC9 Express + SP1 > > MS Server 2008 SDK and .NET Framework 3.5 > > using the current default directory structure. > > > > First, can someone point me to the libraries to use for building > > mbstring, com_dotnet, pspell, and snmp. They are not available with the > > other libraries at http://pecl2.php.net/downloads/php-windows-builds/php-libs/ > > unless I'm missing something. > > Btw, this list describe which lib is used by which ext: Yup I had read that, which is why I was looking for the libraries when I couldn't build them. > http://wiki.php.net/internals/windows/libs > > mbstring does not need any library, they are all bundled. > com_dotnet uses the PSDK > SNMP is not available as snmplib does not work yet with VC9 (and may > never work). Updated the source from cvs: dom, com_dotnet, xml, and xmlreader all build statically now, mbstring still does not (see below errors). You didn't mention pspell? > > > > Second set of problems is similar to the one I had with simplexml > > (libxml files not found). This time it is effecting DOM, XML, and > > XMLreader. XMLreader can't include libxml/tree.h as before; while DOM > > and XML cannot include libxml/parser.h > > > Same issue than before. We'll have to add a macro to setup libxml > correctly for each extension. In the meantime you can build them > statically :) No, I already tried building them both shared and statically before posting. Both methods failed with the same problem. Also the update has broken simplexml so it has errors simplexml D:\Dev\C\PHP\php_5_3\vc9\x86\src>cscript /nologo configure.js --disable-all --en able-cli --without-ereg --with-iconv --disable-ipv6 --with-libxml --enable-objec t-out-dir="..\..\!Builds\x86" --with-simplexml Saving configure options to config.nice.bat Enabled extensions: ----------------------- | Extension | Mode | ----------------------- | date | static | | iconv | static | | libxml | static | | pcre | static | | reflection | static | | simplexml | static | | spl | static | | standard | static | ----------------------- Enabled SAPI: ------------- | Sapi Name | ------------- | cli | ------------- ------------------------------------------- | | | ------------------------------------------- | Build type | Release | | Thread Safety | Yes | | Compiler | MSVC9 (Visual C++ 2008) | | Architecture | x86 | ------------------------------------------- Type 'nmake' to build PHP D:\Dev\C\PHP\php_5_3\vc9\x86\src>nmake Microsoft (R) Program Maintenance Utility Version 9.00.30729.01 Copyright (C) Microsoft Corporation. All rights reserved. simplexml.c ext\simplexml\simplexml.c(44) : error C2491: 'sxe_get_element_class_entry' : def inition of dllimport function not allowed ext\simplexml\simplexml.c(2087) : error C2491: 'sxe_object_new' : definition of dllimport function not allowed ext\simplexml\simplexml.c(2348) : error C2491: 'php_sxe_move_forward_iterator' : definition of dllimport function not allowed NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft\Visual Studio\9.0\ VC\BIN\cl.exe"' : return code '0x2' Stop. mbstring tries to build shared even though it is not told to. D:\Dev\C\PHP\php_5_3\vc9\x86\src>cscript /nologo configure.js --disable-all --en able-cli --enable-mbstring --without-ereg --with-iconv --disable-ipv6 --with-li bxml --enable-object-out-dir="..\..\!Builds\x86" Saving configure options to config.nice.bat Enabled extensions: ----------------------- | Extension | Mode | ----------------------- | date | static | | iconv | static | | libxml | static | | mbstring | shared | | pcre | static | | reflection | static | | spl | static | | standard | static | ----------------------- ...SAPI and compiler as before Type 'nmake' to build PHP D:\Dev\C\PHP\php_5_3\vc9\x86\src>nmake Microsoft (R) Program Maintenance Utility Version 9.00.30729.01 Copyright (C) Microsoft Corporation. All rights reserved. Creating library ..\..\!Builds\x86\Release_TS\php_mbstring.lib and object ..\ ..\!Builds\x86\Release_TS\php_mbstring.exp mbstring.obj : error LNK2019: unresolved external symbol __imp__php_pcre_free re ferenced in function __php_mb_free_regex ..\..\!Builds\x86\Release_TS\php_mbstring.dll : fatal error LNK1120: 1 unresolve d externals NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft\Visual Studio\9.0\ VC\BIN\cl.exe"' : return code '0x2' Stop. > Cheers, > -- > Pierre > > http://blog.thepimp.net | http://www.libgd.org > > -- > Windows Internals Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- Niel Archer niel.archer (at) blueyonder.co.uk