rbsec / sslscan

sslscan tests SSL/TLS enabled services to discover supported cipher suites
GNU General Public License v3.0
2.3k stars 381 forks source link

fatal error C1083 #270

Open kouzhudong opened 1 year ago

kouzhudong commented 1 year ago

D:\code\NetWork\sslscan>nmake -f Makefile.vs OPENSSL_PATH=D:\code\NetWork\openssl

Microsoft (R) 程序维护实用工具 14.29.30146.0 版 版权所有 (C) Microsoft Corporation。 保留所有权利。

    cl.exe /nologo /GL /GS /Gs0 /Gw /MT /Ox -DVERSION="\"1.9.8 Windows 64-bit (VS)\"" /I D:\code\NetWork\openssl/include /c sslscan.c

sslscan.c sslscan.c(97): fatal error C1083: 无法打开包括文件: “sys/time.h”: No such file or directory NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\cl.exe"”: 返回代码“0x2” Stop.

D:\code\NetWork\sslscan>

jtesta commented 1 year ago

@kouzhudong : I wrote the initial Visual Studio compilation support 8 years ago. It seems that everyone has since only used the MinGW build system. I suppose the VS build system is no longer supported.

rbsec commented 1 year ago

TBH, I've only ever cross-compiled it from Linux, as my main system doesn't have VS (or Windows) installed.

If someone wants to look into getting it to work with more modern versions of VS they're very welcome to, but I'm quite happy to leave things as they are. Debugging weird MS compilation errors doesn't sound like much fun.