[SOLVED] digikam not launching on current - this is weird.
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ls -l /var/lib/pkgtools/packages | grep libass
-rw-r--r-- 1 root root 902 Mar 16 13:57 libass-0.17.1-x86_64-2
and updated libunibreak to
Quote:
ls -l /var/lib/pkgtools/packages | grep libunibreak
-rw-r--r-- 1 root root 1074 Mar 16 13:58 libunibreak-6.1-x86_64-1
and digikam is now working normally.
I'm at a loss to explain why libass was not updated. I update my current systems daily ( when there are updated ) and for unknown reasons libass was not updated with everything else.
digikam: error while loading shared libraries: libunibreak.so.5: cannot open shared object file: No such file or directory
The reason for this kind of error is not always obvious. Digikam does not link directly to libunibreak. Instead, digikam links, for example, to libdigikamgui and libdigikamcore which link to libavfilter which links to libass which links to libunibreak.
Looking for 'not found' in the output of 'ldd /usr/bin/digikam' does not help, as it prints all direct library dependencies mixed with dependencies of dependencies, and so on.
The script below, 'lddtree', lists the direct library dependencies and their dependencies separately. In case of 'lddtree /usr/bin/digikam', looking for 'not found' would have pointed to libass.
Code:
#!/bin/sh
# lddtree
# List direct library dependencies and their dependencies and so on.
# Something like ldd, but ldd does not separate direct dependencies.
# pk 2024-03-16
function check {
echo NEEDED by "$1":
objdump -p "$1"|grep NEEDED|sed 's/ *NEEDED *//;s/$/ /;s/\./\\\./g' > $NEEDED
ldd "$1"|grep -f $NEEDED|sed 's/ (.*//'
echo
}
[ $# -ne 1 ] && echo 'Give a binary or a library.' && exit 1
objdump -p "$1" > /dev/null || exit 1
NEEDED=$(mktemp)
trap 'rm $NEEDED' EXIT
check "$1"
ldd "$1"|grep -v -e linux-vdso.so.1 -e statically -e 'not found' |\
sed 's/.*=> //;s/ (.*//' |\
while read line; do
check $line
done
Last edited by Petri Kaukasoina; 03-17-2024 at 01:32 AM.
Reason: Edited the first sed command to make grepping stricter
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.