harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas" <dava...@gmail.com>
Subject Re: [build] WinXP with Microsoft Visual C++ 2005 Express Edition
Date Fri, 19 Oct 2007 15:53:30 GMT
Oliver,

thanks! Now it complains of a missing ml command. am in the process of
downloading MASM
(http://www.microsoft.com/downloads/details.aspx?FamilyID=7a1c9da0-0510-44a2-b042-7ef370530c64&displaylang=en)
will drop a note if that works.

-- dims

On 10/19/07, Oliver Deakin <oliver.deakin@googlemail.com> wrote:
> Hey Dims,
>
> I think this came up a while back [1] - it seems MS changed some APIs to
> more secure _s versions in MSVC 2005, with the old ones causing compiler
> errors as you are seeing [2]. From the error message it appears that
> adding a definition of _CRT_SECURE_NO_WARNINGS to the compiler options
> should disable deprecation. I think the easiest way to do this is to add
> -D_CRT_SECURE_NO_WARNINGS to the definition of HYCOMMONCFLAGS in
> depends/build/defines.mak. Hopefully a rebuild will work for you then,
> although I have never tried this myself (Im sticking to MSVC .NET 2003
> for the time being).
>
> Regards,
> Oliver
>
> [1]
> http://mail-archives.apache.org/mod_mbox/harmony-dev/200607.mbox/%3c9623c9a50607060219r2483893cpb196aec557e70a82@mail.gmail.com%3e
> [2] http://msdn2.microsoft.com/en-us/library/8ef0s5kh(VS.80).aspx
>
> Davanum Srinivas wrote:
> > Team,
> >
> > Anyone using the 2005 Express Edition? Here's what i see.
> >
> > -build-native:
> >      [exec]     cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS
> > -FIsehmap.h -D_X86_=1  -DWIN32 -D_WIN32 -W3 -D_WIN95
> > -D_WIN32_WINDOWS=0x040
> > 0 /D_WIN32_DCOM -D_WIN32_IE=0x0500 -DWINVER=0x0400 -Ogityb1 -DNDEBUG
> > -WX -GF -Gs -MD -Zm400  -D_DLL -D_MT -D_WINSOCKAPI_
> > /IC:\APACHE\harmony\
> > working_classlib\deploy\include
> > /IC:\APACHE\harmony\working_classlib\deploy\jdk\include /I.
> > /I..\shared\ -Fo..\shared\libglob.obj ..\shared\lib
> > glob.c
> >      [exec] cl : Command line warning D9035 : option 'Og' has been
> > deprecated and will be removed in a future release
> >      [exec] libglob.c
> >      [exec]     cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS
> > -FIsehmap.h -D_X86_=1  -DWIN32 -D_WIN32 -W3 -D_WIN95
> > -D_WIN32_WINDOWS=0x040
> > 0 /D_WIN32_DCOM -D_WIN32_IE=0x0500 -DWINVER=0x0400 -Ogityb1 -DNDEBUG
> > -WX -GF -Gs -MD -Zm400  -D_DLL -D_MT -D_WINSOCKAPI_
> > /IC:\APACHE\harmony\
> > working_classlib\deploy\include
> > /IC:\APACHE\harmony\working_classlib\deploy\jdk\include /I.
> > /I..\shared\ -Fo..\shared\iohelp.obj ..\shared\iohe
> > lp.c
> >      [exec] cl : Command line warning D9035 : option 'Og' has been
> > deprecated and will be removed in a future release
> >      [exec] iohelp.c
> >      [exec]     cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS
> > -FIsehmap.h -D_X86_=1  -DWIN32 -D_WIN32 -W3 -D_WIN95
> > -D_WIN32_WINDOWS=0x040
> > 0 /D_WIN32_DCOM -D_WIN32_IE=0x0500 -DWINVER=0x0400 -Ogityb1 -DNDEBUG
> > -WX -GF -Gs -MD -Zm400  -D_DLL -D_MT -D_WINSOCKAPI_
> > /IC:\APACHE\harmony\
> > working_classlib\deploy\include
> > /IC:\APACHE\harmony\working_classlib\deploy\jdk\include /I.
> > /I..\shared\ -Fo..\shared\exceptions.obj ..\shared\
> > exceptions.c
> >      [exec] cl : Command line warning D9035 : option 'Og' has been
> > deprecated and will be removed in a future release
> >      [exec] exceptions.c
> >      [exec]     cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS
> > -FIsehmap.h -D_X86_=1  -DWIN32 -D_WIN32 -W3 -D_WIN95
> > -D_WIN32_WINDOWS=0x040
> > 0 /D_WIN32_DCOM -D_WIN32_IE=0x0500 -DWINVER=0x0400 -Ogityb1 -DNDEBUG
> > -WX -GF -Gs -MD -Zm400  -D_DLL -D_MT -D_WINSOCKAPI_
> > /IC:\APACHE\harmony\
> > working_classlib\deploy\include
> > /IC:\APACHE\harmony\working_classlib\deploy\jdk\include /I.
> > /I..\shared\ -Fo..\shared\strhelp.obj ..\shared\str
> > help.c
> >      [exec] cl : Command line warning D9035 : option 'Og' has been
> > deprecated and will be removed in a future release
> >      [exec] strhelp.c
> >      [exec] ..\shared\strhelp.c(73) : error C2220: warning treated as
> > error - no 'object' file generated
> >      [exec] ..\shared\strhelp.c(73) : warning C4996: 'strcat': This
> > function or variable may be unsafe. Consider using strcat_s instead.
> > To dis
> > able deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
> >      [exec] NMAKE : fatal error U1077: '"C:\Program Files\Microsoft
> > Visual Studio 8\VC\BIN\cl.EXE"' : return code '0x2'
> >      [exec] Stop.
> >
> > thanks,
> > dims
> >
> >
>
> --
> Oliver Deakin
> Unless stated otherwise above:
> IBM United Kingdom Limited - Registered in England and Wales with number 741598.
> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
>
>


-- 
Davanum Srinivas :: http://davanum.wordpress.com

Mime
View raw message