Solved Rsync error Undefined symbol "locale_charset"

I get the error when I try to sync one system with another. I have searched online for a solution but nothing relevant to FreeBSD has come to light.

Full error message:
root@pr5:/home/user2 # rsync -avzn /usr/home user2@192.168.0.4:/home
ld-elf.so.1: /usr/local/bin/rsync: Undefined symbol "locale_charset"
(user2@192.168.0.4) Password for user2@pr4.blank.blank:
(user2@192.168.0.4) Password for user2@pr4.blank.blank:
(user2@192.168.0.4) Password for user2@pr4.blank.blank:
user2@192.168.0.4: Permission denied (publickey,keyboard-interactive).

Originating system:
uname -a
FreeBSD pr5.blank.blank 13.2-RELEASE-p10 FreeBSD 13.2-RELEASE-p10 GENERIC amd64
Receiving system:
uname -a
FreeBSD pr4.blank.blank 14.2-RELEASE FreeBSD 14.2-RELEASE releng/14.2-n269506-c8918d6c7412 GENERIC amd64

Note to self, the rsync command line is incorrect. Trailing slashes are required for the desired results and root privileges are required to create some files.
 
Last edited:
Investigate which base system is out of date:
Code:
$ ls -l /usr/lib/libc.a
$ ls -ltr /usr/local/lib | tail
$ ls -l `which rsync`

Of course you can first identify which computer is the one affected by calling rsync with no parameters on each.
 
The client pr5 is on 13.2-RELEASE which is EOL since June 2024.
The server pr4 is on 14.2-RELEASE.
is it possible that the version of rsync (which is probably old) that runs on the client is problematic?
Maybe rsyncd on pr4 would synchronize just fine with an updated client/system.
 
Back
Top