LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This 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


Reply
  Search this Thread
Old 07-16-2009, 11:33 AM   #16
roger_v
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Rep: Reputation: 0

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?
 
Old 07-16-2009, 04:07 PM   #17
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,781

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
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.
 
Old 07-17-2009, 05:03 AM   #18
roger_v
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Rep: Reputation: 0
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?
 
Old 07-17-2009, 05:54 AM   #19
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,781

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
If the problem is on the remote rsync as I guess, there is no much point expecting another local version to fix it.

If you plan to recompile rsync, you might try to use the "--disable-iconv" configure option.
 
Old 07-17-2009, 07:20 AM   #20
roger_v
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Rep: Reputation: 0
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 ...
 
Old 07-17-2009, 07:29 AM   #21
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,781

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
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.
 
Old 05-09-2010, 09:56 AM   #22
SystemR89
LQ Newbie
 
Registered: May 2010
Location: Turin, Italy
Distribution: Debian unstable/experimental
Posts: 4

Rep: Reputation: 0
I use this simple work around on a SunOS 5 machine:

.bashrc
Quote:
export PATH=.:$PATH:$HOME/bin/
$HOME/bin/rsync-3.0.7/ <- This folder contain rsync binary

$HOME/bin/rsync
Quote:
CURRENTDIR=`pwd`
cd $HOME/bin/rsync-3.0.7
LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH $HOME/rsync $@
cd $CURRENTDIR
NOTE:
* I know! This is a very dirty work-around... but it works launching it through rsync/ssh!
* My login shell is bash
 
Old 05-10-2010, 02:49 AM   #23
roger_v
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Rep: Reputation: 0
thanks, I will try this asap!
 
Old 02-22-2012, 08:43 AM   #24
ashrafkhalid
LQ Newbie
 
Registered: Feb 2009
Posts: 1

Rep: Reputation: 0
if you can find the library file "ld.so.1" under /lib folder, then do the following:

cd /lib
ln -sf ld.so.1 libiconv.so.2
 
Old 02-22-2012, 02:05 PM   #25
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
This thread is like 4 years old.
 
Old 02-23-2012, 03:23 AM   #26
roger_v
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Rep: Reputation: 0
no, TroN, more like 2 and a half years actually ;-).
Thanks for the tip, ashrafkhalid !
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync gives chgrp failed errors jjge Linux - Software 5 09-29-2008 03:23 PM
failed rsync yusufs Linux - Newbie 1 01-05-2008 03:01 PM
How can I uninstalled libiconv? libiconv.so.2: cannot open shared object file abefroman Linux - Software 2 11-03-2006 03:07 PM
rsync between Solaris and Linux xpucto Solaris / OpenSolaris 1 12-01-2005 12:51 PM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 02:49 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 01:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration