Wireshark-users: Re: [Wireshark-users] Build Error U1077

From: Gerald Combs <gerald@xxxxxxxxxxxxx>
Date: Sat, 16 Aug 2008 08:36:53 -0700
Are you using Visual C++ 2005 or 2005EE, and is MSVC_VARIANT set
accordingly in config.nmake?

Sandoval, Andres R wrote:
> I have posted the full code to my errors.  Thank you for the assistance!
> 
> 
> C:\Wireshark>nmake -f makefile.nmake all
> 
> Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
> Copyright (C) Microsoft Corporation.  All rights reserved.
> 
>         cd tools
>         "C:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" /
>           -f Makefile.nmake
> 
> Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
> Copyright (C) Microsoft Corporation.  All rights reserved.
> 
>         cd lemon
>         "C:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" /
>           -f Makefile.nmake
> 
> Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
> Copyright (C) Microsoft Corporation.  All rights reserved.
> 
>         cl -WX -D_U_="" /Zi /W3 /MD /DMSC_VER_REQUIRED=1310 lemon.c
> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42
> for 80x86
> Copyright (C) Microsoft Corporation.  All rights reserved.
> 
> lemon.c
> lemon.c(1342) : error C2220: warning treated as error - no 'object' file
> generat
> ed
> lemon.c(1342) : warning C4996: 'sprintf' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\stdio.h(345) : see
>  declaration of 'sprintf'
>         Message: 'This function or variable may be unsafe. Consider
> using sprint
> f_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
> online he
> lp for details.'
> lemon.c(1344) : warning C4996: 'sprintf' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\stdio.h(345) : see
>  declaration of 'sprintf'
>         Message: 'This function or variable may be unsafe. Consider
> using sprint
> f_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
> online he
> lp for details.'
> lemon.c(1350) : warning C4996: 'vsprintf' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\stdio.h(345) : see
>  declaration of 'vsprintf'
>         Message: 'This function or variable may be unsafe. Consider
> using vsprin
> tf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
> online h
> elp for details.'
> lemon.c(1404) : warning C4996: 'strcpy' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\string.h(73) : see
>  declaration of 'strcpy'
>         Message: 'This function or variable may be unsafe. Consider
> using strcpy
> _s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
> online hel
> p for details.'
> lemon.c(1410) : warning C4996: 'strcpy' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\string.h(73) : see
>  declaration of 'strcpy'
>         Message: 'This function or variable may be unsafe. Consider
> using strcpy
> _s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
> online hel
> p for details.'
> lemon.c(1436) : warning C4996: 'strcpy' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\string.h(73) : see
>  declaration of 'strcpy'
>         Message: 'This function or variable may be unsafe. Consider
> using strcpy
> _s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
> online hel
> p for details.'
> lemon.c(2522) : warning C4996: 'fopen' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\stdio.h(234) : see
>  declaration of 'fopen'
>         Message: 'This function or variable may be unsafe. Consider
> using fopen_
> s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
> online help
>  for details.'
> lemon.c(2731) : warning C4996: 'strcpy' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\string.h(73) : see
>  declaration of 'strcpy'
>         Message: 'This function or variable may be unsafe. Consider
> using strcpy
> _s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
> online hel
> p for details.'
> lemon.c(2734) : warning C4996: 'strcat' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\string.h(78) : see
>  declaration of 'strcat'
>         Message: 'This function or variable may be unsafe. Consider
> using strcat
> _s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
> online hel
> p for details.'
> lemon.c(2772) : warning C4996: 'strcpy' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\string.h(73) : see
>  declaration of 'strcpy'
>         Message: 'This function or variable may be unsafe. Consider
> using strcpy
> _s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
> online hel
> p for details.'
> lemon.c(2774) : warning C4996: 'strcat' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\string.h(78) : see
>  declaration of 'strcat'
>         Message: 'This function or variable may be unsafe. Consider
> using strcat
> _s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
> online hel
> p for details.'
> lemon.c(2778) : warning C4996: 'strcat' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\string.h(78) : see
>  declaration of 'strcat'
>         Message: 'This function or variable may be unsafe. Consider
> using strcat
> _s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
> online hel
> p for details.'
> lemon.c(2785) : warning C4996: 'fopen' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\stdio.h(234) : see
>  declaration of 'fopen'
>         Message: 'This function or variable may be unsafe. Consider
> using fopen_
> s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
> online help
>  for details.'
> lemon.c(2941) : warning C4996: 'sprintf' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\stdio.h(345) : see
>  declaration of 'sprintf'
>         Message: 'This function or variable may be unsafe. Consider
> using sprint
> f_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
> online he
> lp for details.'
> lemon.c(3004) : warning C4996: 'sprintf' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\stdio.h(345) : see
>  declaration of 'sprintf'
>         Message: 'This function or variable may be unsafe. Consider
> using sprint
> f_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
> online he
> lp for details.'
> lemon.c(3007) : warning C4996: 'getenv' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\stdlib.h(483) : se
> e declaration of 'getenv'
>         Message: 'This function or variable may be unsafe. Consider
> using _dupen
> v_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
> online he
> lp for details.'
> lemon.c(3016) : warning C4996: 'sprintf' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\stdio.h(345) : see
>  declaration of 'sprintf'
>         Message: 'This function or variable may be unsafe. Consider
> using sprint
> f_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
> online he
> lp for details.'
> lemon.c(3088) : warning C4996: 'strdup' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\string.h(205) : se
> e declaration of 'strdup'
>         Message: 'The POSIX name for this item is deprecated. Instead,
> use the I
> SO C++ conformant name: _strdup. See online help for details.'
> lemon.c(3094) : warning C4996: 'sprintf' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\stdio.h(345) : see
>  declaration of 'sprintf'
>         Message: 'This function or variable may be unsafe. Consider
> using sprint
> f_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
> online he
> lp for details.'
> lemon.c(3096) : warning C4996: 'sprintf' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\stdio.h(345) : see
>  declaration of 'sprintf'
>         Message: 'This function or variable may be unsafe. Consider
> using sprint
> f_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
> online he
> lp for details.'
> lemon.c(3114) : warning C4996: 'fopen' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\stdio.h(234) : see
>  declaration of 'fopen'
>         Message: 'This function or variable may be unsafe. Consider
> using fopen_
> s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
> online help
>  for details.'
> lemon.c(3252) : warning C4996: 'sprintf' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\stdio.h(345) : see
>  declaration of 'sprintf'
>         Message: 'This function or variable may be unsafe. Consider
> using sprint
> f_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
> online he
> lp for details.'
> lemon.c(3254) : warning C4996: 'strcpy' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\string.h(73) : see
>  declaration of 'strcpy'
>         Message: 'This function or variable may be unsafe. Consider
> using strcpy
> _s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
> online hel
> p for details.'
> lemon.c(3467) : warning C4996: 'strcpy' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\string.h(73) : see
>  declaration of 'strcpy'
>         Message: 'This function or variable may be unsafe. Consider
> using strcpy
> _s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
> online hel
> p for details.'
> lemon.c(3827) : warning C4996: 'sprintf' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\stdio.h(345) : see
>  declaration of 'sprintf'
>         Message: 'This function or variable may be unsafe. Consider
> using sprint
> f_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
> online he
> lp for details.'
> lemon.c(3973) : warning C4996: 'sprintf' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\stdio.h(345) : see
>  declaration of 'sprintf'
>         Message: 'This function or variable may be unsafe. Consider
> using sprint
> f_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
> online he
> lp for details.'
> lemon.c(4198) : warning C4996: 'strcpy' was declared deprecated
>         C:\Program Files\Microsoft Visual Studio
> 8\VC\INCLUDE\string.h(73) : see
>  declaration of 'strcpy'
>         Message: 'This function or variable may be unsafe. Consider
> using strcpy
> _s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
> online hel
> p for details.'
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
> 8\VC\BIN\c
> l.EXE"' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
> 8\VC\BIN\n
> make.exe"' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
> 8\VC\BIN\n
> make.exe"' : return code '0x2'
> Stop.
> 
> C:\Wireshark>
> _______________________________________________
> Wireshark-users mailing list
> Wireshark-users@xxxxxxxxxxxxx
> https://wireshark.org/mailman/listinfo/wireshark-users