ID:               38288
 Updated by:       [EMAIL PROTECTED]
 Reported By:      rafaelhfaria at terra dot com dot br
-Status:           Open
+Status:           Bogus
 Bug Type:         Compile Failure
 Operating System: Windows XP Pro
 PHP Version:      5.1.4
 New Comment:

Compiling PHP on Windows alsways requires some Microsoft DLL's. If you
are using VC 6 these DLL's are most likely installed on the system by
default. If you are using VC 7 or VC8 you need to install these DLL's
on the system. This can be done by copying the DLL's to the PHP folder
or by installing/upgrading the .NET framework.


Previous Comments:
------------------------------------------------------------------------

[2006-08-01 20:02:37] rafaelhfaria at terra dot com dot br

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 this bug report at http://bugs.php.net/?id=38288&edit=1

Reply via email to