mbstring trying to build shared instead of static
| From: | Niel Archer | Date: | Sat, 10 Jan 2009 12:55:48 +0000 |
| Subject: | mbstring trying to build shared instead of static | ||
| Groups: | php.internals.win | ||
| Request: | Send a blank email to internals-win+get-359@lists.php.net to get a copy of this message | ||
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