you're not looking for a flag to nmake, you're looking for a flag to cl.exe.

You also need to build in a directory where the Integrity Level is set
to Medium, not High, if you're building on Vista.  (this is part of
the access control list on the directory.)

-Kyle H

On Wed, Sep 17, 2008 at 9:32 PM, DHARNA, AJAY [AG/1000]
<[EMAIL PROTECTED]> wrote:
> Thanks for your help Ger, I looked up "nmake options"
> (http://msdn.microsoft.com/en-us/library/afyyse50(VS.80).aspx) and there
> was the "-c" option:
>
> /C      Suppresses default output, including nonfatal NMAKE errors or
> warnings, timestamps, and NMAKE copyright message.      Suppresses
> warnings issued by /K.
>
> After I ran the command with -c, (ie) nmake -c -f ms\ntdll.mak
> I am getting the same error:
>
> crypto\bn\bn_nist.c(718) : error C2220: warning treated as error - no
> object file generated
> crypto\bn\bn_nist.c(718) : warning C4101: 'r_d' : unreferenced local
> variable
> NMAKE :  U1077: 'cl' : return code '0x2'
> Stop.
>
> After reading through the other options, I decided to use "-k" option
> (ie) (ie) nmake -k -f ms\ntdll.mak
>
> /K      Continues building unrelated dependencies, if a command returns
> an error. Also issues a warning and returns an exit code        of 1. By
> default, NMAKE halts if any command returns a nonzero exit code.
> Warnings from /K are suppressed by /C; /I       overrides /K if both are
> specified.
>
> It seems to get passed previous error but now I am getting this error:
>
> Its looks like /K surpresses all error message - am I using the right
> option(s)
> Thank you for your help.
> ------------------------------------------------------------------------
> --------------------------------------------------------------
> ERROR
> ------------------------------------------------------------------------
> ---------------------------------------------------------------
> crypto\x509v3\v3_ncons.c(487) : error C2220: warning treated as error -
> no objec
> t file generated
> crypto\x509v3\v3_ncons.c(487) : warning C4018: '>' : signed/unsigned
> mismatch
> NMAKE : warning U4010: 'tmp32dll\v3_ncons.obj' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\libeay32.dll' : not all dependents
> available; t
> arget not built
>        link /nologo /subsystem:console /opt:ref /dll
> /out:out32dll\ssleay32.dll
>  /def:ms/SSLEAY32.def @C:\DOCUME~1\ARDHARN\LOCALS~1\Temp\nm231.tmp
> LINK : fatal error LNK1181: cannot open input file
> 'out32dll\libeay32.lib'
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
>        link /nologo /subsystem:console /opt:ref /dll
> /out:out32dll\4758cca.dll
>  @C:\DOCUME~1\ARDHARN\LOCALS~1\Temp\nm233.tmp
> LINK : fatal error LNK1181: cannot open input file
> 'out32dll\libeay32.lib'
> NMAKE : warning U4010: 'out32dll\4758cca.dll' : build failed; /K
> specified, cont
> inuing ...
>        link /nologo /subsystem:console /opt:ref /dll
> /out:out32dll\aep.dll  @C:
> \DOCUME~1\ARDHARN\LOCALS~1\Temp\nm235.tmp
> LINK : fatal error LNK1181: cannot open input file
> 'out32dll\libeay32.lib'
> NMAKE : warning U4010: 'out32dll\aep.dll' : build failed; /K specified,
> continui
> ng ...
>        link /nologo /subsystem:console /opt:ref /dll
> /out:out32dll\atalla.dll
> @C:\DOCUME~1\ARDHARN\LOCALS~1\Temp\nm237.tmp
> LINK : fatal error LNK1181: cannot open input file
> 'out32dll\libeay32.lib'
> NMAKE : warning U4010: 'out32dll\atalla.dll' : build failed; /K
> specified, conti
> nuing ...
>        link /nologo /subsystem:console /opt:ref /dll
> /out:out32dll\cswift.dll
> @C:\DOCUME~1\ARDHARN\LOCALS~1\Temp\nm239.tmp
> LINK : fatal error LNK1181: cannot open input file
> 'out32dll\libeay32.lib'
> NMAKE : warning U4010: 'out32dll\cswift.dll' : build failed; /K
> specified, conti
> nuing ...
>        link /nologo /subsystem:console /opt:ref /dll
> /out:out32dll\gmp.dll  @C:
> \DOCUME~1\ARDHARN\LOCALS~1\Temp\nm23B.tmp
> LINK : fatal error LNK1181: cannot open input file
> 'out32dll\libeay32.lib'
> NMAKE : warning U4010: 'out32dll\gmp.dll' : build failed; /K specified,
> continui
> ng ...
>        link /nologo /subsystem:console /opt:ref /dll
> /out:out32dll\chil.dll  @C
> :\DOCUME~1\ARDHARN\LOCALS~1\Temp\nm23D.tmp
> LINK : fatal error LNK1181: cannot open input file
> 'out32dll\libeay32.lib'
> NMAKE : warning U4010: 'out32dll\chil.dll' : build failed; /K specified,
> continu
> ing ...
>        link /nologo /subsystem:console /opt:ref /dll
> /out:out32dll\nuron.dll  @
> C:\DOCUME~1\ARDHARN\LOCALS~1\Temp\nm23F.tmp
> LINK : fatal error LNK1181: cannot open input file
> 'out32dll\libeay32.lib'
> NMAKE : warning U4010: 'out32dll\nuron.dll' : build failed; /K
> specified, contin
> uing ...
>        link /nologo /subsystem:console /opt:ref /dll
> /out:out32dll\sureware.dll
>  @C:\DOCUME~1\ARDHARN\LOCALS~1\Temp\nm241.tmp
> LINK : fatal error LNK1181: cannot open input file
> 'out32dll\libeay32.lib'
> NMAKE : warning U4010: 'out32dll\sureware.dll' : build failed; /K
> specified, con
> tinuing ...
>        link /nologo /subsystem:console /opt:ref /dll
> /out:out32dll\ubsec.dll  @
> C:\DOCUME~1\ARDHARN\LOCALS~1\Temp\nm243.tmp
> LINK : fatal error LNK1181: cannot open input file
> 'out32dll\libeay32.lib'
> NMAKE : warning U4010: 'out32dll\ubsec.dll' : build failed; /K
> specified, contin
> uing ...
>        link /nologo /subsystem:console /opt:ref /dll
> /out:out32dll\padlock.dll
>  @C:\DOCUME~1\ARDHARN\LOCALS~1\Temp\nm245.tmp
> LINK : fatal error LNK1181: cannot open input file
> 'out32dll\libeay32.lib'
> NMAKE : warning U4010: 'out32dll\padlock.dll' : build failed; /K
> specified, cont
> inuing ...
>        link /nologo /subsystem:console /opt:ref /dll
> /out:out32dll\capi.dll  @C
> :\DOCUME~1\ARDHARN\LOCALS~1\Temp\nm247.tmp
> LINK : fatal error LNK1181: cannot open input file
> 'out32dll\libeay32.lib'
> NMAKE : warning U4010: 'out32dll\capi.dll' : build failed; /K specified,
> continu
> ing ...
> NMAKE : warning U4011: 'lib' : not all dependents available; target not
> built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\md2test.exe' : not all dependents
> available; ta
> rget not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\md4test.exe' : not all dependents
> available; ta
> rget not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\md5test.exe' : not all dependents
> available; ta
> rget not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\shatest.exe' : not all dependents
> available; ta
> rget not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\sha1test.exe' : not all dependents
> available; t
> arget not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\sha256t.exe' : not all dependents
> available; ta
> rget not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\sha512t.exe' : not all dependents
> available; ta
> rget not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\hmactest.exe' : not all dependents
> available; t
> arget not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\rmdtest.exe' : not all dependents
> available; ta
> rget not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\destest.exe' : not all dependents
> available; ta
> rget not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\rc2test.exe' : not all dependents
> available; ta
> rget not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\rc4test.exe' : not all dependents
> available; ta
> rget not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\ideatest.exe' : not all dependents
> available; t
> arget not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\bftest.exe' : not all dependents
> available; tar
> get not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\casttest.exe' : not all dependents
> available; t
> arget not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\bntest.exe' : not all dependents
> available; tar
> get not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\exptest.exe' : not all dependents
> available; ta
> rget not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\rsa_test.exe' : not all dependents
> available; t
> arget not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\dsatest.exe' : not all dependents
> available; ta
> rget not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\dhtest.exe' : not all dependents
> available; tar
> get not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\ectest.exe' : not all dependents
> available; tar
> get not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\ecdhtest.exe' : not all dependents
> available; t
> arget not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\ecdsatest.exe' : not all dependents
> available;
> target not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\randtest.exe' : not all dependents
> available; t
> arget not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\evp_test.exe' : not all dependents
> available; t
> arget not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\enginetest.exe' : not all dependents
> available;
>  target not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\wp_test.exe' : not all dependents
> available; ta
> rget not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\ssltest.exe' : not all dependents
> available; ta
> rget not built
> NMAKE : warning U4010: 'out32dll\ssleay32.dll' : build failed; /K
> specified, con
> tinuing ...
> NMAKE : warning U4011: 'out32dll\openssl.exe' : not all dependents
> available; ta
> rget not built
> NMAKE : warning U4011: 'exe' : not all dependents available; target not
> built
> NMAKE : warning U4011: 'all' : not all dependents available; target not
> built
> ------------------------------------------------------------------------
> -----------------------------------------------------------------------
>
>
>
> Thank you
> Aj
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Ger Hobbelt
> Sent: Wednesday, September 17, 2008 2:08 AM
> To: openssl-users@openssl.org
> Subject: Re: errors while installing openssl-SNAP-20080915
>
> On Wed, Sep 17, 2008 at 6:10 AM, DHARNA, AJAY [AG/1000]
> <[EMAIL PROTECTED]> wrote:
> [...]
>>         cl /Fotmp32dll\bn_nist.obj  -Iinc32 -Itmp32dll /MD /Ox /O2
> /Ob2
> [...]
>> crypto\bn\bn_nist.c(718) : error C2220: warning treated as error - no
> object
> [...]
>> Please let me know how I can get past this error message.
>
> Turn off the commandline switch which forces warnings to be treated as
> errors (sorry, don't know that one off the top of my head, but it's in
> the MSVC documentation anyway) and you'd be good to go.
>
> I do not use the Win/VC makefiles or Windows configure script (I use
> MSVC project files for that platform) so the relevant cl.exe
> commandline switch may be introduced by the configure script, but I
> expact it's more probably coming from an environment viriable; anyhow
> 3 places to look for the switch: the makefiles themselves, the Windows
> config script and your environment variables.
>
>
> --
> Met vriendelijke groeten / Best regards,
>
> Ger Hobbelt
>
> --------------------------------------------------
> web: http://www.hobbelt.com/
>  http://www.hebbut.net/
> mail: [EMAIL PROTECTED]
> mobile: +31-6-11 120 978
> --------------------------------------------------
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------------------------------------------
> This e-mail message may contain privileged and/or confidential information, 
> and is intended to be received only by persons entitled to receive such 
> information. If you have received this e-mail in error, please notify the 
> sender immediately. Please delete it and all attachments from any servers, 
> hard drives or any other media. Other use of this e-mail by you is strictly 
> prohibited.
>
>
> All e-mails and attachments sent and received are subject to monitoring, 
> reading and archival by Monsanto, including its subsidiaries. The recipient 
> of this e-mail is solely responsible for checking for the presence of 
> "Viruses" or other "Malware". Monsanto, along with its subsidiaries, accepts 
> no liability for any damage caused by any such code transmitted by or 
> accompanying this e-mail or any attachment.
> ---------------------------------------------------------------------------------------------------------
>
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           [EMAIL PROTECTED]
>
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to