You are not logged in.

#1 2023-04-20 19:37:32

Enrico1989
Member
Registered: 2018-07-05
Posts: 394

[SOLVED] gdb: symbol lookup error: gdb: undefined symbol: rl_eof_found

The subject is precisely the error I get when trying to execute gdb from command line.

What is happening? It once worked, and I have no clue what could have caused the breakage, beside the feedback I got so far on StackExchange.

Last edited by Enrico1989 (2023-04-20 21:56:31)

Offline

#2 2023-04-20 19:59:00

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,060

Re: [SOLVED] gdb: symbol lookup error: gdb: undefined symbol: rl_eof_found

type gdb
ldd /usr/bin/gdb
readelf -sW /usr/bin/gdb | grep eof
readelf -sW /usr/lib/libreadline.so | grep eof
pacman -Qikk gdb readline

Online

#3 2023-04-20 21:17:51

Enrico1989
Member
Registered: 2018-07-05
Posts: 394

Re: [SOLVED] gdb: symbol lookup error: gdb: undefined symbol: rl_eof_found

Thanks! Here's the output (2nd and last are to be scrolled)

gdb is /usr/bin/gdb
	linux-vdso.so.1 (0x00007ffdc75f0000)
	libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007fabcb94f000)
	liblzma.so.5 => /usr/lib/liblzma.so.5 (0x00007fabcb91c000)
	libmpfr.so.6 => /usr/lib/libmpfr.so.6 (0x00007fabcb864000)
	libgmp.so.10 => /usr/lib/libgmp.so.10 (0x00007fabcb7c1000)
	libreadline.so.8 => /usr/lib/libreadline.so.8 (0x00007fabcada4000)
	libzstd.so.1 => /usr/lib/libzstd.so.1 (0x00007fabcacd4000)
	libncursesw.so.6 => /usr/lib/libncursesw.so.6 (0x00007fabcac60000)
	libguile-3.0.so.1 => /usr/lib/libguile-3.0.so.1 (0x00007fabcab1f000)
	libpython3.10.so.1.0 => /usr/lib/libpython3.10.so.1.0 (0x00007fabca600000)
	libsource-highlight.so.4 => /usr/lib/libsource-highlight.so.4 (0x00007fabcaa67000)
	libdebuginfod.so.1 => /usr/lib/libdebuginfod.so.1 (0x00007fabcb7b6000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fabca200000)
	libm.so.6 => /usr/lib/libm.so.6 (0x00007fabca518000)
	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007fabcaa47000)
	libc.so.6 => /usr/lib/libc.so.6 (0x00007fabca019000)
	/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007fabcb99f000)
	libutil.so.1 => /usr/lib/libutil.so.1 (0x00007fabcaa42000)
	libgc.so.1 => /usr/lib/libgc.so.1 (0x00007fabca9d6000)
	libffi.so.8 => /usr/lib/libffi.so.8 (0x00007fabca9cb000)
	libunistring.so.5 => /usr/lib/libunistring.so.5 (0x00007fabc9e5f000)
	libcrypt.so.2 => /usr/lib/libcrypt.so.2 (0x00007fabca4e6000)
	libboost_regex.so.1.81.0 => /usr/lib/libboost_regex.so.1.81.0 (0x00007fabca491000)
	libcurl.so.4 => /usr/lib/libcurl.so.4 (0x00007fabc9db4000)
	libelf.so.1 => /usr/lib/libelf.so.1 (0x00007fabca475000)
	libicudata.so.72 => /usr/lib/libicudata.so.72 (0x00007fabc7e00000)
	libicui18n.so.72 => /usr/lib/libicui18n.so.72 (0x00007fabc7a00000)
	libicuuc.so.72 => /usr/lib/libicuuc.so.72 (0x00007fabc7600000)
	libnghttp2.so.14 => /usr/lib/libnghttp2.so.14 (0x00007fabca449000)
	libidn2.so.0 => /usr/lib/libidn2.so.0 (0x00007fabc9d92000)
	libssh2.so.1 => /usr/lib/libssh2.so.1 (0x00007fabc9d50000)
	libpsl.so.5 => /usr/lib/libpsl.so.5 (0x00007fabc9d3c000)
	libssl.so.3 => /usr/lib/libssl.so.3 (0x00007fabc9c9c000)
	libcrypto.so.3 => /usr/lib/libcrypto.so.3 (0x00007fabc7000000)
	libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00007fabc9c48000)
	libbrotlidec.so.1 => /usr/lib/libbrotlidec.so.1 (0x00007fabca9b9000)
	libz.so.1 => /usr/lib/libz.so.1 (0x00007fabc9c2e000)
	libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00007fabc7928000)
	libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00007fabc9c00000)
	libcom_err.so.2 => /usr/lib/libcom_err.so.2 (0x00007fabca443000)
	libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x00007fabc9bf2000)
	libkeyutils.so.1 => /usr/lib/libkeyutils.so.1 (0x00007fabca43c000)
	libresolv.so.2 => /usr/lib/libresolv.so.2 (0x00007fabc9be0000)
	libbrotlicommon.so.1 => /usr/lib/libbrotlicommon.so.1 (0x00007fabc7ddd000)
