Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 948870

Summary: app-crypt/heimdal-7.8.0-r3: libheimsqlite3.so has conflicting symbols with libsqlite3.so, leading to application crashes
Product: Gentoo Linux Reporter: Marco Rebhan <me>
Component: Current packagesAssignee: Gentoo Kerberos Maintainers <kerberos>
Status: UNCONFIRMED ---    
Severity: normal CC: base-system, jsmolic, me
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info sqlite
lldb dolphin
lldb quassel
emerge --info heimdal
heimdal config.log

Description Marco Rebhan 2025-01-26 19:43:20 UTC
This causes a crash on startup in net-irc/quassel and a crash in kde-apps/dolphin when hovering over the activities context menu on a file. (see attached logs)

Both use qtsql (5 and 6 respectively), so the issue may also be in that package.
Comment 1 Marco Rebhan 2025-01-26 19:43:49 UTC
Created attachment 917569 [details]
emerge --info sqlite
Comment 2 Marco Rebhan 2025-01-26 19:44:07 UTC
Created attachment 917570 [details]
lldb dolphin
Comment 3 Marco Rebhan 2025-01-26 19:44:19 UTC
Created attachment 917571 [details]
lldb quassel
Comment 4 Marco Rebhan 2025-03-01 22:16:52 UTC
I figured out what this is actually caused by. It's caused by app-crypt/heimdal.

heimdal builds libheimsqlite3.so which ends up getting linked into applications along with the real sqlite3 when they link to libkrb5, leading to conflicting symbols.

related: https://github.com/heimdal/heimdal/issues/1142

This is clearly unintended since the Heimdal ebuild already passes --with-sqlite3="${EPREFIX}"/usr to configure, but the configure script detects it as not present.

A workaround is setting EXTRA_ECONF="--with-sqlite3-lib=/usr/lib64/libsqlite3.so --with-sqlite3-headers=/usr/include" when building Heimdal.
Comment 5 Marco Rebhan 2025-03-01 22:17:14 UTC
Created attachment 920110 [details]
emerge --info heimdal
Comment 6 Marco Rebhan 2025-03-01 22:18:02 UTC
Created attachment 920111 [details]
heimdal config.log