You are not logged in.

#1 2023-05-26 08:26:22

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

[SOLVED]mpd: symbol lookup error: /usr/lib/libfmt.so.9: undefined symb

hello everyone smile I hope you hare having a nice day

i'm getting this error from mpd(music player daemon) when i run

mpd

in my terminal

mpd: symbol lookup error: /usr/lib/libfmt.so.9: undefined symbol: `Zݢ\I, version CXXABI_1.3

usually it just turns the daemon on, no output in return, i just run it and the gui i use for it just works.

i'm on arch linux kernel 6.3.4-arch1-1

i tried reinstalling mpd through pacman and also the fmt package that comes up  as the owner of this dependency when i do a

pacman -Qo /usr/lib/libfmt.so.9

any suggestions is much appreciated smile

Last edited by Bluish9992 (2023-05-26 16:20:36)

Offline

#2 2023-05-26 08:46:28

seth
Member
Registered: 2012-09-03
Posts: 57,289

Re: [SOLVED]mpd: symbol lookup error: /usr/lib/libfmt.so.9: undefined symb

Does it *literlly* say "`Zݢ\" or is that some copypasta noodles?

locale
locale -a
localectl
type mpd
lddtree /usr/bin/mpd # pax-utils

Offline

#3 2023-05-26 09:20:17

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

Re: [SOLVED]mpd: symbol lookup error: /usr/lib/libfmt.so.9: undefined symb

hello @seth, nice to hear from you again, thank you for always replying

it does literally say that, but actually i messed up my copy pasting, i edited the first post to complete the error message i'm getting.

here are the outputs:
locale

LANG=C.UTF-8
LC_CTYPE="C.UTF-8"
LC_NUMERIC="C.UTF-8"
LC_TIME="C.UTF-8"
LC_COLLATE="C.UTF-8"
LC_MONETARY="C.UTF-8"
LC_MESSAGES="C.UTF-8"
LC_PAPER="C.UTF-8"
LC_NAME="C.UTF-8"
LC_ADDRESS="C.UTF-8"
LC_TELEPHONE="C.UTF-8"
LC_MEASUREMENT="C.UTF-8"
LC_IDENTIFICATION="C.UTF-8"
LC_ALL=

locale -a

C
C.UTF-8
POSIX
en_US.utf8

localectl

System Locale: LANG=C.UTF-8
    VC Keymap: (unset)     
   X11 Layout: (unset)    

type mpd

mpd is /usr/bin/mpd

lddtree /usr/bin/mpd # pax-utils

