delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/04/11/17:52:29

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:reply-to:subject:to
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=qBp/ziCetus5AHqptLM6ttnjyGC8oO4yRfdSEvVk2rMPoJpqyYDIl
kAljdbjWUwsEBT4uabzfm3mZVyk63kXUnfW3JSmL7mCjzAjkNPeIOgDlKCmE6216
QVLbod86WbyINyBwFd3kGjR7pRteIp/9bBHICqP66YDltEX6f9AV9g=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:reply-to:subject:to
:mime-version:content-type:content-transfer-encoding; s=default;
bh=fyuW7NtgxgaibvjhM4eSbcjnsq8=; b=bXv8vEv+ZtmgaykGu9ybj0DRYE7g
NGnEJd6ZwsRKQHhqDwx1skw0WxfrfGMTcRizcXuvggRWNO/TcMHDlxG8Sc43evmd
zDwuRuf1uxM6FA2tJpymjvIawPmv9LnXVr8rFaEss5CB+7PbTxv0tKKkSBUkmZoV
gsHkmg+435CsiDk=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.3 required=5.0 tests=BAYES_40,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,REPTO_QUOTE_YAHOO,RP_MATCHES_RCVD,SPF_PASS autolearn=no version=3.3.2
X-HELO: nm31.bullet.mail.ne1.yahoo.com
Message-ID: <1397252949.55287.YahooMailNeo@web181606.mail.ne1.yahoo.com>
Date: Fri, 11 Apr 2014 14:49:09 -0700 (PDT)
From: "Auteria W. Winzer Jr." <wwinzer AT yahoo DOT com>
Reply-To: "Auteria W. Winzer Jr." <wwinzer AT yahoo DOT com>
Subject: OpenSSH Package Distribution Architecture Mismatch
To: cygwin <cygwin AT cygwin DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id s3BLqPlV018604

I noticed an anomaly within both 32bit and 64bit distributions of OpenSSH. The package maintainer inadvertently placed the architectures in their opposition. At 1st glance I thought I had clicked the wrong icon thinking I was using 64bit within 32bit's space, and vice-versa.

The latest OpenSSH package from both 32 and 64 bit resources displays the following:

FROM 32bit Cygwin (C:\cygwin)
TARGET: C:\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico -
winzera AT USWSCOWINZERA ~

$ cygcheck -c openssh
Cygwin Package Information
Package              Version        Status
openssh              6.6p1-1        OK

winzera AT USWSCOWINZERA /usr/sbin
$ ls -l sshd.exe
-rwxr-xr-x 1 winzera Domain Users 762397 Mar 18 12:41 sshd.exe

winzera AT USWSCOWINZERA /usr/sbin
$ ldd sshd.exe
        ntdll.dll => /cygdrive/c/Windows/SysWOW64/ntdll.dll (0x77480000)
        kernel32.dll => /cygdrive/c/Windows/syswow64/kernel32.dll (0x75c50000)
        KERNELBASE.dll => /cygdrive/c/Windows/syswow64/KERNELBASE.dll (0x75de0000)
        cyggcc_s-1.dll => /usr/bin/cyggcc_s-1.dll (0x6ff80000)
        cygwin1.dll => /usr/bin/cygwin1.dll (0x61000000)
        cygssp-0.dll => /usr/bin/cygssp-0.dll (0x67480000)
        cygcrypt-0.dll => /usr/bin/cygcrypt-0.dll (0x44000000)
        cygcrypto-1.0.0.dll => /usr/bin/cygcrypto-1.0.0.dll (0x68b80000)
        cygz.dll => /usr/bin/cygz.dll (0x6f940000)
        cyggssapi-3.dll => /usr/bin/cyggssapi-3.dll (0x6b440000)
        cygheimntlm-0.dll => /usr/bin/cygheimntlm-0.dll (0x67d40000)
        cygkrb5-26.dll => /usr/bin/cygkrb5-26.dll (0x71440000)
        cygasn1-8.dll => /usr/bin/cygasn1-8.dll (0x6a840000)
        cygroken-18.dll => /usr/bin/cygroken-18.dll (0x6bc80000)
        cygcom_err-2.dll => /usr/bin/cygcom_err-2.dll (0x70ec0000)
        cygwind-0.dll => /usr/bin/cygwind-0.dll (0x67140000)
        cyghx509-5.dll => /usr/bin/cyghx509-5.dll (0x6c100000)
        cygintl-8.dll => /usr/bin/cygintl-8.dll (0x6fd70000)
        cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x6fd80000)
        cygsqlite3-0.dll => /usr/bin/cygsqlite3-0.dll (0x64d80000)
        cygheimbase-1.dll => /usr/bin/cygheimbase-1.dll (0x71040000)
        cygkafs-0.dll => /usr/bin/cygkafs-0.dll (0x65bc0000)
        cygwrap-0.dll => /usr/bin/cygwrap-0.dll (0x67500000)

