I still haven't had chance to test it everywhere yet, so I'll just
attach it here so you can try it, and I'll commit it when I get a bit
more time to test properly.
Regards,
Tim
On 10/Sep/2009 05:25, 王智超 wrote:
> Hi Tim,
>
> Could you please provide the patch? It really helps a lot.
>
> Thanks,
> Norman
>
> 2009/9/9 Tim Ellison <[email protected]>
>
>> I have a patch for compiling classlib and DRLVM using VS2008, but
>> haven't quite finished as there is still a patch required to complete
>> the jdktools compile successfully.
>>
>> I can commit what I have as a work in progress to see if it helps.
>>
>> Regards,
>> Tim
>>
>> On 09/Sep/2009 14:31, Xiao-Feng Li wrote:
>>> I mean a conflict between Harmony and VC2008.
>>>
>>> Thanks,
>>> xiaofeng
>>>
>>> On Wed, Sep 9, 2009 at 9:30 PM, Xiao-Feng Li<[email protected]>
>> wrote:
>>>> Can it be a conflict in header file name "TypeDefinition.h" or in the
>>>> type name "fint"? I saw this kind of failures sometimes.
>>>>
>>>> Thanks,
>>>> xiaofeng
>>>>
>>>> On Wed, Sep 9, 2009 at 9:12 PM, 王智超<[email protected]> wrote:
>>>>> Hi Charles,
>>>>>
>>>>> Thanks for your reply. I have read the link, but I think it is not the
>> same
>>>>> issue with me.
>>>>> I still feel confused about this error, actually I don't think there is
>> any
>>>>> error in the code.
>>>>>
>>>>> Have you build harmony on XP machine? what compiler did you use?
>>>>> I think maybe it is caused by the compiler (VC 2008)
>>>>>
>>>>> Thanks,
>>>>> Norman
>>>>>
>>>>> 2009/9/9 Charles Lee <[email protected]>
>>>>>
>>>>>> Hi Norman,
>>>>>>
>>>>>> Pleae check HARMONY-5948[1]. Hope this will help you.
>>>>>>
>>>>>> [1]: https://issues.apache.org/jira/browse/HARMONY-5948
>>>>>>
>>>>>> On Wed, Sep 9, 2009 at 2:55 PM, 王智超 <[email protected]> wrote:
>>>>>>
>>>>>>> Hi
>>>>>>>
>>>>>>> I am a newbie of Harmony community, now I am trying to build harmony.
>>>>>>> I have followed the instruction of "Getting Started For
>> Contributors",
>>>>>> when
>>>>>>> I execute the "ant -Dauto.fetch=true all" command, it showed the
>>>>>> following
>>>>>>> error message:
>>>>>>>
>>>>>>> [exec] EncodedValue.cpp
>>>>>>> [exec] cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS
>>>>>>> -FIsehmap.h -D_X86_=1 -DWIN32 -D_WIN32 -W3 -D_WIN95
>>>>>>> -D_WIN32_WINDOWS=0x0400
>>>>>>> /D_WIN32_DCOM -D_WIN32_IE=0x0500 -DWINVER=0x0400 -Zi -Od -WX -GF -Gs
>> -MD
>>>>>>> -Zm400 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS
>>>>>>> -D_SCL_SECURE_NO_D
>>>>>>> EPRECATE -D_DLL -D_MT -D_WINSOCKAPI_
>>>>>>> /IE:\Harmony\trunk\working_classlib\deploy\include
>>>>>>> /IE:\Harmony\trunk\working_classlib\deploy\jdk\include /I.
>>>>>>> /I..\shared\include /I..\shared\ /EHsc -Fo..\shared\Environment.obj
>>>>>>> ..\shared\Environment.cpp
>>>>>>> [exec] Environment.cpp
>>>>>>> [exec]
>>>>>>>
>>>>>>>
>> e:\harmony\trunk\working_classlib\modules\awt\src\main\native\fontlib\shared\TypeDefinition.h(21)
>>>>>>> : error C2144: syntax error : 'int' should be preceded by ';'
>>>>>>> [exec]
>>>>>>>
>>>>>>>
>> e:\harmony\trunk\working_classlib\modules\awt\src\main\native\fontlib\shared\TypeDefinition.h(21)
>>>>>>> : error C4430: missing type specifier - int assumed. Note: C++ does
>> not
>>>>>>> support default-int
>>>>>>> [exec] NMAKE : fatal error U1077: '"C:\Program Files\Microsoft
>> Visual
>>>>>>> Studio 9.0\VC\BIN\cl.EXE"' : return code '0x2'
>>>>>>> [exec] Stop.
>>>>>>>
>>>>>>> My environment is: Windows XP/x86, VC2008 express, JDK 1.5.0_19 (Sun
>>>>>>> Microsystems Inc.)
>>>>>>>
>>>>>>> I checked the TypeDefinition.h, there is only some typedef code,
>> there is
>>>>>>> not any syntax error in my opinion.
>>>>>>> Could anyone pleased to tell me why this error happen and how to fix
>> it?
>>>>>>> Thanks,
>>>>>>> Norman
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Yours sincerely,
>>>>>> Charles Lee
>>>>>>
>>>>
>>>> --
>>>> http://people.apache.org/~xli <http://people.apache.org/%7Exli>
>>>>
>>>
>>>
>
Index: working_vm/make/vm/common-vm.xml
===================================================================
--- working_vm/make/vm/common-vm.xml (revision 809998)
+++ working_vm/make/vm/common-vm.xml (working copy)
@@ -64,10 +64,22 @@
<compilerarg value="/Zi" if="is.windows"/>
<compilerarg value="/W3" if="is.windows"/>
<compilerarg value="/WX" if="is.windows" unless="is.x86_64"/>
- <!-- C4996: 'function': was declared deprecated -->
- <compilerarg value="/wd4996" if="is.windows"/>
+ <!-- 'identifier' : macro redefinition -->
+ <compilerarg value="/wd4005" if="is.msvc"/>
+ <!-- 'function': was declared deprecated -->
+ <compilerarg value="/wd4996" if="is.msvc"/>
+
+ <!-- 'operator' : 'identifier1' differs in levels of indirection
from 'identifier2' -->
+ <compilerarg value="/wd4047" if="is.msvc"/>
+
+ <!-- 'function' : different types for formal and actual parameter
'number' -->
+ <compilerarg value="/wd4024" if="is.msvc"/>
+
+ <!-- The file contains a character that cannot be represented in
the current code page -->
+ <compilerarg value="/wd4819" if="is.msvc"/>
+
<defineset define="MACOSX" if="is.macosx"/>
<defineset define="FREEBSD" if="is.freebsd"/>
<defineset define="LINUX" if="is.linux"/>
Index: working_vm/vm/jitrino/src/jet/jdefs.h
===================================================================
--- working_vm/vm/jitrino/src/jet/jdefs.h (revision 809998)
+++ working_vm/vm/jitrino/src/jet/jdefs.h (working copy)
@@ -74,7 +74,9 @@
*/
#define MK_I64(a) ((jlong)(a ## L))
#define snprintf _snprintf
- #define vsnprintf _vsnprintf
+ #if _MSC_VER < 1500
+ #define vsnprintf _vsnprintf
+ #endif
#ifndef strcasecmp
#ifdef _MSC_VER
#define strcasecmp _stricmp
Index: working_vm/vm/jitrino/src/shared/mkernel.h
===================================================================
--- working_vm/vm/jitrino/src/shared/mkernel.h (revision 809998)
+++ working_vm/vm/jitrino/src/shared/mkernel.h (working copy)
@@ -44,7 +44,9 @@
// .. sdkupdate/2600.2180.7/contents.htm
#include <winsock2.h>
#include <windows.h>
- #define vsnprintf _vsnprintf
+ #if _MSC_VER < 1500
+ #define vsnprintf _vsnprintf
+ #endif
#pragma pack(pop)
// ... well, just to be absolutely sure...
#undef min
Index: working_vm/vm/port/src/file_io/win/canonical.c
===================================================================
--- working_vm/vm/port/src/file_io/win/canonical.c (revision 809998)
+++ working_vm/vm/port/src/file_io/win/canonical.c (working copy)
@@ -20,12 +20,12 @@
*/
#include <direct.h>
-#include <windows.h>
-
#include <apr_strings.h>
#include "port_filepath.h"
+#include <windows.h>
+
APR_DECLARE(char *) port_filepath_canonical(const char* original,
apr_pool_t* pool)
{