-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
Compiling libdnet with Python 3.13 and newer will fail, because PyObject_AsReadBuffer has been removed. There is now PyObject_GetBuffer, but it's not a drop in replacement.
2025-08-17 13:57:30,916 root INFO x86_64-pc-linux-gnu-gcc -march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -Wno-incompatible-pointer-types -DNDEBUG -fPIC -I../include -I/usr/include/python3.13 -c ./dnet.c -o /var/tmp/portage/dev-libs/libdnet-1.18.1/work/libdnet-libdnet-1.18.1-python3_13/build0/temp.linux-x86_64-cpython-313/dnet.o
./dnet.c: In function ‘__pyx_pf_4dnet_12ip_checksum’:
./dnet.c:6811:16: error: implicit declaration of function ‘PyObject_AsReadBuffer’; did you mean ‘PyObject_GetBuffer’? [-Wimplicit-function-declaration]
6811 | __pyx_t_1 = (PyObject_AsReadBuffer(__pyx_v_pkt, ((void const **)(&__pyx_v_p)), (&__pyx_v_n)) == 0);
| ^~~~~~~~~~~~~~~~~~~~~
| PyObject_GetBuffer
error: command '/usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc' failed with exit code 1
Metadata
Metadata
Assignees
Labels
No labels