Failed Compiling openSSH in windows 10 using VS2017 and openSSL

Meir Yanovich meiry242 at gmail.com
Tue Nov 6 03:21:52 AEDT 2018


Hey
Even though this mailing list is unix-dev i have to try to get info about
compilation on windows .
i try to build openssh using openssl in windows 10 64 bit using VC 2017
i follow those instructions:
https://github.com/PowerShell/Win32-OpenSSH/wiki/OpenSSH-64-bit-Build-and-Installation-Instructions

but when compiling im getting this compilation error:

    1>cipher-ctr.c
    1>d:\dev\my\v8\openssh-portable-latestw_all\cipher-ctr.c(129): error
C2079: 'aes_ctr' uses undefined struct 'evp_cipher_st'
    1>d:\dev\my\v8\openssh-portable-latestw_all\cipher-ctr.c(131): error
C2027: use of undefined type 'evp_cipher_st'
    1>d:\dev\my\v8\openssh-portable-latestw_all\cipher-ctr.c(132): error
C2224: left of '.nid' must have struct/union type
    1>d:\dev\my\v8\openssh-portable-latestw_all\cipher-ctr.c(133): error
C2224: left of '.block_size' must have struct/union type
    1>d:\dev\my\v8\openssh-portable-latestw_all\cipher-ctr.c(134): error
C2224: left of '.iv_len' must have struct/union type
    1>d:\dev\my\v8\openssh-portable-latestw_all\cipher-ctr.c(135): error
C2224: left of '.key_len' must have struct/union type
    1>d:\dev\my\v8\openssh-portable-latestw_all\cipher-ctr.c(136): error
C2224: left of '.init' must have struct/union type
    1>d:\dev\my\v8\openssh-portable-latestw_all\cipher-ctr.c(137): error
C2224: left of '.cleanup' must have struct/union type
    1>d:\dev\my\v8\openssh-portable-latestw_all\cipher-ctr.c(138): error
C2224: left of '.do_cipher' must have struct/union type
    1>d:\dev\my\v8\openssh-portable-latestw_all\cipher-ctr.c(140): error
C2224: left of '.flags' must have struct/union type
    1>Done building project "libssh.vcxproj" -- FAILED.




now the file where it complains about the missing struct do exist:
C:\OpenSSL-Win64\include\openssl\ossl_typ.h
the VC do see it .
im using :
when trying to compile the openssh with open ssl using VC 2017 andOpenSSL
64 bit   which i downloaded from here :
https://slproweb.com/products/Win32OpenSSL.html
version :
Win64 OpenSSL v1.1.0i

any idea why im getting it ?
Thanks


More information about the openssh-unix-dev mailing list