Re: [openssl-users] How to compile 1.1.1 under Windows

2018-10-23 Thread Richard Levitte
I discovered that very same issue earlier today.  Fix is in:

commit 28361a0b821d36e3b19271b0a7909d5355b0990c (HEAD -> OpenSSL_1_1_1-stable, 
origin/OpenSSL_1_1_1-stable)
Author: Richard Levitte 
Date:   Tue Oct 23 10:15:12 2018 +0200

RAND: ensure INT32_MAX is defined

This value is used to set DRBG_MAX_LENGTH

Reviewed-by: Matthias St. Pierre 
(Merged from https://github.com/openssl/openssl/pull/7467)

(cherry picked from commit f81b043ad856d8b9af5239a4978f8bd4b965dab9)

diff --git a/crypto/rand/rand_lcl.h b/crypto/rand/rand_lcl.h
index 5d9fb13ab..38614a85b 100644
--- a/crypto/rand/rand_lcl.h
+++ b/crypto/rand/rand_lcl.h
@@ -17,6 +17,8 @@
 # include 
 # include 
 
+# include "internal/numbers.h"
+
 /* How many times to read the TSC as a randomness source. */
 # define TSC_READ_COUNT 4
 
Cheers,
Richard

In message  
on Tue, 23 Oct 2018 03:31:53 -0700, Chris Clark  said:

> Next I tried an older stable snapshot
> openssl-1.1.1-stable-SNAP-20181018 which configured without issue, but
> I got a different compile result:
> 
> cl  /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MD /W3 /wd4090
> /nologo /O2 /I "." /I "crypto\include" /I "include" -D"L_ENDIAN"
> -D"OPENSSL_PIC" -D"OPENSSL_CPUID_OBJ" -D"OPENSSL_IA32_SSE2"
> -D"OPENSSL_BN_ASM_MONT" -D"OPENSSL_BN_ASM_MONT5"
> -D"OPENSSL_BN_ASM_GF2m" -D"SHA1_ASM" -D"SHA256_ASM" -D"SHA512_ASM"
> -D"KECCAK1600_ASM" -D"RC4_ASM" -D"MD5_ASM" -D"AES_ASM" -D"VPAES_ASM"
> -D"BSAES_ASM" -D"GHASH_ASM" -D"ECP_NISTZ256_ASM" -D"X25519_ASM"
> -D"PADLOCK_ASM" -D"POLY1305_ASM" -D"OPENSSLDIR=\"C:\\Program
> Files\\Common Files\\SSL\""
> -D"ENGINESDIR=\"C:\\openssl\\lib\\engines-1_1\"" -D"OPENSSL_SYS_WIN32"
> -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE"
> -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS"
> -D"OPENSSL_USE_APPLINK" -D"NDEBUG"  -c /Focrypto\rand\drbg_ctr.obj
> "crypto\rand\drbg_ctr.c"
> drbg_ctr.c
> crypto\rand\drbg_ctr.c(399) : warning C4267: '=' : conversion from
> 'size_t' to 'int', possible loss of data
> crypto\rand\drbg_ctr.c(420) : error C2065: 'INT32_MAX' : undeclared identifier
> crypto\rand\drbg_ctr.c(422) : error C2065: 'INT32_MAX' : undeclared identifier
> crypto\rand\drbg_ctr.c(423) : error C2065: 'INT32_MAX' : undeclared identifier
> crypto\rand\drbg_ctr.c(424) : error C2065: 'INT32_MAX' : undeclared identifier
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio 9.0\VC\BIN\amd64\cl.EXE"' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio 9.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
> Stop.
> On Tue, Oct 23, 2018 at 3:17 AM Chris Clark  wrote:
> >
> > Thanks Richard. I downloaded the latest stable snapshot in order to
> > bypass the UINT16_MAX definition bug, but this version fails to
> > configure:
> >
> > C:\openssl-1.1.1-stable-SNAP-20181022>perl Configure VC-WIN64A
> > --prefix=c:/openssl no-makedepend
> > Can't locate OpenSSL/Glob.pm in @INC (you may need to install the
> > OpenSSL::Glob module) (@INC contains:
> > C:/openssl-1.1.1-stable-SNAP-20181022/util/perl c:/perl/site/lib
> > c:/perl/lib .) at Configure line 20.
> > BEGIN failed--compilation aborted at Configure line 20.
> >
> >
> > I'll try some of the older stable snapshots.
> > On Tue, Oct 23, 2018 at 2:22 AM Richard Levitte  wrote:
> > >
> > > Silly me, I forgot we already fixed that bug:
> > >
> > > commit 6258e244bf702dc981c8ad63ab61133b8bbf2ba3
> > > Author: Richard Levitte 
> > > Date:   Wed Sep 12 02:06:26 2018 +0200
> > >
> > > crypto/sm2/sm2_sign.c: ensure UINT16_MAX is properly defined
> > >
> > > Fixes #7186
> > >
> > > Reviewed-by: Tim Hudson 
> > > (Merged from https://github.com/openssl/openssl/pull/7193)
> > >
> > > (cherry picked from commit 
> > > 88ea3685e4bf30fc529fe46e19effc6317726de8)
> > >
> > > Cheers,
> > > Richard
> > >
> > > In message <20181023.103453.1842719922424343673.levi...@openssl.org> on 
> > > Tue, 23 Oct 2018 10:34:53 +0200 (CEST), Richard Levitte 
> > >  said:
> > >
> > > > That indicates we do things in the wrong order (foo.obj depends on
> > > > foo.d, meaning foo.d gets "built" first), but that's a side issue.
> > > >
> > > > You found a bug in crypto\sm2\sm2_sign.c, thank you.  Are you willing
> > > > to write up a Github issue for it?
> > > >
> > > > In message 
> > > >  on 
> > > > Tue, 23 Oct 2018 01:22:34 -0700, Chris Clark  
> > > > said:
> > > >
> > > > > Thank you Richard. Adding the "no-makedepend" avoided the  fatal error
> > > > > U1077, but now it fails due to an undeclared identifier:
> > > > >
> > > > > cl  /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MD /W3 /wd4090 /nologo /O2 /I
> > > > > "." /I "crypto\include" /I "include" -D"L_ENDIAN" -D"OPENSSL_PIC"
> > > > > -D"OPENSSL_CPUID_OBJ" -D"OPENSSL_IA32_SSE2" -D"OPENSSL_BN_ASM_MONT"
> > > > > -D"OPENSSL_BN_ASM_MONT5" -D"OPENSSL_BN_ASM_GF2m" -D"SHA1_ASM"
> > > > > -D"SHA256_ASM" -D"SHA512_ASM" 

Re: [openssl-users] How to compile 1.1.1 under Windows

2018-10-23 Thread Chris Clark
Richard, Moving Glob.pm into the main directory of the latest stable
snapshot openssl-1.1.1-stable-SNAP-20181022 allowed it to bypass the
missing Glob.pm message, but then it failed with the same set of
"error C2065: 'INT32_MAX' : undeclared identifier" messages as the
older openssl-1.1.1-stable-SNAP-20181018.
On Tue, Oct 23, 2018 at 3:31 AM Chris Clark  wrote:
>
> Next I tried an older stable snapshot
> openssl-1.1.1-stable-SNAP-20181018 which configured without issue, but
> I got a different compile result:
>
> cl  /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MD /W3 /wd4090
> /nologo /O2 /I "." /I "crypto\include" /I "include" -D"L_ENDIAN"
> -D"OPENSSL_PIC" -D"OPENSSL_CPUID_OBJ" -D"OPENSSL_IA32_SSE2"
> -D"OPENSSL_BN_ASM_MONT" -D"OPENSSL_BN_ASM_MONT5"
> -D"OPENSSL_BN_ASM_GF2m" -D"SHA1_ASM" -D"SHA256_ASM" -D"SHA512_ASM"
> -D"KECCAK1600_ASM" -D"RC4_ASM" -D"MD5_ASM" -D"AES_ASM" -D"VPAES_ASM"
> -D"BSAES_ASM" -D"GHASH_ASM" -D"ECP_NISTZ256_ASM" -D"X25519_ASM"
> -D"PADLOCK_ASM" -D"POLY1305_ASM" -D"OPENSSLDIR=\"C:\\Program
> Files\\Common Files\\SSL\""
> -D"ENGINESDIR=\"C:\\openssl\\lib\\engines-1_1\"" -D"OPENSSL_SYS_WIN32"
> -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE"
> -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS"
> -D"OPENSSL_USE_APPLINK" -D"NDEBUG"  -c /Focrypto\rand\drbg_ctr.obj
> "crypto\rand\drbg_ctr.c"
> drbg_ctr.c
> crypto\rand\drbg_ctr.c(399) : warning C4267: '=' : conversion from
> 'size_t' to 'int', possible loss of data
> crypto\rand\drbg_ctr.c(420) : error C2065: 'INT32_MAX' : undeclared identifier
> crypto\rand\drbg_ctr.c(422) : error C2065: 'INT32_MAX' : undeclared identifier
> crypto\rand\drbg_ctr.c(423) : error C2065: 'INT32_MAX' : undeclared identifier
> crypto\rand\drbg_ctr.c(424) : error C2065: 'INT32_MAX' : undeclared identifier
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio 9.0\VC\BIN\amd64\cl.EXE"' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio 9.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
> Stop.
> On Tue, Oct 23, 2018 at 3:17 AM Chris Clark  wrote:
> >
> > Thanks Richard. I downloaded the latest stable snapshot in order to
> > bypass the UINT16_MAX definition bug, but this version fails to
> > configure:
> >
> > C:\openssl-1.1.1-stable-SNAP-20181022>perl Configure VC-WIN64A
> > --prefix=c:/openssl no-makedepend
> > Can't locate OpenSSL/Glob.pm in @INC (you may need to install the
> > OpenSSL::Glob module) (@INC contains:
> > C:/openssl-1.1.1-stable-SNAP-20181022/util/perl c:/perl/site/lib
> > c:/perl/lib .) at Configure line 20.
> > BEGIN failed--compilation aborted at Configure line 20.
> >
> >
> > I'll try some of the older stable snapshots.
> > On Tue, Oct 23, 2018 at 2:22 AM Richard Levitte  wrote:
> > >
> > > Silly me, I forgot we already fixed that bug:
> > >
> > > commit 6258e244bf702dc981c8ad63ab61133b8bbf2ba3
> > > Author: Richard Levitte 
> > > Date:   Wed Sep 12 02:06:26 2018 +0200
> > >
> > > crypto/sm2/sm2_sign.c: ensure UINT16_MAX is properly defined
> > >
> > > Fixes #7186
> > >
> > > Reviewed-by: Tim Hudson 
> > > (Merged from https://github.com/openssl/openssl/pull/7193)
> > >
> > > (cherry picked from commit 
> > > 88ea3685e4bf30fc529fe46e19effc6317726de8)
> > >
> > > Cheers,
> > > Richard
> > >
> > > In message <20181023.103453.1842719922424343673.levi...@openssl.org> on 
> > > Tue, 23 Oct 2018 10:34:53 +0200 (CEST), Richard Levitte 
> > >  said:
> > >
> > > > That indicates we do things in the wrong order (foo.obj depends on
> > > > foo.d, meaning foo.d gets "built" first), but that's a side issue.
> > > >
> > > > You found a bug in crypto\sm2\sm2_sign.c, thank you.  Are you willing
> > > > to write up a Github issue for it?
> > > >
> > > > In message 
> > > >  on 
> > > > Tue, 23 Oct 2018 01:22:34 -0700, Chris Clark  
> > > > said:
> > > >
> > > > > Thank you Richard. Adding the "no-makedepend" avoided the  fatal error
> > > > > U1077, but now it fails due to an undeclared identifier:
> > > > >
> > > > > cl  /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MD /W3 /wd4090 /nologo /O2 /I
> > > > > "." /I "crypto\include" /I "include" -D"L_ENDIAN" -D"OPENSSL_PIC"
> > > > > -D"OPENSSL_CPUID_OBJ" -D"OPENSSL_IA32_SSE2" -D"OPENSSL_BN_ASM_MONT"
> > > > > -D"OPENSSL_BN_ASM_MONT5" -D"OPENSSL_BN_ASM_GF2m" -D"SHA1_ASM"
> > > > > -D"SHA256_ASM" -D"SHA512_ASM" -D"KECCAK1600_ASM" -D"RC4_ASM"
> > > > > -D"MD5_ASM" -D"AES_ASM" -D"VPAES_ASM" -D"BSAES_ASM" -D"GHASH_ASM"
> > > > > -D"ECP_NISTZ256_ASM" -D"X25519_ASM" -D"PADLOCK_ASM" -D"POLY1305_ASM"
> > > > > -D"OPENSSLDIR=\"C:\\Program Files\\Common Files\\SSL\""
> > > > > -D"ENGINESDIR=\"C:\\openssl\\lib\\engines-1_1\"" -D"OPENSSL_SYS_WIN32"
> > > > > -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE"
> > > > > -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS"
> > > > > -D"OPENSSL_USE_APPLINK" -D"NDEBUG"  -c /Focrypto\sm2\sm2_sign.obj
> > > > > 

Re: [openssl-users] How to compile 1.1.1 under Windows

2018-10-23 Thread Chris Clark
Next I tried an older stable snapshot
openssl-1.1.1-stable-SNAP-20181018 which configured without issue, but
I got a different compile result:

cl  /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MD /W3 /wd4090
/nologo /O2 /I "." /I "crypto\include" /I "include" -D"L_ENDIAN"
-D"OPENSSL_PIC" -D"OPENSSL_CPUID_OBJ" -D"OPENSSL_IA32_SSE2"
-D"OPENSSL_BN_ASM_MONT" -D"OPENSSL_BN_ASM_MONT5"
-D"OPENSSL_BN_ASM_GF2m" -D"SHA1_ASM" -D"SHA256_ASM" -D"SHA512_ASM"
-D"KECCAK1600_ASM" -D"RC4_ASM" -D"MD5_ASM" -D"AES_ASM" -D"VPAES_ASM"
-D"BSAES_ASM" -D"GHASH_ASM" -D"ECP_NISTZ256_ASM" -D"X25519_ASM"
-D"PADLOCK_ASM" -D"POLY1305_ASM" -D"OPENSSLDIR=\"C:\\Program
Files\\Common Files\\SSL\""
-D"ENGINESDIR=\"C:\\openssl\\lib\\engines-1_1\"" -D"OPENSSL_SYS_WIN32"
-D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE"
-D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS"
-D"OPENSSL_USE_APPLINK" -D"NDEBUG"  -c /Focrypto\rand\drbg_ctr.obj
"crypto\rand\drbg_ctr.c"
drbg_ctr.c
crypto\rand\drbg_ctr.c(399) : warning C4267: '=' : conversion from
'size_t' to 'int', possible loss of data
crypto\rand\drbg_ctr.c(420) : error C2065: 'INT32_MAX' : undeclared identifier
crypto\rand\drbg_ctr.c(422) : error C2065: 'INT32_MAX' : undeclared identifier
crypto\rand\drbg_ctr.c(423) : error C2065: 'INT32_MAX' : undeclared identifier
crypto\rand\drbg_ctr.c(424) : error C2065: 'INT32_MAX' : undeclared identifier
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio 9.0\VC\BIN\amd64\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio 9.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
On Tue, Oct 23, 2018 at 3:17 AM Chris Clark  wrote:
>
> Thanks Richard. I downloaded the latest stable snapshot in order to
> bypass the UINT16_MAX definition bug, but this version fails to
> configure:
>
> C:\openssl-1.1.1-stable-SNAP-20181022>perl Configure VC-WIN64A
> --prefix=c:/openssl no-makedepend
> Can't locate OpenSSL/Glob.pm in @INC (you may need to install the
> OpenSSL::Glob module) (@INC contains:
> C:/openssl-1.1.1-stable-SNAP-20181022/util/perl c:/perl/site/lib
> c:/perl/lib .) at Configure line 20.
> BEGIN failed--compilation aborted at Configure line 20.
>
>
> I'll try some of the older stable snapshots.
> On Tue, Oct 23, 2018 at 2:22 AM Richard Levitte  wrote:
> >
> > Silly me, I forgot we already fixed that bug:
> >
> > commit 6258e244bf702dc981c8ad63ab61133b8bbf2ba3
> > Author: Richard Levitte 
> > Date:   Wed Sep 12 02:06:26 2018 +0200
> >
> > crypto/sm2/sm2_sign.c: ensure UINT16_MAX is properly defined
> >
> > Fixes #7186
> >
> > Reviewed-by: Tim Hudson 
> > (Merged from https://github.com/openssl/openssl/pull/7193)
> >
> > (cherry picked from commit 88ea3685e4bf30fc529fe46e19effc6317726de8)
> >
> > Cheers,
> > Richard
> >
> > In message <20181023.103453.1842719922424343673.levi...@openssl.org> on 
> > Tue, 23 Oct 2018 10:34:53 +0200 (CEST), Richard Levitte 
> >  said:
> >
> > > That indicates we do things in the wrong order (foo.obj depends on
> > > foo.d, meaning foo.d gets "built" first), but that's a side issue.
> > >
> > > You found a bug in crypto\sm2\sm2_sign.c, thank you.  Are you willing
> > > to write up a Github issue for it?
> > >
> > > In message 
> > >  on 
> > > Tue, 23 Oct 2018 01:22:34 -0700, Chris Clark  
> > > said:
> > >
> > > > Thank you Richard. Adding the "no-makedepend" avoided the  fatal error
> > > > U1077, but now it fails due to an undeclared identifier:
> > > >
> > > > cl  /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MD /W3 /wd4090 /nologo /O2 /I
> > > > "." /I "crypto\include" /I "include" -D"L_ENDIAN" -D"OPENSSL_PIC"
> > > > -D"OPENSSL_CPUID_OBJ" -D"OPENSSL_IA32_SSE2" -D"OPENSSL_BN_ASM_MONT"
> > > > -D"OPENSSL_BN_ASM_MONT5" -D"OPENSSL_BN_ASM_GF2m" -D"SHA1_ASM"
> > > > -D"SHA256_ASM" -D"SHA512_ASM" -D"KECCAK1600_ASM" -D"RC4_ASM"
> > > > -D"MD5_ASM" -D"AES_ASM" -D"VPAES_ASM" -D"BSAES_ASM" -D"GHASH_ASM"
> > > > -D"ECP_NISTZ256_ASM" -D"X25519_ASM" -D"PADLOCK_ASM" -D"POLY1305_ASM"
> > > > -D"OPENSSLDIR=\"C:\\Program Files\\Common Files\\SSL\""
> > > > -D"ENGINESDIR=\"C:\\openssl\\lib\\engines-1_1\"" -D"OPENSSL_SYS_WIN32"
> > > > -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE"
> > > > -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS"
> > > > -D"OPENSSL_USE_APPLINK" -D"NDEBUG"  -c /Focrypto\sm2\sm2_sign.obj
> > > > "crypto\sm2\sm2_sign.c"
> > > > sm2_sign.c
> > > > crypto\sm2\sm2_sign.c(70) : error C2065: 'UINT16_MAX' : undeclared 
> > > > identifier
> > > > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> > > > Studio 9.0\VC\BIN\amd64\cl.EXE"' : return code '0x2'
> > > > Stop.
> > > > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> > > > Studio 9.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
> > > > Stop.
> > > > On Tue, Oct 23, 2018 at 12:19 AM Richard Levitte  
> > > > wrote:
> > > > >
> > > > > I suspect you'll find some kind of error message 

Re: [openssl-users] How to compile 1.1.1 under Windows

2018-10-23 Thread Chris Clark
Thanks Richard. I downloaded the latest stable snapshot in order to
bypass the UINT16_MAX definition bug, but this version fails to
configure:

C:\openssl-1.1.1-stable-SNAP-20181022>perl Configure VC-WIN64A
--prefix=c:/openssl no-makedepend
Can't locate OpenSSL/Glob.pm in @INC (you may need to install the
OpenSSL::Glob module) (@INC contains:
C:/openssl-1.1.1-stable-SNAP-20181022/util/perl c:/perl/site/lib
c:/perl/lib .) at Configure line 20.
BEGIN failed--compilation aborted at Configure line 20.


