Bug 496619 - Fedora 41 appimage: symbol lookup error: /usr/lib64/libgnutls.so.30
Summary: Fedora 41 appimage: symbol lookup error: /usr/lib64/libgnutls.so.30
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Bundle-AppImage (show other bugs)
Version: 8.6.0
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-23 20:04 UTC by Nicofo
Modified: 2024-11-27 14:14 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.6.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicofo 2024-11-23 20:04:55 UTC
Hello,

on Fedora 41, with latest appimage (digiKam-8.6.0-20241123T170103-Qt6-x86-64.appimage), I get:

-- Preloading shared libs: :/usr/lib64/libxcb-dri3.so.0:/usr/lib64/libnss3.so:/usr/lib64/libnssutil3.so:/usr/lib64/libsmime3.so:/usr/lib64/libgmodule-2.0.so.0:/usr/lib64/libgnutls.so.30:/usr/lib64/libnettle.so.8
digikam: symbol lookup error: /usr/lib64/libgnutls.so.30: undefined symbol: nettle_rsa_oaep_sha384_decrypt, version HOGWEED_6

(note: I had no such problem with Fedora 40)

-> is the same as bug #492040 for Fedora 41. Modifying AppRun (commenting #preload_shared_library libgnutls.so.30) solves this issue.
So this file must also be modified for Fedora 41.

$ cat /etc/os-release
NAME="Fedora Linux"
VERSION="41 (Workstation Edition)"
RELEASE_TYPE=stable
ID=fedora
VERSION_ID=41
VERSION_CODENAME=""
PLATFORM_ID="platform:f41"
PRETTY_NAME="Fedora Linux 41 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:41"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f41/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=41
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=41
SUPPORT_END=2025-12-15
VARIANT="Workstation Edition"
VARIANT_ID=workstation
Comment 1 Maik Qualmann 2024-11-23 21:16:59 UTC
Git commit a7752823a50bbf7a3c28d5390c51f69fdbe3b347 by Maik Qualmann.
Committed on 23/11/2024 at 21:16.
Pushed by mqualmann into branch 'master'.

do not preload libgnutls in Fedora Linux >= 40

M  +3    -2    project/bundles/appimage/data/AppRun

https://invent.kde.org/graphics/digikam/-/commit/a7752823a50bbf7a3c28d5390c51f69fdbe3b347
Comment 2 Maik Qualmann 2024-11-23 21:35:43 UTC
Git commit 9cec9dbd3439aae4005f95c42a547c201b289712 by Maik Qualmann.
Committed on 23/11/2024 at 21:34.
Pushed by mqualmann into branch 'master'.

use lower case for os name and same bash code

M  +6    -6    project/bundles/appimage/data/AppRun

https://invent.kde.org/graphics/digikam/-/commit/9cec9dbd3439aae4005f95c42a547c201b289712
Comment 3 Maik Qualmann 2024-11-26 08:55:31 UTC
A new AppImage is available for testing, please report if it now starts under Fedora.

https://files.kde.org/digikam/

Maik
Comment 4 Nicofo 2024-11-26 15:36:41 UTC
Hello Maik,

I tried with last version of appimage. It still does not work.
Reason is that the $OS_VERSION is empty instead of being "41" in my case.

Line 59 of AppRun is:
    OS_VERSION=$(awk -F'"' '$1 ~ /^VERSION_ID/ {print $2}' /etc/*-release | tr -d '.')
which indeed results in empty string for Fedora.
Reason: see the output of cat /etc/os-release in comment #0:
VERSION_ID=41
(and not VERSION_ID="41")

So you could change line 59 with these 2 lines for example:
    OS_VERSION=$(awk -F'"' '$1 ~ /^VERSION_ID/ {print $2}' /etc/*-release | tr -d '.')
    [ -z "${OS_VERSION}" ] && OS_VERSION=$(awk -F'=' '$1 ~ /^VERSION_ID/ {print $2}' /etc/*-release | tr -d '.')
Comment 5 Maik Qualmann 2024-11-26 17:32:39 UTC
Git commit 574d1d583d268987433e2c7c73cf166634cf69dc by Maik Qualmann.
Committed on 26/11/2024 at 17:31.
Pushed by mqualmann into branch 'master'.

fix detect os version without quotes

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

https://invent.kde.org/graphics/digikam/-/commit/574d1d583d268987433e2c7c73cf166634cf69dc
Comment 6 Nicofo 2024-11-27 13:10:36 UTC
It's working now with last version of Appimage (from thsi morning).

Thanks a lot for you work !