Package: src:cwiid
Version: 0.6.91-10
Severity: serious
Tags: sid trixie
User: debian-pyt...@lists.debian.org
Usertags: python3.13
cwiid ftbfs with Python 3.13 as the default
[...]
make[2]: Entering directory '/<<PKGBUILDDIR>>/python'
python3 setup.py build_ext -g -I../libcwiid -L../libcwiid -lcwiid
Wiimote.c:72:19: warning: cast between incompatible function types from
‘PyObject * (*)(Wiimote *)’ {aka ‘struct _object * (*)(Wiimote *)’} to
‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object *
(*)(struct _object *, struct _object *)’} [-Wcast-function-type]
72 | {"close", (PyCFunction)Wiimote_close, METH_NOARGS,
| ^
Wiimote.c:74:20: warning: cast between incompatible function types from
‘PyObject * (*)(Wiimote *, PyObject *, PyObject *)’ {aka ‘struct _object
* (*)(Wiimote *, struct _object *, struct _object *)’} to ‘PyObject *
(*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object
*, struct _object *)’} [-Wcast-function-type]
74 | {"enable", (PyCFunction)Wiimote_enable, METH_VARARGS |
METH_KEYWORDS,
| ^
Wiimote.c:76:21: warning: cast between incompatible function types from
‘PyObject * (*)(Wiimote *, PyObject *, PyObject *)’ {aka ‘struct _object
* (*)(Wiimote *, struct _object *, struct _object *)’} to ‘PyObject *
(*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object
*, struct _object *)’} [-Wcast-function-type]
76 | {"disable", (PyCFunction)Wiimote_disable, METH_VARARGS
| METH_KEYWORDS,
| ^
Wiimote.c:78:22: warning: cast between incompatible function types from
‘PyObject * (*)(Wiimote *)’ {aka ‘struct _object * (*)(Wiimote *)’} to
‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object *
(*)(struct _object *, struct _object *)’} [-Wcast-function-type]
78 | {"get_mesg", (PyCFunction)Wiimote_get_mesg, METH_NOARGS,
| ^
Wiimote.c:80:25: warning: cast between incompatible function types from
‘PyObject * (*)(Wiimote *, PyObject *, PyObject *)’ {aka ‘struct _object
* (*)(Wiimote *, struct _object *, struct _object *)’} to ‘PyObject *
(*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object
*, struct _object *)’} [-Wcast-function-type]
80 | {"get_acc_cal", (PyCFunction)Wiimote_get_acc_cal,
| ^
Wiimote.c:84:29: warning: cast between incompatible function types from
‘PyObject * (*)(Wiimote *)’ {aka ‘struct _object * (*)(Wiimote *)’} to
‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object *
(*)(struct _object *, struct _object *)’} [-Wcast-function-type]
84 | {"get_balance_cal",
(PyCFunction)Wiimote_get_balance_cal, METH_NOARGS,
| ^
Wiimote.c:87:28: warning: cast between incompatible function types from
‘PyObject * (*)(Wiimote *)’ {aka ‘struct _object * (*)(Wiimote *)’} to
‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object *
(*)(struct _object *, struct _object *)’} [-Wcast-function-type]
87 | {"request_status", (PyCFunction)Wiimote_request_status,
METH_NOARGS,
| ^
Wiimote.c:89:18: warning: cast between incompatible function types from
‘PyObject * (*)(Wiimote *, PyObject *, PyObject *)’ {aka ‘struct _object
* (*)(Wiimote *, struct _object *, struct _object *)’} to ‘PyObject *
(*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object
*, struct _object *)’} [-Wcast-function-type]
89 | {"read", (PyCFunction)Wiimote_read, METH_VARARGS |
METH_KEYWORDS,
| ^
Wiimote.c:91:22: warning: cast between incompatible function types from
‘PyObject * (*)(Wiimote *, PyObject *, PyObject *)’ {aka ‘struct _object
* (*)(Wiimote *, struct _object *, struct _object *)’} to ‘PyObject *
(*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object
*, struct _object *)’} [-Wcast-function-type]
91 | {"send_rpt", (PyCFunction)Wiimote_send_rpt,
METH_VARARGS | METH_KEYWORDS,
| ^
Wiimote.c:93:19: warning: cast between incompatible function types from
‘PyObject * (*)(Wiimote *, PyObject *, PyObject *)’ {aka ‘struct _object
* (*)(Wiimote *, struct _object *, struct _object *)’} to ‘PyObject *
(*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object
*, struct _object *)’} [-Wcast-function-type]
93 | {"write", (PyCFunction)Wiimote_write, METH_VARARGS |
METH_KEYWORDS,
| ^
Wiimote.c:148:1: warning: missing initializer for field ‘tp_free’ of
‘PyTypeObject’ {aka ‘struct _typeobject’} [-Wmissing-field-initializers]
148 | };
| ^
In file included from /usr/include/python3.13/object.h:1222,
from /usr/include/python3.13/Python.h:72,
from Wiimote.c:23:
/usr/include/python3.13/cpython/object.h:215:14: note: ‘tp_free’
declared here
215 | freefunc tp_free; /* Low-level free-memory routine */
| ^~~~~~~
Wiimote.c: In function ‘Wiimote_new’:
Wiimote.c:152:51: warning: unused parameter ‘args’ [-Wunused-parameter]
152 | Wiimote_new(PyTypeObject *type, PyObject *args,
PyObject *kwds)
| ~~~~~~~~~~^~~~
Wiimote.c:152:67: warning: unused parameter ‘kwds’ [-Wunused-parameter]
152 | Wiimote_new(PyTypeObject *type, PyObject *args,
PyObject *kwds)
|
~~~~~~~~~~^~~~
Wiimote.c: In function ‘Wiimote_init’:
Wiimote.c:212:13: warning: ‘PyEval_InitThreads’ is deprecated
[-Wdeprecated-declarations]
212 | PyEval_InitThreads();
| ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.13/Python.h:124:
/usr/include/python3.13/ceval.h:114:37: note: declared here
114 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
| ^~~~~~~~~~~~~~~~~~
Wiimote.c: In function ‘Wiimote_set_mesg_callback’:
Wiimote.c:302:41: warning: unused parameter ‘closure’ [-Wunused-parameter]
302 | void *closure)
| ~~~~~~^~~~~~~
Wiimote.c: In function ‘Wiimote_get_state’:
Wiimote.c:369:57: warning: unused parameter ‘closure’ [-Wunused-parameter]
369 | static PyObject *Wiimote_get_state(Wiimote* self, void *closure)
| ~~~~~~^~~~~~~
Wiimote.c: In function ‘Wiimote_set_led’:
Wiimote.c:673:66: warning: unused parameter ‘closure’ [-Wunused-parameter]
673 | static int Wiimote_set_led(Wiimote *self, PyObject *PyLed, void
*closure)
|
~~~~~~^~~~~~~
Wiimote.c: In function ‘Wiimote_set_rumble’:
Wiimote.c:696:69: warning: unused parameter ‘closure’ [-Wunused-parameter]
696 | Wiimote_set_rumble(Wiimote *self, PyObject *PyRumble,
void *closure)
|
~~~~~~^~~~~~~
Wiimote.c: In function ‘Wiimote_set_rpt_mode’:
Wiimote.c:719:72: warning: unused parameter ‘closure’ [-Wunused-parameter]
719 | Wiimote_set_rpt_mode(Wiimote *self, PyObject
*PyRptMode, void *closure)
|
~~~~~~^~~~~~~
Wiimote.c: In function ‘Wiimote_read’:
Wiimote.c:804:13: error: implicit declaration of function
‘PyObject_AsWriteBuffer’; did you mean ‘PyObject_GetBuffer’?
[-Wimplicit-function-declaration]
804 | if (PyObject_AsWriteBuffer(pyRetBuf, &buf, &len)) {
| ^~~~~~~~~~~~~~~~~~~~~~
| PyObject_GetBuffer
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
make[2]: *** [Makefile:10: all] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/python'