Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939812 - telegram-desktop-5.2.3: symbol lookup error: telegram-desktop: undefined symbol: XXH32
Summary: telegram-desktop-5.2.3: symbol lookup error: telegram-desktop: undefined sym...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Esteve Varela Colominas
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-18 10:54 UTC by Jaco Kroon
Modified: 2024-09-18 12:07 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaco Kroon 2024-09-18 10:54:43 UTC
jkroon@plastiekpoot ~ $ LANG=C telegram-desktop
telegram-desktop: symbol lookup error: telegram-desktop: undefined symbol: XXH32

I believe xxhash is the provider package.  Merge list show when which packages were upgraded (which doesn't make much sense since telegram-desktop was restarted since the last merge of either package.  However, it looks like telegram-desktop doesn't directly link libxxhash:

jkroon@plastiekpoot ~ $ ldd $(which telegram-desktop) | grep xxhash
[1] jkroon@plastiekpoot ~ $ 

telegram starts successfully with:

jkroon@plastiekpoot ~ $ LANG=C LD_PRELOAD=/usr/lib64/libxxhash.so.0.8.2 telegram-desktop


What bugs me is that it obviously relies on some other intermediate library to bring in xxhash, I don't know which one, but I do expect telegram-desktop to link libxxhash directly since it plainly uses the methods directly:

jkroon@plastiekpoot ~ $ objdump -T /usr/bin/telegram-desktop | grep XXH
0000000000000000      DF *UND*	0000000000000000  Base        XXH64_reset
0000000000000000      DF *UND*	0000000000000000  Base        XXH64_digest
0000000000000000      DF *UND*	0000000000000000  Base        XXH64_createState
0000000000000000      DF *UND*	0000000000000000  Base        XXH64_freeState
0000000000000000      DF *UND*	0000000000000000  Base        XXH64_update
0000000000000000      DF *UND*	0000000000000000  Base        XXH64
0000000000000000      DF *UND*	0000000000000000  Base        XXH32

For the time being I'll just LD_PRELOAD it.
Comment 1 Yixun Lan archtester gentoo-dev 2024-09-18 11:54:40 UTC
could you try the most recent version, say 5.5.1 here? I've checked, no problem here, besides it's worth the effort to fix the problem in newest version.

$ ldd $(which telegram-desktop)|grep xxhash
        libxxhash.so.0 => /usr/lib64/libxxhash.so.0 (0x00007f4e3bf7c000)
Comment 2 Yixun Lan archtester gentoo-dev 2024-09-18 11:55:35 UTC
(In reply to Yixun Lan from comment #1)
> could you try the most recent version, say 5.5.1 here? I've checked, no
it's 5.5.5, just pushed
Comment 3 Esteve Varela Colominas 2024-09-18 12:07:41 UTC
Last I checked, xxhash is brought in by tg_owt, but you can run dev-util/libtree on it to check.