rsync solaris + ld.so.1: rsync: fatal: libiconv.so.2: open failed:
Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
yes, the remote hostname shows up fine in the testfile when I perform
ssh -i /path/to/my/dsa-key remoteuser@remotehost hostname > test.dat
More info: I reversed the client and the server for just an extra test:
I login to the remote machine using ssh, and I issue an actual rsync command from that remote machine to my local solaris10 machine. This works fine!
The remote rsync info: /usr/local/bin/rsync is 679279 bytes, it runs on solaris 5.8, UltraSparc-IIi-engine, it's ELF-32 bit MSB executable, sparc version 1, dynamically linked, not stripped.
I don't know how it was installed, but it is version 3.0.6 which was recently installed on my request.
It has other ldd info of course:
libsec.so.1 => /usr/lib/libsec.so.1
libiconv.so.2 => /usr/local/lib/libiconv.so.2
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libmp.so.2 => /usr/lib/libmp.so.2
/usr/platform/SUNW,UltraSPARC-IIi-Engine/lib/libc_psr.so.1
The remote machine has a tiny LD_LIBRARY_PATH (when I login as the same user who can execute rsync successfully):
/usr/openwin/lib:/usr/local/lib
There is only an ld.config.old in the remote /var/ld directory, nothing else!
Thus it looks like crle or LD_LIBRARY_PATH is not the culprit!?
On my local solaris10 machine, the file is 425496 bytes, the ldd info is
libpopt.so.0 => /usr/lib/libpopt.so.0
libsec.so.1 => /usr/lib/libsec.so.1
libiconv.so.2 => /usr/local/lib/libiconv.so.2
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libc.so.1 => /usr/lib/libc.so.1
libavl.so.1 => /usr/lib/libavl.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libmp.so.2 => /usr/lib/libmp.so.2
libmd.so.1 => /usr/lib/libmd.so.1
libscf.so.1 => /usr/lib/libscf.so.1
libdoor.so.1 => /usr/lib/libdoor.so.1
libuutil.so.1 => /usr/lib/libuutil.so.1
libgen.so.1 => /usr/lib/libgen.so.1
libm.so.2 => /usr/lib/libm.so.2
/platform/sun4u/lib/libc_psr.so.1
/platform/sun4u/lib/libmd_psr.so.1
All of those libraries are present.
Is it a problem if locally rsync runs on solaris10 and remotely it runs on solaris8?
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Of course rsync should work regardless of the OS releases.
You might want to install and use the rsync binaries available in the Software Companion CD instead of these problematic ones.
I removed the 3.0.6 package, and then my path happened to point to a 3.0.0 version installed somewhere on our network.
It has the same problem!
Unfortunately the package on the companion disk is too old (2.6.3.1) for the project requirements, but anyway I start to believe the error is outside of rsync?
Can I post the output of ./configure and 'make' here?
no, I did not mean that remote rsync has a problem (on the contrary, from remote side it works)
but something on the local system in other settings, e.g. ssh, or some path setting or conflict or...
I will re-try disable-iconv once more ...
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Rsync isn't a standalone program but it needs to be running on both sides of the network link.
According to your description, it cannot be asserted the local rsync is the one having issues.
I'm suspecting the "ld.so.1: rsync: fatal: libiconv.so.2: open failed: No such file or directory" message is coming from the other host.
The fact it runs properly when launched there from the shell doesn't means there is no problem when launching it through rsync/ssh.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.