On 9/6/2020 3:43 PM, Ulli Horlacher wrote:


I have installed cygwin with cygwin-portable-installer (recommendation
from this mailing-list). Everything seems fine, but when I run rsync I get:

W10dev:~: rsync -h
C:/Users/admin/cygwin/bin/rsync.exe: error while loading shared libraries: 
cyglz4-1.dll: cannot open shared object file: No such file or directory
[snip]
W10dev:~: ldd /usr/bin/rsync
         ntdll.dll => /cygdrive/c/Windows/SYSTEM32/ntdll.dll (0x7ffe42100000)
         KERNEL32.DLL => /cygdrive/c/Windows/System32/KERNEL32.DLL 
(0x7ffe414a0000)
         KERNELBASE.dll => /cygdrive/c/Windows/System32/KERNELBASE.dll 
(0x7ffe3f500000)
         cygcrypto-1.1.dll => /usr/bin/cygcrypto-1.1.dll (0x3ff9c0000)
         cygwin1.dll => /usr/bin/cygwin1.dll (0x180040000)
         cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x3fef50000)
         cygzstd-1.dll => /usr/bin/cygzstd-1.dll (0x3fd9e0000)


What is going wrong?
Where is my mistake?
Its the new version of rsync, which is recent... and probably is missing dependencies on setup.

My ldd output is different than yours, I do get the library you are missing:

$ ldd /usr/bin/rsync
ntdll.dll => /cygdrive/c/Windows/SYSTEM32/ntdll.dll (0x7ffc31860000) KERNEL32.DLL => /cygdrive/c/Windows/System32/KERNEL32.DLL (0x7ffc31540000) KERNELBASE.dll => /cygdrive/c/Windows/System32/KERNELBASE.dll (0x7ffc2ee80000)
        cygwin1.dll => /usr/bin/cygwin1.dll (0x180040000)
        cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x3fe8b0000)
        cygcrypto-1.1.dll => /usr/bin/cygcrypto-1.1.dll (0x3ff6f0000)
        cygzstd-1.dll => /usr/bin/cygzstd-1.dll (0x3f9bf0000)
        cygz.dll => /usr/bin/cygz.dll (0x3f9cf0000)
        cyglz4-1.dll => /usr/bin/cyglz4-1.dll (0x3fc550000)

Notice that there are more than one differences; they appear to be part of libz (or maybe libzstd).

Probable work around: install the missing library.

Another work around: install the previous version of rsync, which has very different library dependencies (i.e. no libcrypto, no libz dependency).

Hope this helps.
--
R.Berber
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to