error: too many arguments to function ‘(PyObject * (*)(PyObject *, PyObject * const*, Py_ssize_t))meth’
Bug #1967861 reported by
Matthias Mailänder
Bug watches keep track of this bug in other bug trackers.
The same problem occurs when building on Arch Linux.
```
using setuptools
running build
running build_py
warning: build_py: byte-compiling is disabled, skipping.
running build_ext ext/_gldraw' with variant 'ogl' ext/_glarea' with variant 'ogl' ext/_glarea_ ogl' extension linux-x86_ 64-cpython- 310/pybiklib/ ext/_glarea_ ogl.pyx from build/temp. linux-x86_ 64-cpython- 310/pybiklib/ ext/glarea_ ogl.py linux-x86_ 64-cpython- 310/pybiklib/ ext/glarea_ ogl.py --> build/temp. linux-x86_ 64-cpython- 310/pybiklib/ ext/_glarea_ ogl.pyx linux-x86_ 64-cpython- 310/pybiklib/ ext/_glarea_ ogl.pyx linux-x86_ 64-cpython- 310/pybiklib/ ext/_glarea_ ogl.pxd. tmp temp.linux- x86_64- cpython- 310/pybiklib/ ext/_glarea_ ogl.pxd' ext/_glarea_ ogl' extension FORTIFY_ SOURCE= 2 -Wformat -Werror= format- security -fstack- clash-protectio n -fcf-protection -g -ffile- prefix- map=/build/ python/ src=/usr/ src/debug -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_ FORTIFY_ SOURCE= 2 -Wformat -Werror= format- security -fstack- clash-protectio n -fcf-protection -g -ffile- prefix- map=/build/ python/ src=/usr/ src/debug -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_ FORTIFY_ SOURCE= 2 -Wformat -Werror= format- security -fstack- clash-protectio n -fcf-protection -g -ffile- prefix- map=/build/ python/ src=/usr/ src/debug -flto=auto -fPIC -DGL_GLEXT_ PROTOTYPES -I/usr/ include/ python3. 10 -c build/temp. linux-x86_ 64-cpython- 310/pybiklib/ ext/_glarea_ ogl.c -o build/temp. linux-x86_ 64-cpython- 310/build/ temp.linux- x86_64- cpython- 310/pybiklib/ ext/_glarea_ ogl.o linux-x86_ 64-cpython- 310/pybiklib/ ext/_glarea_ ogl.c: In function ‘__Pyx_ ParseOptionalKe ywords’ : linux-x86_ 64-cpython- 310/pybiklib/ ext/_glarea_ ogl.c:11466: 21: warning: ‘_PyUnicode_ get_wstr_ length’ is deprecated [-Wdeprecated- declarations] GET_SIZE( **name) != PyUnicode_ GET_SIZE( key)) ? 1 : python3. 10/unicodeobjec t.h:1046,
from /usr/include/ python3. 10/Python. h:83,
from build/temp. linux-x86_ 64-cpython- 310/pybiklib/ ext/_glarea_ ogl.c:4: python3. 10/cpython/ unicodeobject. h:446:26: note: declared here get_wstr_ length( PyObject *op) { ~~~~~~~ ~~~~~~~ ~~~~~ linux-x86_ 64-cpython- 310/pybiklib/ ext/_glarea_ ogl.c:11466: 21: warning: ‘PyUnicode_ AsUnicode’ is deprecated [-Wdeprecated- declarations] GET_SIZE( **name) != PyUnicode_ GET_SIZE( key)) ? 1 : python3. 10/cpython/ unicodeobject. h:580:45: note: declared here Py_UNICODE *) PyUnicode_ AsUnicode(
generating extension 'pybiklib/
generating extension 'pybiklib/
building C-Code for 'pybiklib/
generating build/temp.
py2pyx: build/temp.
generating build/temp.
generating build/temp.
unchanged file 'build/
building 'pybiklib/
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_
build/temp.
build/temp.
11466 | (PyUnicode_
| ^
In file included from /usr/include/
/usr/include/
446 | static inline Py_ssize_t _PyUnicode_
| ^~~~~~~
build/temp.
11466 | (PyUnicode_
| ^
/usr/include/
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(
| ^~~~~~~~~~~~~...