I'll try some of the older stable snapshots.
On Tue, Oct 23, 2018 at 2:22 AM Richard Levitte  wrote:
>
> Silly me, I forgot we already fixed that bug:
>
> commit 6258e244bf702dc981c8ad63ab61133b8bbf2ba3
> Author: Richard Levitte 
> Date:   Wed Sep 12 02:06:26 2018 +0200
>
> crypto/sm2/sm2_sign.c: ensure UINT16_MAX is properly defined
>
> Fixes #7186
>
> Reviewed-by: Tim Hudson 
> (Merged from https://github.com/openssl/openssl/pull/7193)
>
> (cherry picked from commit 88ea3685e4bf30fc529fe46e19effc6317726de8)
>
> Cheers,
> Richard
>
> In message <20181023.103453.1842719922424343673.levi...@openssl.org> on Tue, 
> 23 Oct 2018 10:34:53 +0200 (CEST), Richard Levitte  said:
>
> > That indicates we do things in the wrong order (foo.obj depends on
> > foo.d, meaning foo.d gets "built" first), but that's a side issue.
> >
> > You found a bug in crypto\sm2\sm2_sign.c, thank you.  Are you willing
> > to write up a Github issue for it?
> >
> > In message 
> >  on 
> > Tue, 23 Oct 2018 01:22:34 -0700, Chris Clark  said:
> >
> > > Thank you Richard. Adding the "no-makedepend" avoided the  fatal error
> > > U1077, but now it fails due to an undeclared identifier:
> > >
> > > cl  /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MD /W3 /wd4090 /nologo /O2 /I
> > > "." /I "crypto\include" /I "include" -D"L_ENDIAN" -D"OPENSSL_PIC"
> > > -D"OPENSSL_CPUID_OBJ" -D"OPENSSL_IA32_SSE2" -D"OPENSSL_BN_ASM_MONT"
> > > -D"OPENSSL_BN_ASM_MONT5" -D"OPENSSL_BN_ASM_GF2m" -D"SHA1_ASM"
> > > -D"SHA256_ASM" -D"SHA512_ASM" -D"KECCAK1600_ASM" -D"RC4_ASM"
> > > -D"MD5_ASM" -D"AES_ASM" -D"VPAES_ASM" -D"BSAES_ASM" -D"GHASH_ASM"
> > > -D"ECP_NISTZ256_ASM" -D"X25519_ASM" -D"PADLOCK_ASM" -D"POLY1305_ASM"
> > > -D"OPENSSLDIR=\"C:\\Program Files\\Common Files\\SSL\""
> > > -D"ENGINESDIR=\"C:\\openssl\\lib\\engines-1_1\"" -D"OPENSSL_SYS_WIN32"
> > > -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE"
> > > -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS"
> > > -D"OPENSSL_USE_APPLINK" -D"NDEBUG"  -c /Focrypto\sm2\sm2_sign.obj
> > > "crypto\sm2\sm2_sign.c"
> > > sm2_sign.c
> > > crypto\sm2\sm2_sign.c(70) : error C2065: 'UINT16_MAX' : undeclared 
> > > identifier
> > > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> > > Studio 9.0\VC\BIN\amd64\cl.EXE"' : return code '0x2'
> > > Stop.
> > > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> > > Studio 9.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
> > > Stop.
> > > On Tue, Oct 23, 2018 at 12:19 AM Richard Levitte  
> > > wrote:
> > > >
> > > > I suspect you'll find some kind of error message in
> > > > crypto\sm2\sm2_sign.d.  I suspect that /showIncludes isn't supported
> > > > in VS 2008.
> > > >
> > > > There is a workaround for this problem, and it's to use the
> > > > 'no-makedepend' option:
> > > >
> > > > perl Configure VC-WIN64A --prefix=c:/openssl no-makedepend
> > > >
> > > > For a single build, that should be good enough.
> > > >
> > > > Cheers,
> > > > Richard
> > > >
> > > > In message 
> > > >  on 
> > > > Mon, 22 Oct 2018 23:50:46 -0700, Chris Clark  
> > > > said:
> > > >
> > > > > I am attempting to upgrade a project using OpenSSL 1.0.0h to version
> > > > > 1.1.1 under Visual Studio 2008-SP1, but when I try to compile version
> > > > > 1.1.1 for VC-WIN64A I get the following compile error:
> > > > >
> > > > >cl  /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MD /W3 /wd4090 /nologo
> > > > > /O2 /I "." /I "crypto\include" /I "include" -D"L_ENDIAN"
> > > > > -D"OPENSSL_PIC" -D"OPENSSL_CPUID_OBJ" -D"OPENSSL_IA32_SSE2"
> > > > > -D"OPENSSL_BN_ASM_MONT" -D"OPENSSL_BN_ASM_MONT5"
> > > > > -D"OPENSSL_BN_ASM_GF2m" -D"SHA1_ASM" -D"SHA256_ASM" -D"SHA512_ASM"
> > > > > -D"KECCAK1600_ASM" -D"RC4_ASM" -D"MD5_ASM" -D"AES_ASM" -D"VPAES_ASM"
> > > > > -D"BSAES_ASM" -D"GHASH_ASM" -D"ECP_NISTZ256_ASM" -D"X25519_ASM"
> > > > > -D"PADLOCK_ASM" -D"POLY1305_ASM" -D"OPENSSLDIR=\"C:\\Program
> > > > > Files\\Common Files\\SSL\""
> > > > > -D"ENGINESDIR=\"C:\\openssl\\lib\\engines-1_1\"" -D"OPENSSL_SYS_WIN32"
> > > > > -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE"
> > > > > -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS"
> > > > > -D"OPENSSL_USE_APPLINK" -D"NDEBUG"  /Zs /showIncludes
> > > > > "crypto\sm2\sm2_sign.c" 2>&1 > crypto\sm2\sm2_sign.d
> > > > > NMAKE : fatal error U1077: 'cl' : return code '0x2'
> > > > > Stop.
> > > > > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft 

Re: [openssl-users] How to compile 1.1.1 under Windows

2018-10-23 Thread Richard Levitte
Silly me, I forgot we already fixed that bug:

commit 6258e244bf702dc981c8ad63ab61133b8bbf2ba3
Author: Richard Levitte 
Date:   Wed Sep 12 02:06:26 2018 +0200

crypto/sm2/sm2_sign.c: ensure UINT16_MAX is properly defined

Fixes #7186

Reviewed-by: Tim Hudson 
(Merged from https://github.com/openssl/openssl/pull/7193)

(cherry picked from commit 88ea3685e4bf30fc529fe46e19effc6317726de8)

Cheers,
Richard

In message <20181023.103453.1842719922424343673.levi...@openssl.org> on Tue, 23 
Oct 2018 10:34:53 +0200 (CEST), Richard Levitte  said:

> That indicates we do things in the wrong order (foo.obj depends on
> foo.d, meaning foo.d gets "built" first), but that's a side issue.
> 
> You found a bug in crypto\sm2\sm2_sign.c, thank you.  Are you willing
> to write up a Github issue for it?
> 
> In message 
>  on Tue, 
> 23 Oct 2018 01:22:34 -0700, Chris Clark  said:
> 
> > Thank you Richard. Adding the "no-makedepend" avoided the  fatal error
> > U1077, but now it fails due to an undeclared identifier:
> > 
> > cl  /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MD /W3 /wd4090 /nologo /O2 /I
> > "." /I "crypto\include" /I "include" -D"L_ENDIAN" -D"OPENSSL_PIC"
> > -D"OPENSSL_CPUID_OBJ" -D"OPENSSL_IA32_SSE2" -D"OPENSSL_BN_ASM_MONT"
> > -D"OPENSSL_BN_ASM_MONT5" -D"OPENSSL_BN_ASM_GF2m" -D"SHA1_ASM"
> > -D"SHA256_ASM" -D"SHA512_ASM" -D"KECCAK1600_ASM" -D"RC4_ASM"
> > -D"MD5_ASM" -D"AES_ASM" -D"VPAES_ASM" -D"BSAES_ASM" -D"GHASH_ASM"
> > -D"ECP_NISTZ256_ASM" -D"X25519_ASM" -D"PADLOCK_ASM" -D"POLY1305_ASM"
> > -D"OPENSSLDIR=\"C:\\Program Files\\Common Files\\SSL\""
> > -D"ENGINESDIR=\"C:\\openssl\\lib\\engines-1_1\"" -D"OPENSSL_SYS_WIN32"
> > -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE"
> > -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS"
> > -D"OPENSSL_USE_APPLINK" -D"NDEBUG"  -c /Focrypto\sm2\sm2_sign.obj
> > "crypto\sm2\sm2_sign.c"
> > sm2_sign.c
> > crypto\sm2\sm2_sign.c(70) : error C2065: 'UINT16_MAX' : undeclared 
> > identifier
> > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> > Studio 9.0\VC\BIN\amd64\cl.EXE"' : return code '0x2'
> > Stop.
> > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> > Studio 9.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
> > Stop.
> > On Tue, Oct 23, 2018 at 12:19 AM Richard Levitte  
> > wrote:
> > >
> > > I suspect you'll find some kind of error message in
> > > crypto\sm2\sm2_sign.d.  I suspect that /showIncludes isn't supported
> > > in VS 2008.
> > >
> > > There is a workaround for this problem, and it's to use the
> > > 'no-makedepend' option:
> > >
> > > perl Configure VC-WIN64A --prefix=c:/openssl no-makedepend
> > >
> > > For a single build, that should be good enough.
> > >
> > > Cheers,
> > > Richard
> > >
> > > In message 
> > >  on 
> > > Mon, 22 Oct 2018 23:50:46 -0700, Chris Clark  
> > > said:
> > >
> > > > I am attempting to upgrade a project using OpenSSL 1.0.0h to version
> > > > 1.1.1 under Visual Studio 2008-SP1, but when I try to compile version
> > > > 1.1.1 for VC-WIN64A I get the following compile error:
> > > >
> > > >cl  /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MD /W3 /wd4090 /nologo
> > > > /O2 /I "." /I "crypto\include" /I "include" -D"L_ENDIAN"
> > > > -D"OPENSSL_PIC" -D"OPENSSL_CPUID_OBJ" -D"OPENSSL_IA32_SSE2"
> > > > -D"OPENSSL_BN_ASM_MONT" -D"OPENSSL_BN_ASM_MONT5"
> > > > -D"OPENSSL_BN_ASM_GF2m" -D"SHA1_ASM" -D"SHA256_ASM" -D"SHA512_ASM"
> > > > -D"KECCAK1600_ASM" -D"RC4_ASM" -D"MD5_ASM" -D"AES_ASM" -D"VPAES_ASM"
> > > > -D"BSAES_ASM" -D"GHASH_ASM" -D"ECP_NISTZ256_ASM" -D"X25519_ASM"
> > > > -D"PADLOCK_ASM" -D"POLY1305_ASM" -D"OPENSSLDIR=\"C:\\Program
> > > > Files\\Common Files\\SSL\""
> > > > -D"ENGINESDIR=\"C:\\openssl\\lib\\engines-1_1\"" -D"OPENSSL_SYS_WIN32"
> > > > -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE"
> > > > -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS"
> > > > -D"OPENSSL_USE_APPLINK" -D"NDEBUG"  /Zs /showIncludes
> > > > "crypto\sm2\sm2_sign.c" 2>&1 > crypto\sm2\sm2_sign.d
> > > > NMAKE : fatal error U1077: 'cl' : return code '0x2'
> > > > Stop.
> > > > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> > > > Studio 9.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
> > > > Stop.
> > > >
> > > > My Command lines from the VS 2008 x64 Command Prompt are:
> > > > perl Configure VC-WIN64A --prefix=c:/openssl
> > > > nmake
> > > >
> > > > I also tried compiling the latest stable snapshot
> > > > (openssl-1.1.1-stable-SNAP-20181022) with the same results. However
> > > > version 1.1.0h compiles without error. Can anyone tell me what the
> > > > problem is?
> > > >
> > > > Here is the configuration dump:
> > > >
> > > > Command line (with current working directory = .):
> > > > c:\perl\bin\perl.exe Configure VC-WIN64A --prefix=c:/openssl
> > > > Perl information:
> > > > c:\perl\bin\perl.exe
> > > > 5.24.3 for MSWin32-x64-multi-thread
> > > > 

Re: [openssl-users] How to compile 1.1.1 under Windows

2018-10-23 Thread Richard Levitte
That indicates we do things in the wrong order (foo.obj depends on
foo.d, meaning foo.d gets "built" first), but that's a side issue.

You found a bug in crypto\sm2\sm2_sign.c, thank you.  Are you willing
to write up a Github issue for it?

In message  
on Tue, 23 Oct 2018 01:22:34 -0700, Chris Clark  said:

> Thank you Richard. Adding the "no-makedepend" avoided the  fatal error
> U1077, but now it fails due to an undeclared identifier:
> 
> cl  /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MD /W3 /wd4090 /nologo /O2 /I
> "." /I "crypto\include" /I "include" -D"L_ENDIAN" -D"OPENSSL_PIC"
> -D"OPENSSL_CPUID_OBJ" -D"OPENSSL_IA32_SSE2" -D"OPENSSL_BN_ASM_MONT"
> -D"OPENSSL_BN_ASM_MONT5" -D"OPENSSL_BN_ASM_GF2m" -D"SHA1_ASM"
> -D"SHA256_ASM" -D"SHA512_ASM" -D"KECCAK1600_ASM" -D"RC4_ASM"
> -D"MD5_ASM" -D"AES_ASM" -D"VPAES_ASM" -D"BSAES_ASM" -D"GHASH_ASM"
> -D"ECP_NISTZ256_ASM" -D"X25519_ASM" -D"PADLOCK_ASM" -D"POLY1305_ASM"
> -D"OPENSSLDIR=\"C:\\Program Files\\Common Files\\SSL\""
> -D"ENGINESDIR=\"C:\\openssl\\lib\\engines-1_1\"" -D"OPENSSL_SYS_WIN32"
> -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE"
> -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS"
> -D"OPENSSL_USE_APPLINK" -D"NDEBUG"  -c /Focrypto\sm2\sm2_sign.obj
> "crypto\sm2\sm2_sign.c"
> sm2_sign.c
> crypto\sm2\sm2_sign.c(70) : error C2065: 'UINT16_MAX' : undeclared identifier
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio 9.0\VC\BIN\amd64\cl.EXE"' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio 9.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
> Stop.
> On Tue, Oct 23, 2018 at 12:19 AM Richard Levitte  wrote:
> >
> > I suspect you'll find some kind of error message in
> > crypto\sm2\sm2_sign.d.  I suspect that /showIncludes isn't supported
> > in VS 2008.
> >
> > There is a workaround for this problem, and it's to use the
> > 'no-makedepend' option:
> >
> > perl Configure VC-WIN64A --prefix=c:/openssl no-makedepend
> >
> > For a single build, that should be good enough.
> >
> > Cheers,
> > Richard
> >
> > In message 
> >  on 
> > Mon, 22 Oct 2018 23:50:46 -0700, Chris Clark  said:
> >
> > > I am attempting to upgrade a project using OpenSSL 1.0.0h to version
> > > 1.1.1 under Visual Studio 2008-SP1, but when I try to compile version
> > > 1.1.1 for VC-WIN64A I get the following compile error:
> > >
> > >cl  /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MD /W3 /wd4090 /nologo
> > > /O2 /I "." /I "crypto\include" /I "include" -D"L_ENDIAN"
> > > -D"OPENSSL_PIC" -D"OPENSSL_CPUID_OBJ" -D"OPENSSL_IA32_SSE2"
> > > -D"OPENSSL_BN_ASM_MONT" -D"OPENSSL_BN_ASM_MONT5"
> > > -D"OPENSSL_BN_ASM_GF2m" -D"SHA1_ASM" -D"SHA256_ASM" -D"SHA512_ASM"
> > > -D"KECCAK1600_ASM" -D"RC4_ASM" -D"MD5_ASM" -D"AES_ASM" -D"VPAES_ASM"
> > > -D"BSAES_ASM" -D"GHASH_ASM" -D"ECP_NISTZ256_ASM" -D"X25519_ASM"
> > > -D"PADLOCK_ASM" -D"POLY1305_ASM" -D"OPENSSLDIR=\"C:\\Program
> > > Files\\Common Files\\SSL\""
> > > -D"ENGINESDIR=\"C:\\openssl\\lib\\engines-1_1\"" -D"OPENSSL_SYS_WIN32"
> > > -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE"
> > > -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS"
> > > -D"OPENSSL_USE_APPLINK" -D"NDEBUG"  /Zs /showIncludes
> > > "crypto\sm2\sm2_sign.c" 2>&1 > crypto\sm2\sm2_sign.d
> > > NMAKE : fatal error U1077: 'cl' : return code '0x2'
> > > Stop.
> > > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> > > Studio 9.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
> > > Stop.
> > >
> > > My Command lines from the VS 2008 x64 Command Prompt are:
> > > perl Configure VC-WIN64A --prefix=c:/openssl
> > > nmake
> > >
> > > I also tried compiling the latest stable snapshot
> > > (openssl-1.1.1-stable-SNAP-20181022) with the same results. However
> > > version 1.1.0h compiles without error. Can anyone tell me what the
> > > problem is?
> > >
> > > Here is the configuration dump:
> > >
> > > Command line (with current working directory = .):
> > > c:\perl\bin\perl.exe Configure VC-WIN64A --prefix=c:/openssl
> > > Perl information:
> > > c:\perl\bin\perl.exe
> > > 5.24.3 for MSWin32-x64-multi-thread
> > > Enabled features:
> > > aria
> > > asm
> > > async
> > > autoalginit
> > > autoerrinit
> > > autoload-config
> > > bf
> > > blake2
> > > camellia
> > > capieng
> > > cast
> > > chacha
> > > cmac
> > > cms
> > > comp
> > > ct
> > > deprecated
> > > des
> > > dgram
> > > dh
> > > dsa
> > > dso
> > > dtls
> > > dynamic-engine
> > > ec
> > > ec2m
> > > ecdh
> > > ecdsa
> > > engine
> > > err
> > > filenames
> > > gost
> > > hw(-.+)?
> > > idea
> > > makedepend
> > > md4
> > > mdc2
> > > multiblock
> > > nextprotoneg
> > > ocb
> > > ocsp
> > > pic
> > > poly1305
> > > posix-io
> > > psk
> > > rc2
> > > rc4
> > > rdrand
> > > rfc3779
> > > 

Re: [openssl-users] How to compile 1.1.1 under Windows

2018-10-23 Thread Chris Clark
Thank you Richard. Adding the "no-makedepend" avoided the  fatal error
U1077, but now it fails due to an undeclared identifier:

cl  /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MD /W3 /wd4090 /nologo /O2 /I
"." /I "crypto\include" /I "include" -D"L_ENDIAN" -D"OPENSSL_PIC"
-D"OPENSSL_CPUID_OBJ" -D"OPENSSL_IA32_SSE2" -D"OPENSSL_BN_ASM_MONT"
-D"OPENSSL_BN_ASM_MONT5" -D"OPENSSL_BN_ASM_GF2m" -D"SHA1_ASM"
-D"SHA256_ASM" -D"SHA512_ASM" -D"KECCAK1600_ASM" -D"RC4_ASM"
-D"MD5_ASM" -D"AES_ASM" -D"VPAES_ASM" -D"BSAES_ASM" -D"GHASH_ASM"
-D"ECP_NISTZ256_ASM" -D"X25519_ASM" -D"PADLOCK_ASM" -D"POLY1305_ASM"
-D"OPENSSLDIR=\"C:\\Program Files\\Common Files\\SSL\""
-D"ENGINESDIR=\"C:\\openssl\\lib\\engines-1_1\"" -D"OPENSSL_SYS_WIN32"
-D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE"
-D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS"
-D"OPENSSL_USE_APPLINK" -D"NDEBUG"  -c /Focrypto\sm2\sm2_sign.obj
"crypto\sm2\sm2_sign.c"
sm2_sign.c
crypto\sm2\sm2_sign.c(70) : error C2065: 'UINT16_MAX' : undeclared identifier
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio 9.0\VC\BIN\amd64\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio 9.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
On Tue, Oct 23, 2018 at 12:19 AM Richard Levitte  wrote:
>
> I suspect you'll find some kind of error message in
> crypto\sm2\sm2_sign.d.  I suspect that /showIncludes isn't supported
> in VS 2008.
>
> There is a workaround for this problem, and it's to use the
> 'no-makedepend' option:
>
> perl Configure VC-WIN64A --prefix=c:/openssl no-makedepend
>
> For a single build, that should be good enough.
>
> Cheers,
> Richard
>
> In message 
>  on Mon, 
> 22 Oct 2018 23:50:46 -0700, Chris Clark  said:
>
> > I am attempting to upgrade a project using OpenSSL 1.0.0h to version
> > 1.1.1 under Visual Studio 2008-SP1, but when I try to compile version
> > 1.1.1 for VC-WIN64A I get the following compile error:
> >
> >cl  /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MD /W3 /wd4090 /nologo
> > /O2 /I "." /I "crypto\include" /I "include" -D"L_ENDIAN"
> > -D"OPENSSL_PIC" -D"OPENSSL_CPUID_OBJ" -D"OPENSSL_IA32_SSE2"
> > -D"OPENSSL_BN_ASM_MONT" -D"OPENSSL_BN_ASM_MONT5"
> > -D"OPENSSL_BN_ASM_GF2m" -D"SHA1_ASM" -D"SHA256_ASM" -D"SHA512_ASM"
> > -D"KECCAK1600_ASM" -D"RC4_ASM" -D"MD5_ASM" -D"AES_ASM" -D"VPAES_ASM"
> > -D"BSAES_ASM" -D"GHASH_ASM" -D"ECP_NISTZ256_ASM" -D"X25519_ASM"
> > -D"PADLOCK_ASM" -D"POLY1305_ASM" -D"OPENSSLDIR=\"C:\\Program
> > Files\\Common Files\\SSL\""
> > -D"ENGINESDIR=\"C:\\openssl\\lib\\engines-1_1\"" -D"OPENSSL_SYS_WIN32"
> > -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE"
> > -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS"
> > -D"OPENSSL_USE_APPLINK" -D"NDEBUG"  /Zs /showIncludes
> > "crypto\sm2\sm2_sign.c" 2>&1 > crypto\sm2\sm2_sign.d
> > NMAKE : fatal error U1077: 'cl' : return code '0x2'
> > Stop.
> > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> > Studio 9.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
> > Stop.
> >
> > My Command lines from the VS 2008 x64 Command Prompt are:
> > perl Configure VC-WIN64A --prefix=c:/openssl
> > nmake
> >
> > I also tried compiling the latest stable snapshot
> > (openssl-1.1.1-stable-SNAP-20181022) with the same results. However
> > version 1.1.0h compiles without error. Can anyone tell me what the
> > problem is?
> >
> > Here is the configuration dump:
> >
> > Command line (with current working directory = .):
> > c:\perl\bin\perl.exe Configure VC-WIN64A --prefix=c:/openssl
> > Perl information:
> > c:\perl\bin\perl.exe
> > 5.24.3 for MSWin32-x64-multi-thread
> > Enabled features:
> > aria
> > asm
> > async
> > autoalginit
> > autoerrinit
> > autoload-config
> > bf
> > blake2
> > camellia
> > capieng
> > cast
> > chacha
> > cmac
> > cms
> > comp
> > ct
> > deprecated
> > des
> > dgram
> > dh
> > dsa
> > dso
> > dtls
> > dynamic-engine
> > ec
> > ec2m
> > ecdh
> > ecdsa
> > engine
> > err
> > filenames
> > gost
> > hw(-.+)?
> > idea
> > makedepend
> > md4
> > mdc2
> > multiblock
> > nextprotoneg
> > ocb
> > ocsp
> > pic
> > poly1305
> > posix-io
> > psk
> > rc2
> > rc4
> > rdrand
> > rfc3779
> > rmd160
> > scrypt
> > seed
> > shared
> > siphash
> > sm2
> > sm3
> > sm4
> > sock
> > srp
> > srtp
> > sse2
> > ssl
> > static-engine
> > stdio
> > tests
> > threads
> > tls
> > ts
> > ui-console
> > whirlpool
> > tls1
> > tls1-method
> > tls1_1
> > tls1_1-method
> > tls1_2
> > tls1_2-method
> > tls1_3
> > dtls1
> > dtls1-method
> > dtls1_2
> > dtls1_2-method
> > Disabled features:
> > afalgeng[not-linux]
> > asan  

Re: [openssl-users] How to compile 1.1.1 under Windows

2018-10-23 Thread Chris Clark
Sorry, I meant to say I'm upgrading from 1.1.0h.
On Tue, Oct 23, 2018 at 12:20 AM Dr. Matthias St. Pierre
 wrote:
>
> Oh, I should have read your mail until the end:
>
> Are you upgrading from 1.0.0h or 1.1.0h? Your post mentions both versions.
>
> > -Ursprüngliche Nachricht-
> > Von: openssl-users  Im Auftrag von Dr. 
> > Matthias St. Pierre
> > Gesendet: Dienstag, 23. Oktober 2018 09:17
> > An: openssl-users@openssl.org
> > Betreff: Re: [openssl-users] How to compile 1.1.1 under Windows
> >
> > Hi,
> >
> > a lot of structures where made opaque going from 1.0.2 to 1.1.0.
> > This means, you will have to make changes to your program source code
> > to compile it against 1.1.0 or 1.1.1.
> >
> > For details, see https://www.openssl.org/docs/faq.html#PROG2
> >
> > HTH,
> > Matthias
> >
> >
> > > -Ursprüngliche Nachricht-
> > > Von: openssl-users  Im Auftrag von 
> > > Chris Clark
> > > Gesendet: Dienstag, 23. Oktober 2018 08:51
> > > An: openssl-users@openssl.org
> > > Betreff: [openssl-users] How to compile 1.1.1 under Windows
> > >
> > > I am attempting to upgrade a project using OpenSSL 1.0.0h to version
> > > 1.1.1 under Visual Studio 2008-SP1, but when I try to compile version
> > > 1.1.1 for VC-WIN64A I get the following compile error:
> > >
> > >cl  /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MD /W3 /wd4090 /nologo
> > > /O2 /I "." /I "crypto\include" /I "include" -D"L_ENDIAN"
> > > -D"OPENSSL_PIC" -D"OPENSSL_CPUID_OBJ" -D"OPENSSL_IA32_SSE2"
> > > -D"OPENSSL_BN_ASM_MONT" -D"OPENSSL_BN_ASM_MONT5"
> > > -D"OPENSSL_BN_ASM_GF2m" -D"SHA1_ASM" -D"SHA256_ASM" -D"SHA512_ASM"
> > > -D"KECCAK1600_ASM" -D"RC4_ASM" -D"MD5_ASM" -D"AES_ASM" -D"VPAES_ASM"
> > > -D"BSAES_ASM" -D"GHASH_ASM" -D"ECP_NISTZ256_ASM" -D"X25519_ASM"
> > > -D"PADLOCK_ASM" -D"POLY1305_ASM" -D"OPENSSLDIR=\"C:\\Program
> > > Files\\Common Files\\SSL\""
> > > -D"ENGINESDIR=\"C:\\openssl\\lib\\engines-1_1\"" -D"OPENSSL_SYS_WIN32"
> > > -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE"
> > > -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS"
> > > -D"OPENSSL_USE_APPLINK" -D"NDEBUG"  /Zs /showIncludes
> > > "crypto\sm2\sm2_sign.c" 2>&1 > crypto\sm2\sm2_sign.d
> > > NMAKE : fatal error U1077: 'cl' : return code '0x2'
> > > Stop.
> > > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> > > Studio 9.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
> > > Stop.
> > >
> > > My Command lines from the VS 2008 x64 Command Prompt are:
> > > perl Configure VC-WIN64A --prefix=c:/openssl
> > > nmake
> > >
> > > I also tried compiling the latest stable snapshot
> > > (openssl-1.1.1-stable-SNAP-20181022) with the same results. However
> > > version 1.1.0h compiles without error. Can anyone tell me what the
> > > problem is?
> > >
> > > Here is the configuration dump:
> > >
> > > Command line (with current working directory = .):
> > > c:\perl\bin\perl.exe Configure VC-WIN64A --prefix=c:/openssl
> > > Perl information:
> > > c:\perl\bin\perl.exe
> > > 5.24.3 for MSWin32-x64-multi-thread
> > > Enabled features:
> > > aria
> > > asm
> > > async
> > > autoalginit
> > > autoerrinit
> > > autoload-config
> > > bf
> > > blake2
> > > camellia
> > > capieng
> > > cast
> > > chacha
> > > cmac
> > > cms
> > > comp
> > > ct
> > > deprecated
> > > des
> > > dgram
> > > dh
> > > dsa
> > > dso
> > > dtls
> > > dynamic-engine
> > > ec
> > > ec2m
> > > ecdh
> > > ecdsa
> > > engine
> > > err
> > > filenames
> > > gost
> > > hw(-.+)?
> > > idea
> > > makedepend
> > > md4
> > > mdc2
> > &g

Re: [openssl-users] How to compile 1.1.1 under Windows

2018-10-23 Thread Dr. Matthias St. Pierre
Oh, I should have read your mail until the end:

Are you upgrading from 1.0.0h or 1.1.0h? Your post mentions both versions.

> -Ursprüngliche Nachricht-
> Von: openssl-users  Im Auftrag von Dr. 
> Matthias St. Pierre
> Gesendet: Dienstag, 23. Oktober 2018 09:17
> An: openssl-users@openssl.org
> Betreff: Re: [openssl-users] How to compile 1.1.1 under Windows
> 
> Hi,
> 
> a lot of structures where made opaque going from 1.0.2 to 1.1.0.
> This means, you will have to make changes to your program source code
> to compile it against 1.1.0 or 1.1.1.
> 
> For details, see https://www.openssl.org/docs/faq.html#PROG2
> 
> HTH,
> Matthias
> 
> 
> > -Ursprüngliche Nachricht-
> > Von: openssl-users  Im Auftrag von Chris 
> > Clark
> > Gesendet: Dienstag, 23. Oktober 2018 08:51
> > An: openssl-users@openssl.org
> > Betreff: [openssl-users] How to compile 1.1.1 under Windows
> >
> > I am attempting to upgrade a project using OpenSSL 1.0.0h to version
> > 1.1.1 under Visual Studio 2008-SP1, but when I try to compile version
> > 1.1.1 for VC-WIN64A I get the following compile error:
> >
> >cl  /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MD /W3 /wd4090 /nologo
> > /O2 /I "." /I "crypto\include" /I "include" -D"L_ENDIAN"
> > -D"OPENSSL_PIC" -D"OPENSSL_CPUID_OBJ" -D"OPENSSL_IA32_SSE2"
> > -D"OPENSSL_BN_ASM_MONT" -D"OPENSSL_BN_ASM_MONT5"
> > -D"OPENSSL_BN_ASM_GF2m" -D"SHA1_ASM" -D"SHA256_ASM" -D"SHA512_ASM"
> > -D"KECCAK1600_ASM" -D"RC4_ASM" -D"MD5_ASM" -D"AES_ASM" -D"VPAES_ASM"
> > -D"BSAES_ASM" -D"GHASH_ASM" -D"ECP_NISTZ256_ASM" -D"X25519_ASM"
> > -D"PADLOCK_ASM" -D"POLY1305_ASM" -D"OPENSSLDIR=\"C:\\Program
> > Files\\Common Files\\SSL\""
> > -D"ENGINESDIR=\"C:\\openssl\\lib\\engines-1_1\"" -D"OPENSSL_SYS_WIN32"
> > -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE"
> > -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS"
> > -D"OPENSSL_USE_APPLINK" -D"NDEBUG"  /Zs /showIncludes
> > "crypto\sm2\sm2_sign.c" 2>&1 > crypto\sm2\sm2_sign.d
> > NMAKE : fatal error U1077: 'cl' : return code '0x2'
> > Stop.
> > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> > Studio 9.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
> > Stop.
> >
> > My Command lines from the VS 2008 x64 Command Prompt are:
> > perl Configure VC-WIN64A --prefix=c:/openssl
> > nmake
> >
> > I also tried compiling the latest stable snapshot
> > (openssl-1.1.1-stable-SNAP-20181022) with the same results. However
> > version 1.1.0h compiles without error. Can anyone tell me what the
> > problem is?
> >
> > Here is the configuration dump:
> >
> > Command line (with current working directory = .):
> > c:\perl\bin\perl.exe Configure VC-WIN64A --prefix=c:/openssl
> > Perl information:
> > c:\perl\bin\perl.exe
> > 5.24.3 for MSWin32-x64-multi-thread
> > Enabled features:
> > aria
> > asm
> > async
> > autoalginit
> > autoerrinit
> > autoload-config
> > bf
> > blake2
> > camellia
> > capieng
> > cast
> > chacha
> > cmac
> > cms
> > comp
> > ct
> > deprecated
> > des
> > dgram
> > dh
> > dsa
> > dso
> > dtls
> > dynamic-engine
> > ec
> > ec2m
> > ecdh
> > ecdsa
> > engine
> > err
> > filenames
> > gost
> > hw(-.+)?
> > idea
> > makedepend
> > md4
> > mdc2
> > multiblock
> > nextprotoneg
> > ocb
> > ocsp
> > pic
> > poly1305
> > posix-io
> > psk
> > rc2
> > rc4
> > rdrand
> > rfc3779
> > rmd160
> > scrypt
> > seed
> > shared
> > siphash
> > sm2
> > sm3
> > sm4
> > sock
> > srp
> > srtp
> > sse2
> > ssl
> > static-engine
> > stdio
> > tests
> > threads
> > tls
> > ts
> > ui-console
> > whirlpool

Re: [openssl-users] How to compile 1.1.1 under Windows

2018-10-23 Thread Richard Levitte
I suspect you'll find some kind of error message in
crypto\sm2\sm2_sign.d.  I suspect that /showIncludes isn't supported
in VS 2008.

There is a workaround for this problem, and it's to use the
'no-makedepend' option:

perl Configure VC-WIN64A --prefix=c:/openssl no-makedepend

For a single build, that should be good enough.

Cheers,
Richard

In message  
on Mon, 22 Oct 2018 23:50:46 -0700, Chris Clark  said:

> I am attempting to upgrade a project using OpenSSL 1.0.0h to version
> 1.1.1 under Visual Studio 2008-SP1, but when I try to compile version
> 1.1.1 for VC-WIN64A I get the following compile error:
> 
>cl  /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MD /W3 /wd4090 /nologo
> /O2 /I "." /I "crypto\include" /I "include" -D"L_ENDIAN"
> -D"OPENSSL_PIC" -D"OPENSSL_CPUID_OBJ" -D"OPENSSL_IA32_SSE2"
> -D"OPENSSL_BN_ASM_MONT" -D"OPENSSL_BN_ASM_MONT5"
> -D"OPENSSL_BN_ASM_GF2m" -D"SHA1_ASM" -D"SHA256_ASM" -D"SHA512_ASM"
> -D"KECCAK1600_ASM" -D"RC4_ASM" -D"MD5_ASM" -D"AES_ASM" -D"VPAES_ASM"
> -D"BSAES_ASM" -D"GHASH_ASM" -D"ECP_NISTZ256_ASM" -D"X25519_ASM"
> -D"PADLOCK_ASM" -D"POLY1305_ASM" -D"OPENSSLDIR=\"C:\\Program
> Files\\Common Files\\SSL\""
> -D"ENGINESDIR=\"C:\\openssl\\lib\\engines-1_1\"" -D"OPENSSL_SYS_WIN32"
> -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE"
> -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS"
> -D"OPENSSL_USE_APPLINK" -D"NDEBUG"  /Zs /showIncludes
> "crypto\sm2\sm2_sign.c" 2>&1 > crypto\sm2\sm2_sign.d
> NMAKE : fatal error U1077: 'cl' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio 9.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
> Stop.
> 
> My Command lines from the VS 2008 x64 Command Prompt are:
> perl Configure VC-WIN64A --prefix=c:/openssl
> nmake
> 
> I also tried compiling the latest stable snapshot
> (openssl-1.1.1-stable-SNAP-20181022) with the same results. However
> version 1.1.0h compiles without error. Can anyone tell me what the
> problem is?
> 
> Here is the configuration dump:
> 
> Command line (with current working directory = .):
> c:\perl\bin\perl.exe Configure VC-WIN64A --prefix=c:/openssl
> Perl information:
> c:\perl\bin\perl.exe
> 5.24.3 for MSWin32-x64-multi-thread
> Enabled features:
> aria
> asm
> async
> autoalginit
> autoerrinit
> autoload-config
> bf
> blake2
> camellia
> capieng
> cast
> chacha
> cmac
> cms
> comp
> ct
> deprecated
> des
> dgram
> dh
> dsa
> dso
> dtls
> dynamic-engine
> ec
> ec2m
> ecdh
> ecdsa
> engine
> err
> filenames
> gost
> hw(-.+)?
> idea
> makedepend
> md4
> mdc2
> multiblock
> nextprotoneg
> ocb
> ocsp
> pic
> poly1305
> posix-io
> psk
> rc2
> rc4
> rdrand
> rfc3779
> rmd160
> scrypt
> seed
> shared
> siphash
> sm2
> sm3
> sm4
> sock
> srp
> srtp
> sse2
> ssl
> static-engine
> stdio
> tests
> threads
> tls
> ts
> ui-console
> whirlpool
> tls1
> tls1-method
> tls1_1
> tls1_1-method
> tls1_2
> tls1_2-method
> tls1_3
> dtls1
> dtls1-method
> dtls1_2
> dtls1_2-method
> Disabled features:
> afalgeng[not-linux]
> asan[default]   OPENSSL_NO_ASAN
> crypto-mdebug   [default]   OPENSSL_NO_CRYPTO_MDEBUG
> crypto-mdebug-backtrace [default]   OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE
> devcryptoeng[default]   OPENSSL_NO_DEVCRYPTOENG
> ec_nistp_64_gcc_128 [default]   OPENSSL_NO_EC_NISTP_64_GCC_128
> egd [default]   OPENSSL_NO_EGD
> external-tests  [default]   OPENSSL_NO_EXTERNAL_TESTS
> fuzz-libfuzzer  [default]   OPENSSL_NO_FUZZ_LIBFUZZER
> fuzz-afl[default]   OPENSSL_NO_FUZZ_AFL
> heartbeats  [default]   OPENSSL_NO_HEARTBEATS
> md2 [default]   OPENSSL_NO_MD2 (skip crypto\md2)
> msan[default]   OPENSSL_NO_MSAN
> rc5 [default]   OPENSSL_NO_RC5 (skip crypto\rc5)
> sctp[default]   OPENSSL_NO_SCTP
> ssl-trace   [default]   OPENSSL_NO_SSL_TRACE
> ubsan   [default]   OPENSSL_NO_UBSAN
> unit-test   [default]   OPENSSL_NO_UNIT_TEST
> weak-ssl-ciphers[default]   OPENSSL_NO_WEAK_SSL_CIPHERS
> zlib[default]
> zlib-dynamic[default]
> ssl3[default]   OPENSSL_NO_SSL3
> ssl3-method [default]   OPENSSL_NO_SSL3_METHOD
> Config target attributes:
> AR => "lib",
> ARFLAGS => "/nologo",
> AS => "nasm",
> ASFLAGS => "-g",
> CC => "cl",
> CFLAGS => "/W3 /wd4090 /nologo /O2",
> CPP => "\$(CC) /EP /C",
> HASHBANGPERL => 

Re: [openssl-users] How to compile 1.1.1 under Windows

2018-10-23 Thread Dr. Matthias St. Pierre
Hi,

a lot of structures where made opaque going from 1.0.2 to 1.1.0.
This means, you will have to make changes to your program source code
to compile it against 1.1.0 or 1.1.1.

For details, see https://www.openssl.org/docs/faq.html#PROG2

HTH,
Matthias


> -Ursprüngliche Nachricht-
> Von: openssl-users  Im Auftrag von Chris 
> Clark
> Gesendet: Dienstag, 23. Oktober 2018 08:51
> An: openssl-users@openssl.org
> Betreff: [openssl-users] How to compile 1.1.1 under Windows
> 
> I am attempting to upgrade a project using OpenSSL 1.0.0h to version
> 1.1.1 under Visual Studio 2008-SP1, but when I try to compile version
> 1.1.1 for VC-WIN64A I get the following compile error:
> 
>cl  /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MD /W3 /wd4090 /nologo
> /O2 /I "." /I "crypto\include" /I "include" -D"L_ENDIAN"
> -D"OPENSSL_PIC" -D"OPENSSL_CPUID_OBJ" -D"OPENSSL_IA32_SSE2"
> -D"OPENSSL_BN_ASM_MONT" -D"OPENSSL_BN_ASM_MONT5"
> -D"OPENSSL_BN_ASM_GF2m" -D"SHA1_ASM" -D"SHA256_ASM" -D"SHA512_ASM"
> -D"KECCAK1600_ASM" -D"RC4_ASM" -D"MD5_ASM" -D"AES_ASM" -D"VPAES_ASM"
> -D"BSAES_ASM" -D"GHASH_ASM" -D"ECP_NISTZ256_ASM" -D"X25519_ASM"
> -D"PADLOCK_ASM" -D"POLY1305_ASM" -D"OPENSSLDIR=\"C:\\Program
> Files\\Common Files\\SSL\""
> -D"ENGINESDIR=\"C:\\openssl\\lib\\engines-1_1\"" -D"OPENSSL_SYS_WIN32"
> -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE"
> -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS"
> -D"OPENSSL_USE_APPLINK" -D"NDEBUG"  /Zs /showIncludes
> "crypto\sm2\sm2_sign.c" 2>&1 > crypto\sm2\sm2_sign.d
> NMAKE : fatal error U1077: 'cl' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio 9.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
> Stop.
> 
> My Command lines from the VS 2008 x64 Command Prompt are:
> perl Configure VC-WIN64A --prefix=c:/openssl
> nmake
> 
> I also tried compiling the latest stable snapshot
> (openssl-1.1.1-stable-SNAP-20181022) with the same results. However
> version 1.1.0h compiles without error. Can anyone tell me what the
> problem is?
> 
> Here is the configuration dump:
> 
> Command line (with current working directory = .):
> c:\perl\bin\perl.exe Configure VC-WIN64A --prefix=c:/openssl
> Perl information:
> c:\perl\bin\perl.exe
> 5.24.3 for MSWin32-x64-multi-thread
> Enabled features:
> aria
> asm
> async
> autoalginit
> autoerrinit
> autoload-config
> bf
> blake2
> camellia
> capieng
> cast
> chacha
> cmac
> cms
> comp
> ct
> deprecated
> des
> dgram
> dh
> dsa
> dso
> dtls
> dynamic-engine
> ec
> ec2m
> ecdh
> ecdsa
> engine
> err
> filenames
> gost
> hw(-.+)?
> idea
> makedepend
> md4
> mdc2
> multiblock
> nextprotoneg
> ocb
> ocsp
> pic
> poly1305
> posix-io
> psk
> rc2
> rc4
> rdrand
> rfc3779
> rmd160
> scrypt
> seed
> shared
> siphash
> sm2
> sm3
> sm4
> sock
> srp
> srtp
> sse2
> ssl
> static-engine
> stdio
> tests
> threads
> tls
> ts
> ui-console
> whirlpool
> tls1
> tls1-method
> tls1_1
> tls1_1-method
> tls1_2
> tls1_2-method
> tls1_3
> dtls1
> dtls1-method
> dtls1_2
> dtls1_2-method
> Disabled features:
> afalgeng[not-linux]
> asan[default]   OPENSSL_NO_ASAN
> crypto-mdebug   [default]   OPENSSL_NO_CRYPTO_MDEBUG
> crypto-mdebug-backtrace [default]   OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE
> devcryptoeng[default]   OPENSSL_NO_DEVCRYPTOENG
> ec_nistp_64_gcc_128 [default]   OPENSSL_NO_EC_NISTP_64_GCC_128
> egd [default]   OPENSSL_NO_EGD
> external-tests  [default]   OPENSSL_NO_EXTERNAL_TESTS
> fuzz-libfuzzer  [default]   OPENSSL_NO_FUZZ_LIBFUZZER
> fuzz-afl[default]   OPENSSL_NO_FUZZ_AFL
> heartbeats  [default]   OPENSSL_NO_HEARTBEATS
> md2 [default]   OPENSSL_NO_MD2 (skip crypto\md2)
> 

[openssl-users] How to compile 1.1.1 under Windows

2018-10-23 Thread Chris Clark
I am attempting to upgrade a project using OpenSSL 1.0.0h to version
1.1.1 under Visual Studio 2008-SP1, but when I try to compile version
1.1.1 for VC-WIN64A I get the following compile error:

   cl  /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MD /W3 /wd4090 /nologo
/O2 /I "." /I "crypto\include" /I "include" -D"L_ENDIAN"
-D"OPENSSL_PIC" -D"OPENSSL_CPUID_OBJ" -D"OPENSSL_IA32_SSE2"
-D"OPENSSL_BN_ASM_MONT" -D"OPENSSL_BN_ASM_MONT5"
-D"OPENSSL_BN_ASM_GF2m" -D"SHA1_ASM" -D"SHA256_ASM" -D"SHA512_ASM"
-D"KECCAK1600_ASM" -D"RC4_ASM" -D"MD5_ASM" -D"AES_ASM" -D"VPAES_ASM"
-D"BSAES_ASM" -D"GHASH_ASM" -D"ECP_NISTZ256_ASM" -D"X25519_ASM"
-D"PADLOCK_ASM" -D"POLY1305_ASM" -D"OPENSSLDIR=\"C:\\Program
Files\\Common Files\\SSL\""
-D"ENGINESDIR=\"C:\\openssl\\lib\\engines-1_1\"" -D"OPENSSL_SYS_WIN32"
-D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE"
-D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS"
-D"OPENSSL_USE_APPLINK" -D"NDEBUG"  /Zs /showIncludes
"crypto\sm2\sm2_sign.c" 2>&1 > crypto\sm2\sm2_sign.d
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio 9.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.

My Command lines from the VS 2008 x64 Command Prompt are:
perl Configure VC-WIN64A --prefix=c:/openssl
nmake

I also tried compiling the latest stable snapshot
(openssl-1.1.1-stable-SNAP-20181022) with the same results. However
version 1.1.0h compiles without error. Can anyone tell me what the
problem is?

Here is the configuration dump:

Command line (with current working directory = .):
c:\perl\bin\perl.exe Configure VC-WIN64A --prefix=c:/openssl
Perl information:
c:\perl\bin\perl.exe
5.24.3 for MSWin32-x64-multi-thread
Enabled features:
aria
asm
async
autoalginit
autoerrinit
autoload-config
bf
blake2
camellia
capieng
cast
chacha
cmac
cms
comp
ct
deprecated
des
dgram
dh
dsa
dso
dtls
dynamic-engine
ec
ec2m
ecdh
ecdsa
engine
err
filenames
gost
hw(-.+)?
idea
makedepend
md4
mdc2
multiblock
nextprotoneg
ocb
ocsp
pic
poly1305
posix-io
psk
rc2
rc4
rdrand
rfc3779
rmd160
scrypt
seed
shared
siphash
sm2
sm3
sm4
sock
srp
srtp
sse2
ssl
static-engine
stdio
tests
threads
tls
ts
ui-console
whirlpool
tls1
tls1-method
tls1_1
tls1_1-method
tls1_2
tls1_2-method
tls1_3
dtls1
dtls1-method
dtls1_2
dtls1_2-method
Disabled features:
afalgeng[not-linux]
asan[default]   OPENSSL_NO_ASAN
crypto-mdebug   [default]   OPENSSL_NO_CRYPTO_MDEBUG
crypto-mdebug-backtrace [default]   OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE
devcryptoeng[default]   OPENSSL_NO_DEVCRYPTOENG
ec_nistp_64_gcc_128 [default]   OPENSSL_NO_EC_NISTP_64_GCC_128
egd [default]   OPENSSL_NO_EGD
external-tests  [default]   OPENSSL_NO_EXTERNAL_TESTS
fuzz-libfuzzer  [default]   OPENSSL_NO_FUZZ_LIBFUZZER
fuzz-afl[default]   OPENSSL_NO_FUZZ_AFL
heartbeats  [default]   OPENSSL_NO_HEARTBEATS
md2 [default]   OPENSSL_NO_MD2 (skip crypto\md2)
msan[default]   OPENSSL_NO_MSAN
rc5 [default]   OPENSSL_NO_RC5 (skip crypto\rc5)
sctp[default]   OPENSSL_NO_SCTP
ssl-trace   [default]   OPENSSL_NO_SSL_TRACE
ubsan   [default]   OPENSSL_NO_UBSAN
unit-test   [default]   OPENSSL_NO_UNIT_TEST
weak-ssl-ciphers[default]   OPENSSL_NO_WEAK_SSL_CIPHERS
zlib[default]
zlib-dynamic[default]
ssl3[default]   OPENSSL_NO_SSL3
ssl3-method [default]   OPENSSL_NO_SSL3_METHOD
Config target attributes:
AR => "lib",
ARFLAGS => "/nologo",
AS => "nasm",
ASFLAGS => "-g",
CC => "cl",
CFLAGS => "/W3 /wd4090 /nologo /O2",
CPP => "\$(CC) /EP /C",
HASHBANGPERL => "/usr/bin/env perl",
LD => "link",
LDFLAGS => "/nologo /debug",
MT => "mt",
MTFLAGS => "-nologo",
RANLIB => "CODE(0x65aff0)",
RC => "rc",
aes_asm_src => "aes-x86_64.s vpaes-x86_64.s bsaes-x86_64.s
aesni-x86_64.s aesni-sha1-x86_64.s aesni-sha256-x86_64.s
aesni-mb-x86_64.s",
aes_obj => "aes-x86_64.o vpaes-x86_64.o bsaes-x86_64.o
aesni-x86_64.o aesni-sha1-x86_64.o aesni-sha256-x86_64.o
aesni-mb-x86_64.o",
apps_aux_src => "win32_init.c",
apps_init_src => "../ms/applink.c",
apps_obj => "win32_init.o",
aroutflag => "/out:",
asflags => "-Ox -f win64 -DNEAR",
asoutflag => "-o ",
bf_asm_src => "bf_enc.c",
bf_obj => "bf_enc.o",
bin_cflags => "/Zi /Fdapp.pdb",