(standard input):    23: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND feof@GLIBC_2.2.5 (4)
(standard input):    61: 0000000000000000     0 OBJECT  GLOBAL DEFAULT  UND rl_eof_found
(standard input):   588: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND gettimeofday@GLIBC_2.2.5 (4)
(standard input):    49: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND gettimeofday@GLIBC_2.2.5 (3)
(standard input):   455: 00000000000584f8     4 OBJECT  GLOBAL DEFAULT   20 _rl_eof_found
(standard input):   651: 000000000005301c     4 OBJECT  GLOBAL DEFAULT   19 _rl_eof_char
(standard input):   660: 000000000001a5e0    16 FUNC    GLOBAL DEFAULT    9 rl_vi_eof_maybe
Name            : gdb
Version         : 13.1-2
Description     : The GNU Debugger
Architecture    : x86_64
URL             : https://www.gnu.org/software/gdb/
Licenses        : GPL3
Groups          : None
Provides        : None
Depends On      : glibc  ncurses  libncursesw.so=6-64  gcc-libs  expat  xz  mpfr  source-highlight  gdb-common=13.1  readline  libreadline.so=8-64  guile  python  libelf
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 10.91 MiB
Packager        : Anatol Pomozov <anatol.pomozov@gmail.com>
Build Date      : Fri 24 Mar 2023 16:32:53 GMT
Install Date    : Thu 20 Apr 2023 20:39:00 BST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

gdb: 35 total files, 0 altered files
Name            : readline-athame-git
Version         : 8.0.0-1
Description     : Readline with Athame(provides full Vim mode)
Architecture    : x86_64
URL             : http://github.com/ardagnir/athame/
Licenses        : GPL  AGPL
Groups          : None
Provides        : libhistory.so=8-64  libreadline.so=8-64  readline=8.0
Depends On      : glibc  ncurses  libncursesw.so=6-64  vim
Optional Deps   : None
Required By     : bash  calc  gdb  gdbm  gnupg  gnutls  hunspell  iwd  libxml2  lua  lua52  lvm2  pcre  pcre2  smbclient  sqlite  wpa_supplicant
Optional For    : None
Conflicts With  : readline
Replaces        : None
Installed Size  : 758.93 KiB
Packager        : Unknown Packager
Build Date      : Fri 05 Feb 2021 18:41:40 GMT
Install Date    : Fri 05 Feb 2021 18:42:29 GMT
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : None

readline-athame-git: 57 total files, 0 altered files

Offline

#4 2023-04-20 21:24:30

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,294

Re: [SOLVED] gdb: symbol lookup error: gdb: undefined symbol: rl_eof_found

You're using an unsupported readline package. There's your issue.

Offline

#5 2023-04-20 21:24:38

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,060

Re: [SOLVED] gdb: symbol lookup error: gdb: undefined symbol: rl_eof_found

Name            : readline-athame-git
Version         : 8.0.0-1

Online

#6 2023-04-20 21:47:14

Enrico1989
Member
Registered: 2018-07-05
Posts: 394

Re: [SOLVED] gdb: symbol lookup error: gdb: undefined symbol: rl_eof_found

Assuming am ok with nuking it, how do I do, considering that sudo pacman -R informs me that it would break a few dependencies, such as bash, calc, iwd, gnupg, ..?

Offline

#7 2023-04-20 21:50:47

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,060

Re: [SOLVED] gdb: symbol lookup error: gdb: undefined symbol: rl_eof_found

Just install the regular readline, you'll be asked to replace the present one.

Online

Board footer

Powered by FluxBB