O. Hartmann ohartmann at walstatt.org wrote on Mon Mar 27 08:10:39 UTC 2017

> /usr/bin/ssh: Undefined symbol "msetlocale"

I do not know if this will help or not. . .
(Notes based on head -r315914 for amd64.)

Looking around:

# grep -R msetlocale /usr/src/*/ | more
/usr/src/crypto/openssh/ssh.c:  msetlocale();
/usr/src/crypto/openssh/utf8.h:void      msetlocale(void);
/usr/src/crypto/openssh/sftp.c: msetlocale();
/usr/src/crypto/openssh/scp.c:  msetlocale();

It looks like msetlocale is local to openssh itself and is
tied to utf8 support.

# ldd `which ssh`
        libprivatessh.so.5 => /usr/lib/libprivatessh.so.5 (0x800851000)
        libgssapi.so.10 => /usr/lib/libgssapi.so.10 (0x800af2000)
        libcrypto.so.8 => /lib/libcrypto.so.8 (0x800e00000)
        libc.so.7 => /lib/libc.so.7 (0x801269000)
        libprivateldns.so.5 => /usr/lib/libprivateldns.so.5 (0x801624000)
        libcrypt.so.5 => /lib/libcrypt.so.5 (0x801882000)

# objdump -d --prefix-addresses /usr/lib/libprivatessh.so.5 | more

/usr/lib/libprivatessh.so.5:     file format elf64-x86-64-freebsd
. . .
0000000000020e40 <msetlocale> push   %rbp
0000000000020e41 <msetlocale+0x1> mov    %rsp,%rbp
0000000000020e44 <msetlocale+0x4> push   %rbx
0000000000020e45 <msetlocale+0x5> push   %rax
0000000000020e46 <msetlocale+0x6> lea    0x4c4e2(%rip),%rdi        # 
000000000006d32f <_fini+0x1c67>
. . .

So it is /usr/lib/libprivateshh.so.5 that should have
msetlocale in it.

Mark Millard
markmi at dsl-only.net

freebsd-current@freebsd.org mailing list
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to