Solved gdb Undefined symbol "readline_echoing_p"

Hey guys,

Code:
$ which gdb
/usr/bin/gdb
$ /usr/bin/gdb
ld-elf.so.1: Undefined symbol "readline_echoing_p" referenced from COPY relocation in /usr/bin/gdb
$ ldconfig -r|grep -i readl
        341:-lreadline.8 => /usr/local/lib/libreadline.so.8
$ ldd /usr/bin/gdb
/usr/bin/gdb:
        libm.so.5 => /lib/libm.so.5 (0x34d5c4abd000)
        libreadline.so.8 => /usr/local/lib/libreadline.so.8 (0x34d5c5af1000)
        libncurses.so.8 => /lib/libncurses.so.8 (0x34d5c6ae1000)
        libgnuregex.so.5 => /usr/lib/libgnuregex.so.5 (0x34d5c809b000)
        libc.so.7 => /lib/libc.so.7 (0x34d5c7668000)
        libtinfow.so.9 => /lib/libtinfow.so.9 (0x34d5c9608000)
        [vdso] (0x34d5c41ea000)

Code:
# pkg info readline
readline-8.2.13_1
Name           : readline
Version        : 8.2.13_1
Installed on   : Fri Oct  4 03:38:57 2024 EEST
Origin         : devel/readline
Architecture   : FreeBSD:14:amd64
Prefix         : /usr/local
Categories     : devel
Licenses       : GPLv3
Maintainer     : sunpoet@FreeBSD.org
WWW            : https://tiswww.case.edu/php/chet/readline/rltop.html
Comment        : Library for editing command lines as they are typed
Options        :
        BRACKETEDPASTE : on
        DOCS           : on
Shared Libs provided:
        libreadline.so.8
        libhistory.so.8
Annotations    :
        FreeBSD_version: 1401000
        cpe            : cpe:2.3:a:gnu:readline:8.2:13::::freebsd14:x64:1
Flat size      : 1.78MiB
Description    :
The GNU Readline library provides a set of functions for use by applications
that allow users to edit command lines as they are typed in. Both Emacs and vi
editing modes are available. The Readline library includes additional functions
to maintain a list of previously-entered command lines, to recall and perhaps
reedit those lines, and perform csh-like history expansion on previous commands.

Just upgraded from 13.2 to `14.1-RELEASE-p5`

Will appreciate any help
 
oh, interesting
the binary is from 2018 :-/

$ ls -la /usr/bin/gdb
-r-xr-xr-x 1 root wheel 2926544 Oct 6 2018 /usr/bin/gdb
$ md5sum /usr/bin/gdb
7268b67948c7685479c3406e3c26733d /usr/bin/gdb

It's been awhile :)

Thanks!
 
Back
Top