/usr/bin/mpd (interpreter => /lib64/ld-linux-x86-64.so.2)
    libdbus-1.so.3 => /usr/lib/libdbus-1.so.3
    liburing.so.2 => /usr/lib/liburing.so.2
    libfmt.so.9 => /usr/lib/libfmt.so.9
    libavutil.so.58 => /usr/lib/libavutil.so.58
        libva-drm.so.2 => /usr/lib/libva-drm.so.2
        libva.so.2 => /usr/lib/libva.so.2
        libva-x11.so.2 => /usr/lib/libva-x11.so.2
            libXext.so.6 => /usr/lib/libXext.so.6
            libXfixes.so.3 => /usr/lib/libXfixes.so.3
            libX11-xcb.so.1 => /usr/lib/libX11-xcb.so.1
            libxcb.so.1 => /usr/lib/libxcb.so.1
                libXau.so.6 => /usr/lib/libXau.so.6
                libXdmcp.so.6 => /usr/lib/libXdmcp.so.6
            libxcb-dri3.so.0 => /usr/lib/libxcb-dri3.so.0
        libvdpau.so.1 => /usr/lib/libvdpau.so.1
        libX11.so.6 => /usr/lib/libX11.so.6
        libdrm.so.2 => /usr/lib/libdrm.so.2
        libmfx.so.1 => /usr/lib/libmfx.so.1
        libOpenCL.so.1 => /usr/lib/libOpenCL.so.1
            libdl.so.2 => /usr/lib/libdl.so.2
    libavformat.so.60 => /usr/lib/libavformat.so.60
        libxml2.so.2 => /usr/lib/libxml2.so.2
            liblzma.so.5 => /usr/lib/liblzma.so.5
        libbluray.so.2 => /usr/lib/libbluray.so.2
            libfontconfig.so.1 => /usr/lib/libfontconfig.so.1
            libfreetype.so.6 => /usr/lib/libfreetype.so.6
                libpng16.so.16 => /usr/lib/libpng16.so.16
                libharfbuzz.so.0 => /usr/lib/libharfbuzz.so.0
                libfreetype.so.6 => !!! circular loop !!!
                    libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0
                    libgraphite2.so.3 => /usr/lib/libgraphite2.so.3
                libbrotlidec.so.1 => /usr/lib/libbrotlidec.so.1
                    libbrotlicommon.so.1 => /usr/lib/libbrotlicommon.so.1
        libgmp.so.10 => /usr/lib/libgmp.so.10
        libgnutls.so.30 => /usr/lib/libgnutls.so.30
            libp11-kit.so.0 => /usr/lib/libp11-kit.so.0
                libffi.so.8 => /usr/lib/libffi.so.8
                libpthread.so.0 => /usr/lib/libpthread.so.0
            libbrotlienc.so.1 => /usr/lib/libbrotlienc.so.1
            libzstd.so.1 => /usr/lib/libzstd.so.1
            libidn2.so.0 => /usr/lib/libidn2.so.0
            libunistring.so.5 => /usr/lib/libunistring.so.5
            libtasn1.so.6 => /usr/lib/libtasn1.so.6
            libnettle.so.8 => /usr/lib/libnettle.so.8
            libhogweed.so.6 => /usr/lib/libhogweed.so.6
        libsrt.so.1.5 => /usr/lib/libsrt.so.1.5
            libcrypto.so.3 => /usr/lib/libcrypto.so.3
        libssh.so.4 => /usr/lib/libssh.so.4
    libavcodec.so.60 => /usr/lib/libavcodec.so.60
        libswresample.so.4 => /usr/lib/libswresample.so.4
        libvpx.so.8 => /usr/lib/libvpx.so.8
        libwebpmux.so.3 => /usr/lib/libwebpmux.so.3
        libwebp.so.7 => /usr/lib/libwebp.so.7
            libsharpyuv.so.0 => /usr/lib/libsharpyuv.so.0
        libdav1d.so.6 => /usr/lib/libdav1d.so.6
        libopencore-amrwb.so.0 => /usr/lib/libopencore-amrwb.so.0
        librsvg-2.so.2 => /usr/lib/librsvg-2.so.2
            libcairo-gobject.so.2 => /usr/lib/libcairo-gobject.so.2
            libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0
                libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0
                libjpeg.so.8 => /usr/lib/libjpeg.so.8
                libtiff.so.6 => /usr/lib/libtiff.so.6
            libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0
                libmount.so.1 => /usr/lib/libmount.so.1
                    libblkid.so.1 => /usr/lib/libblkid.so.1
            libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0
                libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0
            libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0
                libfribidi.so.0 => /usr/lib/libfribidi.so.0
                libthai.so.0 => /usr/lib/libthai.so.0
                    libdatrie.so.1 => /usr/lib/libdatrie.so.1
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0
        libcairo.so.2 => /usr/lib/libcairo.so.2
            libXrender.so.1 => /usr/lib/libXrender.so.1
            libxcb-render.so.0 => /usr/lib/libxcb-render.so.0
            libxcb-shm.so.0 => /usr/lib/libxcb-shm.so.0
            libpixman-1.so.0 => /usr/lib/libpixman-1.so.0
        libaom.so.3 => /usr/lib/libaom.so.3
        libgsm.so.1 => /usr/lib/libgsm.so.1
        libjxl.so.0.8 => /usr/lib/libjxl.so.0.8
            libhwy.so.1 => /usr/lib/libhwy.so.1
        libjxl_threads.so.0.8 => /usr/lib/libjxl_threads.so.0.8
        libopencore-amrnb.so.0 => /usr/lib/libopencore-amrnb.so.0
        libopenjp2.so.7 => /usr/lib/libopenjp2.so.7
        librav1e.so.0 => /usr/lib/librav1e.so.0
        libspeex.so.1 => /usr/lib/libspeex.so.1
        libSvtAv1Enc.so.1 => /usr/lib/libSvtAv1Enc.so.1
        libtheoraenc.so.1 => /usr/lib/libtheoraenc.so.1
        libtheoradec.so.1 => /usr/lib/libtheoradec.so.1
        libx264.so.164 => /usr/lib/libx264.so.164
        libx265.so.199 => /usr/lib/libx265.so.199
            libmvec.so.1 => /usr/lib/libmvec.so.1
        libxvidcore.so.4 => /usr/lib/libxvidcore.so.4
    libavfilter.so.9 => /usr/lib/libavfilter.so.9
        libswscale.so.7 => /usr/lib/libswscale.so.7
        libpostproc.so.57 => /usr/lib/libpostproc.so.57
        libbs2b.so.0 => /usr/lib/libbs2b.so.0
        libvmaf.so.1 => /usr/lib/libvmaf.so.1
        libass.so.9 => /usr/lib/libass.so.9
        libvidstab.so.1.2 => /usr/lib/libvidstab.so.1.2
            libgomp.so.1 => /usr/lib/libgomp.so.1
        libzimg.so.2 => /usr/lib/libzimg.so.2
    libyajl.so.2 => /usr/lib/libyajl.so.2
    libpcre2-8.so.0 => /usr/lib/libpcre2-8.so.0
    libsqlite3.so.0 => /usr/lib/libsqlite3.so.0
    libchromaprint.so.1 => /usr/lib/libchromaprint.so.1
    libz.so.1 => /usr/lib/libz.so.1
    libicui18n.so.72 => /usr/lib/libicui18n.so.72
    libicuuc.so.72 => /usr/lib/libicuuc.so.72
        libicudata.so.72 => /usr/lib/libicudata.so.72
    libupnp.so.17 => /usr/lib/libupnp.so.17
    libixml.so.11 => /usr/lib/libixml.so.11
    libcurl.so.4 => /usr/lib/libcurl.so.4
        libnghttp2.so.14 => /usr/lib/libnghttp2.so.14
        libssh2.so.1 => /usr/lib/libssh2.so.1
        libpsl.so.5 => /usr/lib/libpsl.so.5
        libssl.so.3 => /usr/lib/libssl.so.3
        libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2
            libkrb5.so.3 => /usr/lib/libkrb5.so.3
            libk5crypto.so.3 => /usr/lib/libk5crypto.so.3
            libcom_err.so.2 => /usr/lib/libcom_err.so.2
            libkrb5support.so.0 => /usr/lib/libkrb5support.so.0
            libkeyutils.so.1 => /usr/lib/libkeyutils.so.1
            libresolv.so.2 => /usr/lib/libresolv.so.2
    libexpat.so.1 => /usr/lib/libexpat.so.1
    libcdio_paranoia.so.2 => /usr/lib/libcdio_paranoia.so.2
        librt.so.1 => /usr/lib/librt.so.1
    libcdio_cdda.so.2 => /usr/lib/libcdio_cdda.so.2
    libcdio.so.19 => /usr/lib/libcdio.so.19
    libmms.so.0 => /usr/lib/libmms.so.0
    libnfs.so.14 => /usr/lib/libnfs.so.14
    libasound.so.2 => /usr/lib/libasound.so.2
    libsamplerate.so.0 => /usr/lib/libsamplerate.so.0
    libsoxr.so.0 => /usr/lib/libsoxr.so.0
    libid3tag.so.0 => /usr/lib/libid3tag.so.0
    libbz2.so.1.0 => /usr/lib/libbz2.so.1.0
    libiso9660.so.11 => /usr/lib/libiso9660.so.11
    libzzip-0.so.13 => /usr/lib/libzzip-0.so.13
    libpulse.so.0 => /usr/lib/libpulse.so.0
        libpulsecommon-16.1.so => /usr/lib/pulseaudio/libpulsecommon-16.1.so
            libasyncns.so.0 => /usr/lib/libasyncns.so.0
    libao.so.4 => /usr/lib/libao.so.4
    libjack.so.0 => /usr/lib/libjack.so.0
    libpipewire-0.3.so.0 => /usr/lib/libpipewire-0.3.so.0
    libshout.so.3 => /usr/lib/libshout.so.3
        libtheora.so.0 => /usr/lib/libtheora.so.0
    libopenal.so.1 => /usr/lib/libopenal.so.1
    libavahi-common.so.3 => /usr/lib/libavahi-common.so.3
    libavahi-client.so.3 => /usr/lib/libavahi-client.so.3
    libFLAC.so.12 => /usr/lib/libFLAC.so.12
    libfluidsynth.so.3 => /usr/lib/libfluidsynth.so.3
        libpulse-simple.so.0 => /usr/lib/libpulse-simple.so.0
        libportaudio.so.2 => /usr/lib/libportaudio.so.2
        libinstpatch-1.0.so.2 => /usr/lib/libinstpatch-1.0.so.2
        libSDL2-2.0.so.0 => /usr/lib/libSDL2-2.0.so.0
        libreadline.so.8 => /usr/lib/libreadline.so.8
            libncursesw.so.6 => /usr/lib/libncursesw.so.6
    libaudiofile.so.1 => /usr/lib/libaudiofile.so.1
    libfaad.so.2 => /usr/lib/libfaad.so.2
    libgme.so.0 => /usr/lib/libgme.so.0
        libubsan.so.1 => /usr/lib/libubsan.so.1
    libmad.so.0 => /usr/lib/libmad.so.0
    libmikmod.so.3 => /usr/lib/libmikmod.so.3
    libmodplug.so.1 => /usr/lib/libmodplug.so.1
    libopenmpt.so.0 => /usr/lib/libopenmpt.so.0
        libvorbisfile.so.3 => /usr/lib/libvorbisfile.so.3
    libmpcdec.so.6 => /usr/lib/libmpcdec.so.6
    libmpg123.so.0 => /usr/lib/libmpg123.so.0
    libopus.so.0 => /usr/lib/libopus.so.0
    libsidplayfp.so.6 => /usr/lib/libsidplayfp.so.6
        libgcrypt.so.20 => /usr/lib/libgcrypt.so.20
            libgpg-error.so.0 => /usr/lib/libgpg-error.so.0
    libsndfile.so.1 => /usr/lib/libsndfile.so.1
    libogg.so.0 => /usr/lib/libogg.so.0
    libvorbis.so.0 => /usr/lib/libvorbis.so.0
    libwavpack.so.1 => /usr/lib/libwavpack.so.1
    libWildMidi.so.2 => /usr/lib/libWildMidi.so.2
    libvorbisenc.so.2 => /usr/lib/libvorbisenc.so.2
    libmp3lame.so.0 => /usr/lib/libmp3lame.so.0
    libtwolame.so.0 => /usr/lib/libtwolame.so.0
    libmpdclient.so.2 => /usr/lib/libmpdclient.so.2
    libsystemd.so.0 => /usr/lib/libsystemd.so.0
        libcap.so.2 => /usr/lib/libcap.so.2
        liblz4.so.1 => /usr/lib/liblz4.so.1
    libstdc++.so.6 => /usr/lib/libstdc++.so.6
    libm.so.6 => /usr/lib/libm.so.6
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1
    libc.so.6 => /usr/lib/libc.so.6

