1
[SERVER:root:/home/user:] rsync -avz --delete ...
Could not load program rsync:
    Dependent module /opt/freeware/lib/libpopt.a(libpopt.so.0) could not be loaded.
    The module has an invalid magic number.
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(600) [sender=3.0.6]
[SERVER:root:/home/user:] 
[SERVER:root:/home/user:] oslevel -s
6100-09-06-1543
[SERVER:root:/home/user:] rpm -qa | egrep -i 'popt|rsync'
popt-1.16-1
rsync-3.0.6-1
[SERVER:root:/home/user:] 

Question: Why does rsync gives the above error message? What could the problem be?

UPDATE:

[SERVER:root:/home/user:] file /opt/freeware/lib/libpopt.a*
/opt/freeware/lib/libpopt.a: archive (big format)
[SERVER:root:/home/user:] 
[SERVER:root:/home/user:] getconf KERNEL_BITMODE
64
[SERVER:root:/home/user:] 
[SERVER:root:/home/user:] ar t /opt/freeware/lib/libpopt.a
libpopt.so.0
[SERVER:root:/home/user:] 
4
  • What does file /opt/freeware/lib/libpopt.a* give you? (Add the output to your question, not as a comment, thanks) May 10, 2016 at 12:20
  • @EightBitTony : I updated May 11, 2016 at 6:28
  • Archives can have both 32bit and 64bit. Use 'ar t libpopt.a' to look inside
    – user14755
    May 11, 2016 at 8:42
  • it only gaved back libpopt.so.0 May 11, 2016 at 8:59

2 Answers 2

1

I've seen this when 64bit libraries are installed on 32bit kernels and vice versa.

2
  • I know how to check that popt is 32 or 64bit, but how about rsync? May 11, 2016 at 6:11
  • file $(which rsync) should help with that. It would help more if you could mention which packages where installed, or provide the output of rpm -qa --qf="%{NAME}-%{VERSION}-%{RELEASE}-%{ARCH} \n" | grep -E "rsync|popt"
    – doktor5000
    May 11, 2016 at 16:54
0

Solution: a few popt library file was overwritten by someone on the TARGET side. re-installed popt on target side.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.