OpenSSL-1.1.1d fail with msvc 2019 (32 bits)

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

OpenSSL-1.1.1d fail with msvc 2019 (32 bits)

Ranier VF
Hi,
Trying to compile openssl with msvc 2019. The following error is occurring:

Microsoft (R) Program Maintenance Utility Versão 14.24.28315.0
Direitos autorais da Microsoft Corporation. Todos os direitos reservados.
        cl  /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MD /W3 /wd4090 /nologo /O2 /WX /I "." /I "crypto\include" /I "include" -D"L_ENDIAN" -D"OPENSSL_PIC" -D"OPENSSLDIR=\"C:\\Program Files (x86)\\Common Files\\SSL\"" -D"ENGINESDIR=\"C:\\Program Files (x86)\\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\evp\cmeth_lib.obj "crypto\evp\cmeth_lib.c"
cmeth_lib.c
crypto\evp\cmeth_lib.c(1): error C2220: o aviso a seguir é tratado como um erro
crypto\evp\cmeth_lib.c(1): warning C4821: Não é possível determinar tipo de codificação Unicode, salve o arquivo com assinatura (BOM)
crypto\evp\cmeth_lib.c(1): warning C4335: formato de arquivo Mac detectado: converta o arquivo fonte para formato DOS ou UNIX
crypto\evp\cmeth_lib.c(1): error C2018: caractere desconhecido '0x2'
crypto\evp\cmeth_lib.c(1): error C2018: caractere desconhecido '0x1'
crypto\evp\cmeth_lib.c(1): error C2018: caractere desconhecido '0x7'
crypto\evp\cmeth_lib.c(1): error C2018: caractere desconhecido '0x5'
crypto\evp\cmeth_lib.c(1): error C2059: erro de sintaxe: 'constante'
crypto\evp\cmeth_lib.c(1): error C2018: caractere desconhecido '0x16'
crypto\evp\cmeth_lib.c(1): error C2018: caractere desconhecido '0x40'
crypto\evp\cmeth_lib.c(1): error C2018: caractere desconhecido '0x3'
crypto\evp\cmeth_lib.c(1): error C2018: caractere desconhecido '0xf'
crypto\evp\cmeth_lib.c(1): error C2018: caractere desconhecido '0x1f'
crypto\evp\cmeth_lib.c(1): error C3873: '0xb6': este caractere não é permitido como primeiro caractere de um identificador
crypto\evp\cmeth_lib.c(1): error C2018: caractere desconhecido '0x19'
crypto\evp\cmeth_lib.c(1): error C3873: '0xb0': este caractere não é permitido como primeiro caractere de um identificador
crypto\evp\cmeth_lib.c(1): error C3872: '0x90': este caractere não é permitido em um identificador
crypto\evp\cmeth_lib.c(1): error C2018: caractere desconhecido '0x7f'
crypto\evp\cmeth_lib.c(1): error C3872: '0x2039': este caractere não é permitido em um identificador
crypto\evp\cmeth_lib.c(1): error C2018: caractere desconhecido '0x18'
crypto\evp\cmeth_lib.c(1): error C2001: newline em constante
crypto\evp\cmeth_lib.c(1): error C2015: muitos caracteres na constante
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\vcruntime.h(336): error C2146: erro de sintaxe: ')' ausente antes do identificador '_StackCookie'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\vcruntime.h(336): error C2061: erro de sintaxe: identificador '_StackCookie'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\vcruntime.h(336): error C2059: erro de sintaxe: ';'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\vcruntime.h(336): error C2059: erro de sintaxe: ')'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\vcruntime.h(344): error C2061: erro de sintaxe: identificador '__security_cookie'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\vcruntime.h(344): error C2059: erro de sintaxe: ';'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt.h(287): error C2146: erro de sintaxe: ')' ausente antes do identificador '_Reserved'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt.h(287): error C2081: 'uintptr_t': nome inválido na lista de parâmetros formais
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt.h(287): error C2061: erro de sintaxe: identificador '_Reserved'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt.h(287): error C2059: erro de sintaxe: ';'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt.h(287): error C2059: erro de sintaxe: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\stddef.h(53): error C2143: erro de sintaxe: '{' ausente antes de '__cdecl'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\stdlib.h(164): error C2081: 'uintptr_t': nome inválido na lista de parâmetros formais
crypto\evp\cmeth_lib.c(20): fatal error C1083: Não é possível abrir arquivo incluir: 'Scintilla.h': No such file or directory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\cl.EXE"' : código de retorno '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\nmake.exe"' : código de retorno '0x2'
Stop.

