[pybsddb] AArch64 debian issue with python berkeleydb bindings

Markuss Broks markuss.broks at gmail.com
Wed Jan 15 16:54:32 CET 2025


Hello,

On 1/15/25 12:22 AM, Jesus Cea wrote:
> On 14/1/25 21:08, Markuss Broks wrote:
>
>> /usr/lib/aarch64-linux-gnu/libdb-5.3.a
>> /usr/lib/aarch64-linux-gnu/libdb.a
>> /usr/lib/aarch64-linux-gnu/libdb.so
>
> That is useful. Please, confirm you don't have this file:
>
>     /usr/lib/aarch64-linux-gnu/libdb-5.3.so

Hm, it seems like there's another package:

$ ls /usr/lib/aarch64-linux-gnu/libdb*
/usr/lib/aarch64-linux-gnu/libdb-5.3.a 
/usr/lib/aarch64-linux-gnu/libdb.so 
/usr/lib/aarch64-linux-gnu/libdb_cxx.a 
/usr/lib/aarch64-linux-gnu/libdbus-1.so.3.32.4
/usr/lib/aarch64-linux-gnu/libdb-5.3.so 
/usr/lib/aarch64-linux-gnu/libdb_cxx-5.3.a 
/usr/lib/aarch64-linux-gnu/libdb_cxx.so
/usr/lib/aarch64-linux-gnu/libdb.a 
/usr/lib/aarch64-linux-gnu/libdb_cxx-5.3.so 
/usr/lib/aarch64-linux-gnu/libdbus-1.so.3
$ dpkg -S /usr/lib/aarch64-linux-gnu/libdb-5.3.so
libdb5.3t64:arm64: /usr/lib/aarch64-linux-gnu/libdb-5.3.so
$ dpkg -L libdb5.3t64
/.
/usr
/usr/lib
/usr/lib/aarch64-linux-gnu
/usr/lib/aarch64-linux-gnu/libdb-5.3.so
/usr/share
/usr/share/doc
/usr/share/doc/libdb5.3t64
/usr/share/doc/libdb5.3t64/build_signature_arm64.txt
/usr/share/doc/libdb5.3t64/changelog.Debian.gz
/usr/share/doc/libdb5.3t64/copyright
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/libdb5.3t64


So there is /usr/lib/aarch64-linux-gnu/libdb-5.3.so.

>
> Also, please compile berkeleydb bindings, locate the shared object 
> generated and provide the result of "ldd" on it. Something like:
>
>     ldd _berkeleydb.abi3.so
Here's output of that:

$ ldd 
/usr/local/lib/python3.12/dist-packages/berkeleydb/_berkeleydb.abi3.so
     linux-vdso.so.1 (0x0000f47e383cc000)
     libdb-5.3.so => /usr/lib/aarch64-linux-gnu/libdb-5.3.so 
(0x0000f47e38180000)
     libc.so.6 => /usr/lib/aarch64-linux-gnu/libc.so.6 (0x0000f47e37fc0000)
     /lib/ld-linux-aarch64.so.1 (0x0000f47e3838f000)

>
> Thanks.
>

BTW, the issue is also reproducible in docker using AArch64 
debian:buster-slim image when trying to install the berkeleydb package 
with pip3.


- Markuss



More information about the pybsddb mailing list