Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 820518 - net-libs/libtorrent-rasterbar-2.0.4-r2[python]: broken build: undefined symbol: _Z16bind_sha256_hashv
Summary: net-libs/libtorrent-rasterbar-2.0.4-r2[python]: broken build: undefined symbo...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mikle Kolyada
Keywords: PATCH
Depends on:
Reported: 2021-10-27 13:24 UTC by Conrad
Modified: 2021-10-31 04:33 UTC (History)
3 users (show)

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

upstream patch (f2eefd327f1ca89b053eb1e5f4ed229efe52e47f.patch,1.03 KB, patch)
2021-10-27 13:30 UTC, Conrad
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Conrad 2021-10-27 13:24:55 UTC
=net-libs/libtorrent-rasterbar-2.0.4-r2[python] with python 3.9 (3.8 not tested) results in a broken python module that does not load:

>>> import libtorrent
ImportError: /usr/lib/python3.9/site-packages/ undefined symbol: _Z16bind_sha256_hashv

I was able to fix the error by applying this upstream fix:
Comment 1 Conrad 2021-10-27 13:30:31 UTC
Created attachment 746991 [details, diff]
upstream patch
Comment 2 Larry the Git Cow gentoo-dev 2021-10-31 04:33:17 UTC
The bug has been closed via the following commit(s):

commit e1ab2444c5bc7ea380b30447926371d2904cf29a
Author:     Sam James <>
AuthorDate: 2021-10-31 04:32:46 +0000
Commit:     Sam James <>
CommitDate: 2021-10-31 04:32:46 +0000

    net-libs/libtorrent-rasterbar: fix Python bindings in 2.0.4
    Thanks-to: Conrad <>
    Signed-off-by: Sam James <>

 ...libtorrent-rasterbar-2.0.4-python-symbols.patch | 28 ++++++++++++++++++++++
 ...ebuild => libtorrent-rasterbar-2.0.4-r4.ebuild} |  1 +
 2 files changed, 29 insertions(+)