Bug 496785

Summary: digikam appimage does not start with symbol lookup error: undefined symbol: nettle_rsa_oaep_sha384_decrypt
Product: [Applications] digikam Reporter: anari.jalakas
Component: Bundle-AppImageAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version First Reported In: 8.6.0   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 8.6.0
Sentry Crash Report:

Description anari.jalakas 2024-11-28 13:37:42 UTC
SUMMARY
digikam appimage does not start with symbol lookup error: undefined symbol: nettle_rsa_oaep_sha384_decrypt

STEPS TO REPRODUCE
1. 
> cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux trixie/sid"
NAME="Debian GNU/Linux"
VERSION_CODENAME=trixie
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
and also legacy file:
> cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.10
DISTRIB_CODENAME=groovy
DISTRIB_DESCRIPTION="Ubuntu Groovy Gorilla (development branch)"
2. ./digiKam-8.6.0-20241128T110108-Qt6-x86-64.appimage

OBSERVED RESULT
> ./digiKam-8.6.0-20241128T110108-Qt6-x86-64.appimage 
-- digiKam Linux AppImage Bundle
-- Use 'help' as CLI argument to know all available options for digiKam application.
-- Notes: to integrate this bundle to your desktop, use AppImageLauncher.
--        to enable all debug messages on the console, use 'export QT_LOGGING_RULES="digikam*=true"'.
--        to extract the bundle contents locally, use option '--appimage-extract' on the command line.
-- Detected host Linux debian gnu/linux-64-2010
-- AppImage mounted directory: /tmp/.mount_digiKaPntYGI
Check library libudev.so.0
Check library libxcb-dri3.so.0
Check library libcrypto.so.1.1
Check library libssl.so.1.1
Check library libnss3.so
Check library libnssutil3.so
Check library libsmime3.so
Check library libgmodule-2.0.so.0
Check library libgnutls.so.30
Check library libnettle.so.8
-- Preloading shared libs: :/usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0:/usr/lib/x86_64-linux-gnu/libnss3.so:/usr/lib/x86_64-linux-gnu/libnssutil3.so:/usr/lib/x86_64-linux-gnu/libsmime3.so:/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0:/usr/lib/x86_64-linux-gnu/libgnutls.so.30:/usr/lib/x86_64-linux-gnu/libnettle.so.8
digikam: symbol lookup error: /usr/lib/x86_64-linux-gnu/libgnutls.so.30: undefined symbol: nettle_rsa_oaep_sha384_decrypt, version HOGWEED_6

You can note problem here: "-- Detected host Linux debian gnu/linux-64-2010"

libgnutls.so.30 is symlink:
> ls -l /usr/lib/x86_64-linux-gnu/libgnutls.so.30
lrwxrwxrwx 1 root root 20 10. nov   17:32 /usr/lib/x86_64-linux-gnu/libgnutls.so.30 -> libgnutls.so.30.40.2
Comment 1 caulier.gilles 2024-11-28 14:13:06 UTC
Try the 8.6.0 pre-release appimage where we fixed something similar recently :

https://files.kde.org/digikam/
Comment 2 anari.jalakas 2024-11-28 14:21:42 UTC
digiKam-8.6.0-20241128T110108-Qt6-x86-64.appimage 
-> digiKam  8.6.0  2024 11 28  is the latest build from https://files.kde.org/digikam/
Comment 3 Maik Qualmann 2024-11-28 21:31:24 UTC
Git commit 1adf4400bbb6b04ff40f6351c1966dfeebefb8eb by Maik Qualmann.
Committed on 28/11/2024 at 21:30.
Pushed by mqualmann into branch 'master'.

fix os detect when name without quotation marks
FIXED-IN: 8.6.0

M  +1    -1    NEWS
M  +2    -2    project/bundles/appimage/data/AppRun

https://invent.kde.org/graphics/digikam/-/commit/1adf4400bbb6b04ff40f6351c1966dfeebefb8eb