This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

OpenSSH Package Distribution Architecture Mismatch


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@USWSCOWINZERA ~

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

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

winzera@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@USWSCOWINZERA ~
$ cygcheck -c openssh
Cygwin Package Information
Package              Version        Status
openssh              6.6p1-1        OK

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

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]