public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "René Berber" <rene.berber@gmail.com>
To: cygwin@cygwin.com
Subject: Re: rsync.exe: error while loading shared libraries: cyglz4-1.dll
Date: Sun, 6 Sep 2020 16:11:12 -0500	[thread overview]
Message-ID: <591176af-4974-124b-bcc6-97e694bf1089@gmail.com> (raw)
In-Reply-To: <20200906204357.GA19595@tik.uni-stuttgart.de>

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

  reply	other threads:[~2020-09-06 21:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-06 20:43 Ulli Horlacher
2020-09-06 21:11 ` René Berber [this message]
2020-09-06 21:51   ` Ulli Horlacher
2020-09-06 22:23     ` Brian Inglis
2020-09-07 13:57     ` Jon Turney
2020-09-07 19:22       ` Brian Inglis
2020-09-08  5:39       ` Jari Aalto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=591176af-4974-124b-bcc6-97e694bf1089@gmail.com \
    --to=rene.berber@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).