Offline

#4 2023-05-26 13:12:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,863

Re: [SOLVED]mpd: symbol lookup error: /usr/lib/libfmt.so.9: undefined symb

You probably want to use something that isn't C.UTF-8 here: https://wiki.archlinux.org/title/Locale … tem_locale

Last edited by V1del (2023-05-26 13:13:07)

Offline

#5 2023-05-26 13:29:10

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

Re: [SOLVED]mpd: symbol lookup error: /usr/lib/libfmt.so.9: undefined symb

thank you for replying @V1del, i don't think it worked. i followed the instructions in the link you sent and this is now the output of

'locale'

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

'locale -a'

C
C.UTF-8
en_US.utf8
POSIX

'localectl'

System Locale: LANG=en_US.UTF-8
    VC Keymap: (unset)         
   X11 Layout: (unset)    

rebooted my computer too, but the same issue occurs

Last edited by Bluish9992 (2023-05-26 13:32:01)

Offline

#6 2023-05-26 13:39:58

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

Re: [SOLVED]mpd: symbol lookup error: /usr/lib/libfmt.so.9: undefined symb

additional information:
i ran

sudo pacman -Rcns mpd

to uninstall it, then i thought maybe there are some config files that didn't completely get deleted? so i

locate mpd

and i have these files:

