#38288 [NEW]: msvcrt dependency problem in VC++ 8.0
From: rafaelhfaria at terra dot com dot br
Operating system: Windows XP Pro
PHP version: 5.1.4
PHP Bug Type: Compile Failure
Bug description: msvcrt dependency problem in VC++ 8.0
Description:
------------
I'm compiling PHP 5.4.1 with Microsoft Visual Studio 2005.
But with msvcrt I get an unwanted dependency of "msvcr80.dll". I tried
compile with static link option: "/MT" in place of "/MD" (using libcmt).
But without success...
--- Error Log (with libcmt and without msvcrt):
Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.
Creating library Release_TS\php5ts.lib and object
Release_TS\php5ts.exp
zend_strtod.obj : error LNK2019: unresolved external symbol __HUGE
referenced in function _zend_strtod
math.obj : error LNK2001: unresolved external symbol __HUGE
php_variables.obj : error LNK2019: unresolved external symbol __environ
referenced in function __php_import_environment_variables
basic_functions.obj : error LNK2001: unresolved external symbol
__environinfo.obj : error LNK2001: unresolved external symbol __environ
Release_TS\php5ts.dll : fatal error LNK1120: 2 unresolved externals
NMAKE : fatal error U1077: '"C:\Arquivos de programas\Microsoft Visual
Studio 8\VC\BIN\link.exe"' : return code '0x460'
Stop.
-----------------------
Peace of code from "configure.js":
ADD_FLAG("CFLAGS", "/LD /MD /W3 /Ox /D NDebug /D NDEBUG /D
ZEND_WIN32_FORCE_INLINE /GF /D ZEND_DEBUG=0");
...
// we want msvcrt in the PHP DLL
ADD_FLAG("PHP_LDFLAGS", "/nodefaultlib:libcmt");
---------
What will be done with msvcrt dependecy of msvcr80.dll ?
PHP can't be compiled with static linked library, and with dynamic library
is got dependecy of a external dll (Need to install .NET Framework on
machines that will run theses compiled PHP).
How do I compile a stand alone php5ts.dll in VC++ 8.0.
--
Edit bug report at http://bugs.php.net/?id=38288&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38288&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38288&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38288&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38288&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=38288&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=38288&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=38288&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=38288&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=38288&r=support
Expected behavior: http://bugs.php.net/fix.php?id=38288&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=38288&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=38288&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38288&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38288&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38288&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=38288&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=38288&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=38288&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=38288&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=38288&r=mysqlcfg
Thread (3 messages)
- rafaelhfaria at terra dot com dot br