FROM 64bit Cygwin (C:\cygwin64)
TARGET: C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico -
winzera AT USWSCOWINZERA ~
$ cygcheck -c openssh
Cygwin Package Information
Package              Version        Status
openssh              6.6p1-1        OK

winzera AT USWSCOWINZERA /usr/sbin
$ ls -l sshd.exe
-rwxr-xr-x 1 winzera Domain Users 675859 Mar 18 12:23 sshd.exe

winzera AT USWSCOWINZERA /usr/sbin
$ ldd sshd.exe
        ntdll.dll => /cygdrive/c/Windows/SYSTEM32/ntdll.dll (0x772a0000)
        kernel32.dll => /cygdrive/c/Windows/system32/kernel32.dll (0x77080000)
        KERNELBASE.dll => /cygdrive/c/Windows/system32/KERNELBASE.dll (0x7fefd320000)
        cyggcc_s-seh-1.dll => /usr/bin/cyggcc_s-seh-1.dll (0x3ffcb0000)
        cygwin1.dll => /usr/bin/cygwin1.dll (0x180040000)
        cygssp-0.dll => /usr/bin/cygssp-0.dll (0x3ff620000)
        cygcrypt-0.dll => /usr/bin/cygcrypt-0.dll (0x3fff00000)
        cygcrypto-1.0.0.dll => /usr/bin/cygcrypto-1.0.0.dll (0x3ffd40000)
        cygz.dll => /usr/bin/cygz.dll (0x3ff490000)
        cyggssapi-3.dll => /usr/bin/cyggssapi-3.dll (0x3ffbe0000)
        cygheimntlm-0.dll => /usr/bin/cygheimntlm-0.dll (0x3ffbc0000)
        cygkrb5-26.dll => /usr/bin/cygkrb5-26.dll (0x3ff9c0000)
        cygasn1-8.dll => /usr/bin/cygasn1-8.dll (0x3fff50000)
        cygroken-18.dll => /usr/bin/cygroken-18.dll (0x3ff760000)
        cygcom_err-2.dll => /usr/bin/cygcom_err-2.dll (0x3fff10000)
        cygwind-0.dll => /usr/bin/cygwind-0.dll (0x3ff4c0000)
        cyghx509-5.dll => /usr/bin/cyghx509-5.dll (0x3ffb70000)
        cygintl-8.dll => /usr/bin/cygintl-8.dll (0x3ffa40000)
        cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x3ffa60000)
        cygsqlite3-0.dll => /usr/bin/cygsqlite3-0.dll (0x3ff6a0000)
        cygheimbase-1.dll => /usr/bin/cygheimbase-1.dll (0x3ffbd0000)
        cygkafs-0.dll => /usr/bin/cygkafs-0.dll (0x3ffa30000)
        cygwrap-0.dll => /usr/bin/cygwrap-0.dll (0x3ff4b0000)

In conclusion: 32bit OpenSSH is in Cygwin64, and 64bit OpenSSH is in Cygwin32.

The reason both worked is because I'm running 64bit Windows. If I was running 32bit OpenSSH will generate an immediate error.

IMHO I'd do a sanity check for both architecture distributions to ensure 64bit packages are not embedded within 32bit environment.

Regards,
Auteria Winzer Jr.

--
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019