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

Bug 820518

Summary: net-libs/libtorrent-rasterbar-2.0.4-r2[python]: broken build: undefined symbol: _Z16bind_sha256_hashv
Product: Gentoo Linux Reporter: Conrad <conrad_bugtracker>
Component: Current packagesAssignee: Mikle Kolyada (RETIRED) <zlogene>
Status: RESOLVED FIXED    
Severity: normal CC: jstein, sam, slashbeast
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: upstream patch

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/libtorrent.cpython-39-x86_64-linux-gnu.so: undefined symbol: _Z16bind_sha256_hashv

I was able to fix the error by applying this upstream fix: https://github.com/arvidn/libtorrent/commit/f2eefd327f1ca89b053eb1e5f4ed229efe52e47f
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):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1ab2444c5bc7ea380b30447926371d2904cf29a

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

    net-libs/libtorrent-rasterbar: fix Python bindings in 2.0.4
    
    Thanks-to: Conrad <conrad_bugtracker@fps-power.eu>
    Closes: https://bugs.gentoo.org/820518
    Signed-off-by: Sam James <sam@gentoo.org>

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