https://bugzilla.redhat.com/show_bug.cgi?id=2176164
Bug ID: 2176164
Summary: zbar fails to build with Python 3.12: error:
'PyLongObject' {aka 'struct _longobject'} has no
member named 'ob_digit'
Product: Fedora
Version: rawhide
Status: NEW
Component: zbar
Assignee: gwync(a)protonmail.com
Reporter: thrnciar(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: dougsland(a)redhat.com,
epel-packagers-sig(a)lists.fedoraproject.org,
gwync(a)protonmail.com, mchehab(a)infradead.org,
mhroncok(a)redhat.com, mr.marcelo.barbosa(a)gmail.com,
negativo17(a)gmail.com, thrnciar(a)redhat.com
Blocks: 2135404 (PYTHON3.12)
Target Milestone: ---
Classification: Fedora
zbar fails to build with Python 3.12.0a5.
In file included from /usr/include/python3.12/Python.h:44,
from python/zbarmodule.h:24,
from python/enum.c:24:
python/enum.c: In function 'enumitem_new':
/usr/include/python3.12/object.h:179:68: warning: passing argument 2 of
'Py_SET_SIZE' makes integer from pointer without a cast [-Wint-conversion]
179 | # define Py_SET_SIZE(ob, size) Py_SET_SIZE(_PyVarObject_CAST(ob),
(size))
|
^~~~~~
| |
|
PyLongObject * {aka struct _longobject *}
python/enum.c:61:5: note: in expansion of macro 'Py_SET_SIZE'
61 | Py_SET_SIZE(&self->val, longval);
| ^~~~~~~~~~~
/usr/include/python3.12/object.h:175:60: note: expected 'Py_ssize_t' {aka
'long
int'} but argument is of type 'PyLongObject *' {aka 'struct _longobject
*'}
175 | static inline void Py_SET_SIZE(PyVarObject *ob, Py_ssize_t size) {
| ~~~~~~~~~~~^~~~
python/enum.c:62:14: error: 'PyLongObject' {aka 'struct _longobject'} has
no
member named 'ob_digit'
62 | self->val.ob_digit[0] = longval->ob_digit[0];
| ^
python/enum.c:62:36: error: 'PyLongObject' {aka 'struct _longobject'} has
no
member named 'ob_digit'
62 | self->val.ob_digit[0] = longval->ob_digit[0];
| ^~
python/enum.c: In function 'zbarEnumItem_New':
/usr/include/python3.12/object.h:179:68: warning: passing argument 2 of
'Py_SET_SIZE' makes integer from pointer without a cast [-Wint-conversion]
179 | # define Py_SET_SIZE(ob, size) Py_SET_SIZE(_PyVarObject_CAST(ob),
(size))
|
^~~~~~
| |
|
PyLongObject * {aka struct _longobject *}
python/enum.c:152:5: note: in expansion of macro 'Py_SET_SIZE'
152 | Py_SET_SIZE(&self->val, longval);
| ^~~~~~~~~~~
/usr/include/python3.12/object.h:175:60: note: expected 'Py_ssize_t' {aka
'long
int'} but argument is of type 'PyLongObject *' {aka 'struct _longobject
*'}
175 | static inline void Py_SET_SIZE(PyVarObject *ob, Py_ssize_t size) {
| ~~~~~~~~~~~^~~~
python/enum.c:153:14: error: 'PyLongObject' {aka 'struct _longobject'} has
no
member named 'ob_digit'
153 | self->val.ob_digit[0] = longval->ob_digit[0];
| ^
python/enum.c:153:36: error: 'PyLongObject' {aka 'struct _longobject'} has
no
member named 'ob_digit'
153 | self->val.ob_digit[0] = longval->ob_digit[0];
| ^~
GH-101291: Refactor the PyLongObject struct #101292
https://github.com/python/cpython/pull/101292
https://docs.python.org/3.12/whatsnew/3.12.html
For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.12/fedora...
For all our attempts to build zbar with Python 3.12, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.12/package/zbar/
Testing and mass rebuild of packages is happening in copr. You can follow these
instructions to test locally in mock if your package builds with Python 3.12:
https://copr.fedorainfracloud.org/coprs/g/python/python3.12/
Let us know here if you have any questions.
Python 3.12 is planned to be included in Fedora 39. To make that update
smoother, we're building Fedora packages with all pre-releases of Python 3.12.
A build failure prevents us from testing all dependent packages (transitive
[Build]Requires), so if this package is required a lot, it's important for us
to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you
don't want to work on this now, let us know so we can try to work around it on
our side.
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=2135404
[Bug 2135404] Python 3.12
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2176164