While trying to sync the /etc directory on an openwrt installation - different platform - from an x86 gentoo box, the following happens: dust tmp # rsync root@bucket:/etc . rsync: can't load library 'libiconv.so.2' rsync: connection unexpectedly closed (0 bytes received so far) [receiver] rsync error: error in rsync protocol data stream (code 12) at io.c(600) [receiver=3.0.5] #emerge libiconv installs virtual/libiconv-0 but does not solve the issue. Reproducible: Always
I should add that: - the same command works flawless between gentoo boxes - I've re-emerged rsync after emerging libiconv which does not solve it as well
It is pretty weird that rsync thinks it needs separate libiconv since standard glibc includes all the iconv stuff. Please show your "emerge --info" output. Also, might want to check over stuff you have installed in /usr/local, in case anything is interfering, e.g. http://forums.gentoo.org/viewtopic-t-553180.html
Created attachment 195743 [details] output of emerge --info The correct one
Comment on attachment 195743 [details] output of emerge --info The correct one Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29-xen-r4 i686) ================================================================= System uname: Linux-2.6.29-xen-r4-i686-Genuine_Intel-R-_CPU_T2400_@_1.83GHz-with-glibc2.0 Timestamp of tree: Tue, 23 Jun 2009 09:00:01 +0000 app-shells/bash: 3.2_p39 dev-lang/python: 2.5.4-r2 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.63 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ ftp://ftp.unina.it/pub/linux/distributions/gentoo " LDFLAGS="-Wl,-O1" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl acpi apache2 berkdb bluetooth bzip2 calendar cdparanoia cdr cli cracklib crypt cups dbus dng dri dvd encode ethereal exif expat ffmpeg flac fortran gdbm gpm hal iconv imap ipv6 isdnlog jpeg kerberos ldap lm_sensors midi mmx mp3 mpeg mpi mudflap mysql ncurses nfs nls nptl nptlonly ogg openmp pam pcre pef perl png pppd python radiusskey readline reflection samba session sockets spl sse ssl sysfs tcpd threads tiff unicode usb vim-syntax vorbis x86 xml xml2 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Can you give any information about the types of files that you are trying to sync? For instance, are there any weird characters in the filenames?
Created attachment 195868 [details] output ls * on /etc
(In reply to comment #2) > It is pretty weird that rsync thinks it needs separate libiconv since standard > glibc includes all the iconv stuff. Please show your "emerge --info" output. See above > Also, might want to check over stuff you have installed in /usr/local, in case > anything is interfering, e.g. http://forums.gentoo.org/viewtopic-t-553180.html I've checked, but on this system /usr/local/lib is empty and /usr/local/include does not exist. revdep-rebuild gives a "consistent" result.
Ok, more ideas of stuff to look at... * Output of 'iconv --list | head' * Output of 'ldd /usr/bin/rsync' * Build log from rebuilding rsync
Check the copy of rsync on the openwrt box. I'm pretty certain it's missing the libiconv there. If you can run rsync ON the openwrt box directly, then reopen this bug.
Indeed: bucket# rsync rsync: can't load library 'libiconv.so.2'