/usr/include/mpd/albumart.h
/usr/include/mpd/async.h
/usr/include/mpd/audio_format.h
/usr/include/mpd/binary.h
/usr/include/mpd/capabilities.h
/usr/include/mpd/client.h
/usr/include/mpd/compiler.h
/usr/include/mpd/connection.h
/usr/include/mpd/database.h
/usr/include/mpd/directory.h
/usr/include/mpd/entity.h
/usr/include/mpd/error.h
/usr/include/mpd/fingerprint.h
/usr/include/mpd/idle.h
/usr/include/mpd/list.h
/usr/include/mpd/message.h
/usr/include/mpd/mixer.h
/usr/include/mpd/mount.h
/usr/include/mpd/neighbor.h
/usr/include/mpd/output.h
/usr/include/mpd/pair.h
/usr/include/mpd/parser.h
/usr/include/mpd/partition.h
/usr/include/mpd/password.h
/usr/include/mpd/player.h
/usr/include/mpd/playlist.h
/usr/include/mpd/position.h
/usr/include/mpd/protocol.h
/usr/include/mpd/queue.h
/usr/include/mpd/readpicture.h
/usr/include/mpd/recv.h
/usr/include/mpd/replay_gain.h
/usr/include/mpd/response.h
/usr/include/mpd/search.h
/usr/include/mpd/send.h
/usr/include/mpd/settings.h
/usr/include/mpd/socket.h
/usr/include/mpd/song.h
/usr/include/mpd/stats.h
/usr/include/mpd/status.h
/usr/include/mpd/sticker.h
/usr/include/mpd/tag.h
/usr/include/mpd/version.h
/usr/include/unicode/smpdtfmt.h
/usr/lib/libmpd.so
/usr/lib/libmpd.so.1
/usr/lib/libmpd.so.1.3.0
/usr/lib/libmpdclient.so
/usr/lib/libmpdclient.so.2
/usr/lib/libmpdclient.so.2.20

