You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "chenjianghong (JIRA)" <ji...@apache.org> on 2006/08/10 17:27:13 UTC

[jira] Created: (HARMONY-1142) compile classlib error

compile classlib error
----------------------

                 Key: HARMONY-1142
                 URL: http://issues.apache.org/jira/browse/HARMONY-1142
             Project: Harmony
          Issue Type: Bug
          Components: build - test - ci
         Environment: windows 2003 server+ visual studio 2005+ jdk 1.5
            Reporter: chenjianghong



     [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 -Ogity
b1 -W3 -GF -Gs -MD -Zi -Zm400  -D_DLL -D_MT -DWIN32 -D_WIN32_WINNT=0x0501 -D_WINSOCKAPI_ -DWINVER=0x0400   /IF:\OpenSource\apache.org\src\incubator\harmony\enhanced\classlib\deploy\include /IF:\OpenSo
urce\apache.org\src\incubator\harmony\enhanced\classlib\deploy\jdk\include /I.  /Iinclude /I..\..\gl\windows\include  -DUNICODE -D_UNICODE -FowinFont.obj winFont.cpp
     [exec] cl : Command line warning D9035 : option 'Og' has been deprecated and will be removed in a future release
     [exec] winFont.cpp
     [exec] winFont.cpp(201) : warning C4996: 'wcscpy' was declared deprecated
     [exec]         E:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(250) : see declaration of 'wcscpy'
     [exec]         Message: 'This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
     [exec] winFont.cpp(240) : warning C4996: '_snwprintf' was declared deprecated
     [exec]         E:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(450) : see declaration of '_snwprintf'
     [exec]         Message: 'This function or variable may be unsafe. Consider using _snwprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
     [exec] winFont.cpp(242) : warning C4996: 'wcsncpy' was declared deprecated
     [exec]         E:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(270) : see declaration of 'wcsncpy'
     [exec]         Message: 'This function or variable may be unsafe. Consider using wcsncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
     [exec] winFont.cpp(335) : warning C4996: 'wcsncpy' was declared deprecated
     [exec]         E:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(270) : see declaration of 'wcsncpy'
     [exec]         Message: 'This function or variable may be unsafe. Consider using wcsncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
     [exec] winFont.cpp(378) : error C2664: 'JNIEnv_::NewString' : cannot convert parameter 1 from 'TCHAR *' to 'const jchar *'
     [exec]         Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
     [exec] winFont.cpp(432) : error C2664: 'JNIEnv_::NewString' : cannot convert parameter 1 from 'TCHAR *' to 'const jchar *'
     [exec]         Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
     [exec] winFont.cpp(470) : error C2664: 'JNIEnv_::ReleaseStringCritical' : cannot convert parameter 2 from 'const TCHAR *' to 'const jchar *'
     [exec]         Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
     [exec] winFont.cpp(551) : error C2440: '=' : cannot convert from 'jchar *' to 'const TCHAR *'
     [exec]         Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
     [exec] winFont.cpp(561) : error C2664: 'JNIEnv_::ReleaseStringCritical' : cannot convert parameter 2 from 'const TCHAR *' to 'const jchar *'
     [exec]         Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
     [exec] winFont.cpp(682) : warning C4996: 'wcscpy' was declared deprecated
     [exec]         E:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(250) : see declaration of 'wcscpy'
     [exec]         Message: 'This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
     [exec] winFont.cpp(684) : error C2664: 'JNIEnv_::NewString' : cannot convert parameter 1 from 'TCHAR [64]' to 'const jchar *'
     [exec]         Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
     [exec] winFont.cpp(717) : warning C4996: 'wcscpy' was declared deprecated
     [exec]         E:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(250) : see declaration of 'wcscpy'
     [exec]         Message: 'This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
     [exec] winFont.cpp(719) : error C2664: 'JNIEnv_::NewString' : cannot convert parameter 1 from 'TCHAR [64]' to 'const jchar *'
     [exec]         Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
     [exec] winFont.cpp(759) : error C2664: 'JNIEnv_::ReleaseStringCritical' : cannot convert parameter 2 from 'const TCHAR *' to 'const jchar *'
     [exec]         Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
     [exec] winFont.cpp(874) : error C2440: '=' : cannot convert from 'const wchar_t *' to 'TCHAR *'
     [exec]         Conversion loses qualifiers
     [exec] winFont.cpp(900) : error C2664: 'JNIEnv_::NewString' : cannot convert parameter 1 from 'TCHAR *' to 'const jchar *'
     [exec]         Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
     [exec] winFont.cpp(1217) : error C2664: 'JNIEnv_::ReleaseStringCritical' : cannot convert parameter 2 from 'TCHAR *' to 'const jchar *'
     [exec]         Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
     [exec] winFont.cpp(1402) : warning C4996: 'wcscat' was declared deprecated
     [exec]         E:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(243) : see declaration of 'wcscat'
     [exec]         Message: 'This function or variable may be unsafe. Consider using wcscat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
     [exec] winFont.cpp(1405) : warning C4996: 'wcscat' was declared deprecated
     [exec]         E:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(243) : see declaration of 'wcscat'
     [exec]         Message: 'This function or variable may be unsafe. Consider using wcscat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
     [exec] winFont.cpp(1406) : warning C4996: 'wcscat' was declared deprecated
     [exec]         E:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(243) : see declaration of 'wcscat'
     [exec]         Message: 'This function or variable may be unsafe. Consider using wcscat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
     [exec] winFont.cpp(1437) : error C2664: 'JNIEnv_::NewString' : cannot convert parameter 1 from 'TCHAR *' to 'const jchar *'
     [exec]         Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
     [exec] winFont.cpp(1481) : error C2440: '=' : cannot convert from 'jchar *' to 'const TCHAR *'
     [exec]         Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
     [exec] winFont.cpp(1489) : error C2664: 'JNIEnv_::ReleaseStringCritical' : cannot convert parameter 2 from 'const TCHAR *' to 'const jchar *'
     [exec]         Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
     [exec] NMAKE : fatal error U1077: '"E:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.EXE"' : return code '0x2'
     [exec] Stop.

BUILD FAILED
F:\OpenSource\apache.org\src\incubator\harmony\enhanced\classlib\build.xml:95: The following error occurred while executing this line:
F:\OpenSource\apache.org\src\incubator\harmony\enhanced\classlib\make\build-native.xml:78: The following error occurred while executing this line:
F:\OpenSource\apache.org\src\incubator\harmony\enhanced\classlib\modules\awt\build.xml:143: The following error occurred while executing this line:
F:\OpenSource\apache.org\src\incubator\harmony\enhanced\classlib\make\properties.xml:224: exec returned: 2


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-1142) compile classlib error

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1142?page=comments#action_12448116 ] 
            
