delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-0.6 required=5.0 tests=AWL,BAYES_00 |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4B3B80D7.5070004@eburg.com> |
Date: | Wed, 30 Dec 2009 08:33:27 -0800 |
From: | Gordon Messmer <yinyang AT eburg DOT com> |
User-Agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Thunderbird/3.0 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Can't use key authentication on x64 Server 2003 R2 |
References: | <4B3AC168 DOT 3040000 AT eburg DOT com> <1ef5a52f0912300056n2eb8e93q93099e757dc56669 AT mail DOT gmail DOT com> |
In-Reply-To: | <1ef5a52f0912300056n2eb8e93q93099e757dc56669@mail.gmail.com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On 12/30/2009 12:56 AM, Csaba Raduly wrote: > > If I understand this correctly, it is the ssh client which quits > abruptly. Error 126 is "The notorious error 126 (ERROR_MOD_NOT_FOUND) > when loading DLL/DSO's in Win32" (first hit when googling "Win32 error > 126"). However, WSAGetLastError is in ws2_32.dll, which is part of > Windows. But, being a 32-bit dll in a 64-bit Windows, maybe it's in > another directory which is not on the path. Check the folder of > ws2_32.dll > > Were you connecting from exch64 to exch64 ? > I'd also seen one list member draw that conclusion, but for the life of me I can't see why. I'm connecting from a Linux host, and the error appears to be printed by Cygwin's bash.exe. bash.exe doesn't appear to be linked to that dll on either host. I do notice that /cygdrive/c/WINDOWS/system32 appears before /cygdrive/c/WINDOWS/sysWOW64 in the PATH. I know nothing about Windows' linker or loader, so I don't know if that could be a problem. Is there any way to change it system-wide for Cygwin? On the broken 64 bit host: $ ldd /bin/bash.exe kernel32.dll => /cygdrive/c/WINDOWS/syswow64/kernel32.dll (0x7d4c0000) ntdll.dll => /cygdrive/c/WINDOWS/system32/ntdll.dll (0x7d600000) kernel32.dll => /cygdrive/c/WINDOWS/syswow64/kernel32.dll (0x7d4c0000) cygwin1.dll => /usr/bin/cygwin1.dll (0x61000000) ADVAPI32.DLL => /cygdrive/c/WINDOWS/syswow64/ADVAPI32.DLL (0x7d1e0000) RPCRT4.dll => /cygdrive/c/WINDOWS/syswow64/RPCRT4.dll (0x7da20000) Secur32.dll => /cygdrive/c/WINDOWS/syswow64/Secur32.dll (0x7d8d0000) cygintl-8.dll => /usr/bin/cygintl-8.dll (0x6f5c0000) cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x674c0000) cyggcc_s-1.dll => /usr/bin/cyggcc_s-1.dll (0x67f00000) cygreadline7.dll => /usr/bin/cygreadline7.dll (0x6afc0000) cygncurses-9.dll => /usr/bin/cygncurses-9.dll (0x6db80000) USER32.dll => /cygdrive/c/WINDOWS/syswow64/USER32.dll (0x7d930000) GDI32.dll => /cygdrive/c/WINDOWS/syswow64/GDI32.dll (0x7d800000) $ ls -l /cygdrive/c/WINDOWS/system32/ws2_32.dll -rwxrwx---+ 1 Administrators SYSTEM 83456 2007-02-18 04:00 /cygdrive/c/WINDOWS/system32/ws2_32.dll $ ls -l /cygdrive/c/WINDOWS/syswow64/ws2_32.dll -rwxrwx---+ 1 Administrators SYSTEM 83456 2007-02-18 04:00 /cygdrive/c/WINDOWS/syswow64/ws2_32.dll $ echo $PATH /usr/local/bin:/usr/bin:/bin:/cygdrive/c/Program Files/Support Tools/:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program Files/ATI Technologies/ATI Control Panel/:/cygdrive/c/WINDOWS/system32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files/Microsoft/Exchange Server/bin:/cygdrive/c/Program Files/Microsoft/Exchange Server/Scripts:/cygdrive/c/WINDOWS/sysWOW64:/cygdrive/c/Program Files (x86)/ExchangeMapi/:/bin On a working 32 bit host: $ ldd /bin/bash ntdll.dll => /cygdrive/c/WINDOWS/system32/ntdll.dll (0x7c800000) kernel32.dll => /cygdrive/c/WINDOWS/system32/kernel32.dll (0x77e40000) cygwin1.dll => /usr/bin/cygwin1.dll (0x61000000) ADVAPI32.DLL => /cygdrive/c/WINDOWS/system32/ADVAPI32.DLL (0x7d1e0000) RPCRT4.dll => /cygdrive/c/WINDOWS/system32/RPCRT4.dll (0x77c50000) Secur32.dll => /cygdrive/c/WINDOWS/system32/Secur32.dll (0x76f50000) cygintl-8.dll => /usr/bin/cygintl-8.dll (0x6f5c0000) cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x674c0000) cyggcc_s-1.dll => /usr/bin/cyggcc_s-1.dll (0x67f00000) cygreadline7.dll => /usr/bin/cygreadline7.dll (0x6afc0000) cygncurses-9.dll => /usr/bin/cygncurses-9.dll (0x6db80000) USER32.dll => /cygdrive/c/WINDOWS/system32/USER32.dll (0x77380000) GDI32.dll => /cygdrive/c/WINDOWS/system32/GDI32.dll (0x77c00000) $ ls -l /cygdrive/c/WINDOWS/system32/ws2_32.dll -rwxrwx---+ 1 Administrators SYSTEM 83456 2007-02-17 06:03 /cygdrive/c/WINDOWS/system32/ws2_32.dll -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |