You are not logged in.
I have community/keepassxc 2.2.4-1 installed and when launching it, I see: 'keepassxc: error while loading shared libraries: libjson-c.so.2: cannot open shared object file: No such file or directory'.
I checked and I have core/json-c 0.13-1 installed, which includes libjson-c.so.3, but not libjson-c.so.2.
Curious, I ran keepassxc with strace and I see the following:
openat(AT_FDCWD, "/usr/lib/tls/x86_64/x86_64/libjson-c.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/tls/x86_64/x86_64", 0x7ffeb17aca90) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/tls/x86_64/libjson-c.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/tls/x86_64", 0x7ffeb17aca90) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/tls/x86_64/libjson-c.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/tls/x86_64", 0x7ffeb17aca90) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/tls/libjson-c.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/tls", 0x7ffeb17aca90) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/x86_64/x86_64/libjson-c.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64/x86_64", 0x7ffeb17aca90) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/x86_64/libjson-c.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64", 0x7ffeb17aca90) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/x86_64/libjson-c.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64", 0x7ffeb17aca90) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/libjson-c.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib", {st_mode=S_IFDIR|0755, st_size=221184, ...}) = 0
writev(2, [{iov_base="keepassxc", iov_len=9}, {iov_base=": ", iov_len=2}, {iov_base="error while loading shared libra"..., iov_len=36}, {iov_base=": ", iov_len=2}, {iov_base="libjson-c.so.2", iov_len=14}, {iov_base=": ", iov_len=2}, {iov_base="cannot open shared object file", iov_len=30}, {iov_base=": ", iov_len=2}, {iov_base="No such file or directory", iov_len=25}, {iov_base="\n", iov_len=1}], 10keepassxc: error while loading shared libraries: libjson-c.so.2: cannot open shared object file: No such file or directory
(Full output at: https://pastebin.com/RHLDKWWB)
What could be causing this issue?
Last edited by nticompass (2018-01-08 18:27:45)
Offline
Use lddtree (part of community/pax-utils) to identify where that dependency is coming from. My guess is an outdated AUR-variant of a repository package.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Use lddtree (part of community/pax-utils) to identify where that dependency is coming from. My guess is an outdated AUR-variant of a repository package.
That was *exactly* the issue here. I had aur/yubikey-personalization-git installed. Once I installed community/yubikey-personalization in its place, KeepassXC worked fine! Thanks a lot
Offline
Is it possible you did a partial upgrade? Can you make sure you fully upgrade all packages and then see if the error continues?
Homepage | Arch Linux Women | Arch Linux Classroom
Acer Aspire E5-575G-53VG:
Intel Dual-Core i5-6200U 2.3 GHz; Skylake rev3 | 8GB DDR4 ram | Intel HD Graphics 520 + NVIDIA GeForce 940MX
Qualcomm Atheros QCA9377 802.11ac | Realtek RTL8111/8168/8411 Gigabit Ethernet Controller
Offline
Is it possible you did a partial upgrade? Can you make sure you fully upgrade all packages and then see if the error continues?
All packages are upgraded, it was that I had an [outdated] AUR package when I should've had the newer one in "community".
Offline
Upgrading/rebuilding aur/yubikey-personalization-git would have fixed the issue as well
Offline