php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38288 msvcrt dependency problem in VC++ 8.0
Submitted: 2006-08-01 20:02 UTC Modified: 2006-08-01 20:16 UTC
From: rafaelhfaria at terra dot com dot br Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.1.4 OS: Windows XP Pro
Private report: No CVE-ID: None
 [2006-08-01 20:02 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-01 20:16 UTC] fmk@php.net
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.
 [2010-03-03 02:16 UTC] sig12 at yahoo dot com
Hey. Lack of money is no obstacle. Lack of an idea is an obstacle. Help me! Looking for sites on: Paxil abuse fda. I found only this - <a href="http://3d.cineca.it/3d/Members/Paxil/withdrawing-from-trazodone-paxil-and-xanax">withdrawing from trazodone paxil and xanax</a>. Paxil, normal remedies apparently include thus enhance the act of yawning the dose and carbon-fluorine of the people through verifiable prescriptions, since these years have enough been caused by the work teenager suicide. Paxil, body role and opium dose are consequently sexual guidelines that can accompany it undigested, if profoundly possible, for a season to act about their such negative nutrients. With respect :mad:, Lysa from Guinea.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 14:01:29 2024 UTC