you guys think i could delete these manually?

Offline

#7 2023-05-26 14:51:11

seth
Member
Registered: 2012-09-03
Posts: 57,289

Re: [SOLVED]mpd: symbol lookup error: /usr/lib/libfmt.so.9: undefined symb

stat /usr/lib/libmpdclient.so.2.20
pacman -Qo

"locate" will show old files when the database hasn't been updated yet.

Do yo get the *same* error with the same nonsense symbol being looked for on the en_US.UTF-8 locale?

Offline

#8 2023-05-26 15:35:08

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

Re: [SOLVED]mpd: symbol lookup error: /usr/lib/libfmt.so.9: undefined symb

i updated before i did 'locate', yeah. I mean when i ls or cd into the dirs and check the files, they're there.

yes same error with the new locale

$ stat /usr/lib/libmpdclient.so.2.20
  File: /usr/lib/libmpdclient.so.2.20
  Size: 137168    	Blocks: 272        IO Block: 4096   regular file
Device: 259,3	Inode: 5270570     Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2023-05-26 21:24:12.375063339 +0800
Modify: 2023-03-19 15:33:01.000000000 +0800
Change: 2023-03-21 20:51:01.714103069 +0800
 Birth: 2023-03-21 20:51:01.710769852 +0800
$ pacman -Qo mpd        
error: No package owns mpd

Offline

#9 2023-05-26 15:49:51

loqs
Member
Registered: 2014-03-06
Posts: 17,911

Re: [SOLVED]mpd: symbol lookup error: /usr/lib/libfmt.so.9: undefined symb

What if you strace mpd

strace -e trace=%file mpd

Edit:

$ pacman -Qo mpd        
error: No package owns mpd

How did you install mpd?

Last edited by loqs (2023-05-26 15:50:52)

Offline

#10 2023-05-26 16:00:14

seth
Member
Registered: 2012-09-03
Posts: 57,289

Re: [SOLVED]mpd: symbol lookup error: /usr/lib/libfmt.so.9: undefined symb

i ran

sudo pacman -Rcns mpd

The stuff might be stale but I flubbed the test:

pacman -Qo /usr/lib/libmpdclient.so.2.20

Offline

#11 2023-05-26 16:02:30

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

Re: [SOLVED]mpd: symbol lookup error: /usr/lib/libfmt.so.9: undefined symb

how's it going @loqs smile

$ strace mpd                        
strace: Can't stat 'mpd': No such file or directory

i installed it through pacman just normally 'pacman -Syu mpd' it's been working fine for almost a year. an update for it happened the other day i think

Offline

#12 2023-05-26 16:19:18

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

Re: [SOLVED]mpd: symbol lookup error: /usr/lib/libfmt.so.9: undefined symb

@seth you were right on the money as always

$ pacman -Qo /usr/lib/libmpdclient.so.2.20
/usr/lib/libmpdclient.so.2.20 is owned by libmpdclient 2.20-3

i uninstalled that and reinstalled mpd and it works now thanks

i guess i do remember installing this for a polybar addon i was fiddling with

i appreciate everyone's help this forum is the best

Last edited by Bluish9992 (2023-05-26 16:21:32)

Offline

Board footer

Powered by FluxBB