mbstring trying to build shared instead of static

[email protected] (Niel Archer)
Newsgroups php.internals.win
Message-ID <[email protected]>
Hi all.

I updated the files today and tried building with mbstring (haven't
managed to get it to build at all yet), only to have it attempt to build
as shared instead of static.

My usual configuration
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.


D:\Dev\C\PHP\php_5_3\vc9\x86\src>cscript /nologo configure.js --disable-all --en
able-cli --enable-mbstring --enable-mbregex --without-ereg --with-iconv --disabl
e-ipv6 --with-libxml --enable-object-out-dir="D:\Dev\C\PHP\!Builds\x86\min"
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 |
-----------------------


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.

php_mbregex.c
internal_functions.c
C:\Program Files\Microsoft SDKs\Windows\v6.1\include\Ws2tcpip.h(502) : warning C
4142: benign redefinition of type
libiconv_a.lib(iconv1.obj) : MSIL .netmodule or module compiled with /GL found;
restarting link with /LTCG; add /LTCG to the link command line to improve linker
 performance
   Creating library D:\Dev\C\PHP\!Builds\x86\min\Release_TS\php5ts.lib and objec
t D:\Dev\C\PHP\!Builds\x86\min\Release_TS\php5ts.exp
Generating code
Finished generating code
   Creating library D:\Dev\C\PHP\!Builds\x86\min\Release_TS\php_mbstring.lib and
 object D:\Dev\C\PHP\!Builds\x86\min\Release_TS\php_mbstring.exp
mbstring.obj : error LNK2019: unresolved external symbol __imp__php_pcre_free re
ferenced in function __php_mb_free_regex
D:\Dev\C\PHP\!Builds\x86\min\Release_TS\php_mbstring.dll : fatal error LNK1120:
1 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\cl.exe"' : return code '0x2'
Stop.


--
Niel Archer
niel.archer (at) blueyonder.co.uk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.