Environment:
Windows 10 64 bits
msvc 2019 32 bits
OpenSSL-1.1.1d
Perl 5.30.1
perl Configure VC-WIN32 no-asm no-async no-dso no-engine --release

regards,
Ranier Vilela
Reply | Threaded
Open this post in threaded view
|

RE: OpenSSL-1.1.1d fail with msvc 2019 (32 bits)

Ranier VF
Please, ignore this message, some files were corrupted when they were copied from the old hd.

thanks.

regards,
Ranier Vilela
Reply | Threaded
Open this post in threaded view
|

RE: OpenSSL-1.1.1d fail with msvc 2019 (32 bits)

Michael Wojcik
In reply to this post by Ranier VF
> From: openssl-users [mailto:[hidden email]] On Behalf Of
> Ranier Vilela
> Sent: Wednesday, February 05, 2020 15:41
>
> Hi,
> Trying to compile openssl with msvc 2019. The following error is occurring:
>
> Microsoft (R) Program Maintenance Utility Versão 14.24.28315.0
> Direitos autorais da Microsoft Corporation. Todos os direitos reservados.
>         cl  /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MD /W3 /wd4090 /nologo /O2
> /WX /I "." /I "crypto\include" /I "include" -D"L_ENDIAN" -D"OPENSSL_PIC" -
> D"OPENSSLDIR=\"C:\\Program Files (x86)\\Common Files\\SSL\"" -
> D"ENGINESDIR=\"C:\\Program Files (x86)\\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\evp\cmeth_lib.obj
> "crypto\evp\cmeth_lib.c"
> cmeth_lib.c
> crypto\evp\cmeth_lib.c(1): error C2220: o aviso a seguir é tratado como um
> erro

I assume this is "warnings are treated as errors".

> crypto\evp\cmeth_lib.c(1): warning C4821: Não é possível determinar tipo de
> codificação Unicode, salve o arquivo com assinatura (BOM)

MSVC appears to think cmeth_lib.c is Unicode rather than ASCII.

(Yes, ASCII is a proper subset of UTF-8 and UTF-7. I mean MSVC appears to be complaining that it wants to see a UTF-16 BOM at the beginning of the file.)

> crypto\evp\cmeth_lib.c(1): warning C4335: formato de arquivo Mac detectado:
> converta o arquivo fonte para formato DOS ou UNIX

And it seems to think that the lines in the file end with a bare CR, rather than a Windows CRLF or a UNIX LF.

> crypto\evp\cmeth_lib.c(1): error C2018: caractere desconhecido '0x2'
> crypto\evp\cmeth_lib.c(1): error C2018: caractere desconhecido '0x1'
> crypto\evp\cmeth_lib.c(1): error C2018: caractere desconhecido '0x7'
> crypto\evp\cmeth_lib.c(1): error C2018: caractere desconhecido '0x5'

And it seems to be finding a bunch of invalid code points.

I suspect the source file is corrupt. Have you looked at it? Did you check the signature on the OpenSSL tarball?

It's also possible that MSVC assumes UTF-16 source files under some conditions, possibly based on the Windows language settings. If that's the case, there ought to be some way to turn that off. Alternatively, you could transcode all the files from ASCII to UTF-16; that ought to be simple to script.

Or I could be way off and the problem is something else entirely.

--
Michael Wojcik
Distinguished Engineer, Micro Focus



Reply | Threaded
Open this post in threaded view
|

RE: OpenSSL-1.1.1d fail with msvc 2019 (32 bits)

Ranier VF
De: openssl-users <[hidden email]> em nome de Michael Wojcik <[hidden email]>
Enviado: quarta-feira, 5 de fevereiro de 2020 23:15
Para: [hidden email]
Assunto: RE: OpenSSL-1.1.1d fail with msvc 2019 (32 bits)

>I suspect the source file is corrupt. Have you looked at it? Did you check the signature on the OpenSSL tarball?
Thank you Michael for the answer.
I had to move to a new machine and some OpenSSL files were corrupted when copying from old damaged HD.

best regards,
Ranier Vilela