Tim Ellison commented on HARMONY-1142:
--------------------------------------

Please can you check with a more recent version of the harmony code to see if this problem still exists.
Note that there are now instructions on the website for building the code
    http://incubator.apache.org/harmony/quickhelp_contributors.html

> compile classlib error
> ----------------------
>
>                 Key: HARMONY-1142
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1142
>             Project: Harmony
>          Issue Type: Bug
>          Components: build - test - ci
>         Environment: windows 2003 server+ visual studio 2005+ jdk 1.5
>            Reporter: chenjianghong
>
>      [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 -Ogity
> b1 -W3 -GF -Gs -MD -Zi -Zm400  -D_DLL -D_MT -DWIN32 -D_WIN32_WINNT=0x0501 -D_WINSOCKAPI_ -DWINVER=0x0400   /IF:\OpenSource\apache.org\src\incubator\harmony\enhanced\classlib\deploy\include /IF:\OpenSo
> urce\apache.org\src\incubator\harmony\enhanced\classlib\deploy\jdk\include /I.  /Iinclude /I..\..\gl\windows\include  -DUNICODE -D_UNICODE -FowinFont.obj winFont.cpp
>      [exec] cl : Command line warning D9035 : option 'Og' has been deprecated and will be removed in a future release
>      [exec] winFont.cpp
>      [exec] winFont.cpp(201) : warning C4996: 'wcscpy' was declared deprecated
>      [exec]         E:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(250) : see declaration of 'wcscpy'
>      [exec]         Message: 'This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
>      [exec] winFont.cpp(240) : warning C4996: '_snwprintf' was declared deprecated
>      [exec]         E:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(450) : see declaration of '_snwprintf'
>      [exec]         Message: 'This function or variable may be unsafe. Consider using _snwprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
>      [exec] winFont.cpp(242) : warning C4996: 'wcsncpy' was declared deprecated
>      [exec]         E:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(270) : see declaration of 'wcsncpy'
>      [exec]         Message: 'This function or variable may be unsafe. Consider using wcsncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
>      [exec] winFont.cpp(335) : warning C4996: 'wcsncpy' was declared deprecated
>      [exec]         E:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(270) : see declaration of 'wcsncpy'
>      [exec]         Message: 'This function or variable may be unsafe. Consider using wcsncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
>      [exec] winFont.cpp(378) : error C2664: 'JNIEnv_::NewString' : cannot convert parameter 1 from 'TCHAR *' to 'const jchar *'
>      [exec]         Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
>      [exec] winFont.cpp(432) : error C2664: 'JNIEnv_::NewString' : cannot convert parameter 1 from 'TCHAR *' to 'const jchar *'
>      [exec]         Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
>      [exec] winFont.cpp(470) : error C2664: 'JNIEnv_::ReleaseStringCritical' : cannot convert parameter 2 from 'const TCHAR *' to 'const jchar *'
>      [exec]         Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
>      [exec] winFont.cpp(551) : error C2440: '=' : cannot convert from 'jchar *' to 'const TCHAR *'
>      [exec]         Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
>      [exec] winFont.cpp(561) : error C2664: 'JNIEnv_::ReleaseStringCritical' : cannot convert parameter 2 from 'const TCHAR *' to 'const jchar *'
>      [exec]         Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
>      [exec] winFont.cpp(682) : warning C4996: 'wcscpy' was declared deprecated
>      [exec]         E:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(250) : see declaration of 'wcscpy'
>      [exec]         Message: 'This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
>      [exec] winFont.cpp(684) : error C2664: 'JNIEnv_::NewString' : cannot convert parameter 1 from 'TCHAR [64]' to 'const jchar *'
>      [exec]         Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
>      [exec] winFont.cpp(717) : warning C4996: 'wcscpy' was declared deprecated
>      [exec]         E:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(250) : see declaration of 'wcscpy'
>      [exec]         Message: 'This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
>      [exec] winFont.cpp(719) : error C2664: 'JNIEnv_::NewString' : cannot convert parameter 1 from 'TCHAR [64]' to 'const jchar *'
>      [exec]         Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
>      [exec] winFont.cpp(759) : error C2664: 'JNIEnv_::ReleaseStringCritical' : cannot convert parameter 2 from 'const TCHAR *' to 'const jchar *'
>      [exec]         Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
>      [exec] winFont.cpp(874) : error C2440: '=' : cannot convert from 'const wchar_t *' to 'TCHAR *'
>      [exec]         Conversion loses qualifiers
>      [exec] winFont.cpp(900) : error C2664: 'JNIEnv_::NewString' : cannot convert parameter 1 from 'TCHAR *' to 'const jchar *'
>      [exec]         Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
>      [exec] winFont.cpp(1217) : error C2664: 'JNIEnv_::ReleaseStringCritical' : cannot convert parameter 2 from 'TCHAR *' to 'const jchar *'
>      [exec]         Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
>      [exec] winFont.cpp(1402) : warning C4996: 'wcscat' was declared deprecated
>      [exec]         E:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(243) : see declaration of 'wcscat'
>      [exec]         Message: 'This function or variable may be unsafe. Consider using wcscat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
>      [exec] winFont.cpp(1405) : warning C4996: 'wcscat' was declared deprecated
>      [exec]         E:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(243) : see declaration of 'wcscat'
>      [exec]         Message: 'This function or variable may be unsafe. Consider using wcscat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
>      [exec] winFont.cpp(1406) : warning C4996: 'wcscat' was declared deprecated
>      [exec]         E:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(243) : see declaration of 'wcscat'
>      [exec]         Message: 'This function or variable may be unsafe. Consider using wcscat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
>      [exec] winFont.cpp(1437) : error C2664: 'JNIEnv_::NewString' : cannot convert parameter 1 from 'TCHAR *' to 'const jchar *'
>      [exec]         Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
>      [exec] winFont.cpp(1481) : error C2440: '=' : cannot convert from 'jchar *' to 'const TCHAR *'
>      [exec]         Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
>      [exec] winFont.cpp(1489) : error C2664: 'JNIEnv_::ReleaseStringCritical' : cannot convert parameter 2 from 'const TCHAR *' to 'const jchar *'
>      [exec]         Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
>      [exec] NMAKE : fatal error U1077: '"E:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.EXE"' : return code '0x2'
>      [exec] Stop.
> BUILD FAILED
> F:\OpenSource\apache.org\src\incubator\harmony\enhanced\classlib\build.xml:95: The following error occurred while executing this line:
> F:\OpenSource\apache.org\src\incubator\harmony\enhanced\classlib\make\build-native.xml:78: The following error occurred while executing this line:
> F:\OpenSource\apache.org\src\incubator\harmony\enhanced\classlib\modules\awt\build.xml:143: The following error occurred while executing this line:
> F:\OpenSource\apache.org\src\incubator\harmony\enhanced\classlib\make\properties.xml:224: exec returned: 2

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira