我长期使用赛格威64位和cygwin的软件包All/Net/stunnel:通用 TLS 包装器在我的 Windows 10 机器上非常高兴。
然而,突然间,STunnel 不再响应。我知道这很模糊,所以我将在下面提供一些信息。我安装了版本 5.31-1,但也尝试过 5.28-1,但没有成功。
$ # from the man page for stunnel,
$ # -version should output version and compile time.
$ # But nothing comes out.
$
$ stunnel -version
$ stunnel -help
$ type stunnel
stunnel is hashed (/usr/bin/stunnel)
$ which stunnel
/usr/bin/stunnel
$
输出的缺乏让我抓狂,不知道为什么什么都没有输出。我完全卸载了 cygwin - 按照网站指南 - 然后重新安装了 cygwin 和 stunnel。
我怀疑缺少库,但 cygwin 会处理所有依赖项,除非没有,而且我真的缺少一个重要的库。我已经安装了 perl 和 openssh,但仍然没有运气。
$ cygcheck ../../bin/stunnel.exe
C:\cygwin64\bin\stunnel.exe
C:\cygwin64\bin\cygssp-0.dll
C:\cygwin64\bin\cygwin1.dll
C:\WINDOWS\system32\KERNEL32.dll
C:\WINDOWS\system32\ntdll.dll
C:\WINDOWS\system32\KERNELBASE.dll
C:\WINDOWS\system32\api-ms-win-eventing-provider-l1-1-0.dll
C:\WINDOWS\system32\api-ms-win-core-synch-l1-2-0.dll
C:\WINDOWS\system32\api-ms-win-core-timezone-l1-1-0.dll
C:\WINDOWS\system32\api-ms-win-core-xstate-l2-1-0.dll
C:\cygwin64\bin\cygcrypto-1.0.0.dll
C:\cygwin64\bin\cygz.dll
C:\cygwin64\bin\cygssl-1.0.0.dll
C:\cygwin64\bin\cygwrap-0.dll
$ ldd ../../bin/stunnel.exe
ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffbd65b0000)
KERNEL32.DLL => /cygdrive/c/WINDOWS/system32/KERNEL32.DLL (0x7ffbd5890000)
KERNELBASE.dll => /cygdrive/c/WINDOWS/system32/KERNELBASE.dll (0x7ffbd2f90000)
TmUmEvt64.dll => /cygdrive/c/WINDOWS/system32/tmumh/20019/AddOn/6.80.0.1007/TmUmEvt64.dll (0x7ffbd0350000)
PSAPI.DLL => /cygdrive/c/WINDOWS/system32/PSAPI.DLL (0x7ffbd39a0000)
SHLWAPI.dll => /cygdrive/c/WINDOWS/system32/SHLWAPI.dll (0x7ffbd3d10000)
msvcrt.dll => /cygdrive/c/WINDOWS/system32/msvcrt.dll (0x7ffbd5a50000)
combase.dll => /cygdrive/c/WINDOWS/system32/combase.dll (0x7ffbd6200000)
RPCRT4.dll => /cygdrive/c/WINDOWS/system32/RPCRT4.dll (0x7ffbd6490000)
bcryptPrimitives.dll => /cygdrive/c/WINDOWS/system32/bcryptPrimitives.dll (0x7ffbd2e70000)
GDI32.dll => /cygdrive/c/WINDOWS/system32/GDI32.dll (0x7ffbd3a20000)
USER32.dll => /cygdrive/c/WINDOWS/system32/USER32.dll (0x7ffbd3db0000)
ADVAPI32.dll => /cygdrive/c/WINDOWS/system32/ADVAPI32.dll (0x7ffbd3f10000)
sechost.dll => /cygdrive/c/WINDOWS/system32/sechost.dll (0x7ffbd5520000)
IMM32.DLL => /cygdrive/c/WINDOWS/system32/IMM32.DLL (0x7ffbd3d70000)
tmmon64.dll => /cygdrive/c/WINDOWS/system32/tmumh/20019/TmMon/1.6.0.1163/tmmon64.dll (0x6fa30000)
我该如何解决此问题?我尝试在同事的电脑上尝试,他也遇到了同样的问题。
答案1
由于 cygcheck 表示所有 dll 都已到位,因此您可以使用两种方式突出显示库中的不匹配
您可以使用
http://www.dependencywalker.com/ 或者运行
strace -o tunnel.strace stunnel