[ https://issues.apache.org/jira/browse/PYLUCENE-66?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17626895#comment-17626895 ]
Andi Vajda edited comment on PYLUCENE-66 at 11/1/22 1:12 AM: ------------------------------------------------------------- I switched that line to use Py_SET_TYPE() and that should fix this bug. I have not yet upgrade to Python 3.11 yet, could you please try this fix and see if there are other issues with Python 3.11 ? Thanks ! (The fix is in rev 1904960) was (Author: vajda): I switched that line to use Py_SET_TYPE() and that should fix this bug. I have not yet upgrade to Python 3.11 yet, could you please try this fix and see if there are other issues with Python 3.11 ? Thanks ! (The fix is in rev 1904960) > JCC doesn't build with Python 3.11. > ----------------------------------- > > Key: PYLUCENE-66 > URL: https://issues.apache.org/jira/browse/PYLUCENE-66 > Project: PyLucene > Issue Type: Bug > Environment: Python 3.11, PyLucene 9.4.1-rc > Reporter: A. Coady > Priority: Major > > {{#10 10.86 In file included from /usr/local/include/python3.11/Python.h:44,}} > {{#10 10.86 from _jcc3/java/lang/Object.h:18,}} > {{#10 10.86 from jcc3/sources/functions.cpp:23:}} > {{#10 10.86 jcc3/sources/functions.cpp: In function ‘void > installType(PyTypeObject*{*}, PyType_Def{*}, PyObject*, char*, int)’:}} > {{#10 10.86 /usr/local/include/python3.11/object.h:136:30: error: lvalue > required as left operand of assignment}} > {{#10 10.86 136 | # define Py_TYPE(ob) Py_TYPE(_PyObject_CAST(ob))}} > {{#10 10.86 | ~~~~~{~}{{~}}^{{~}}{~}~~~~~~~~~~~~~~~~~}} > {{#10 10.86 jcc3/sources/functions.cpp:1742:13: note: in expansion of macro > ‘Py_TYPE’}} > {{#10 10.86 1742 | Py_TYPE(*type) = PY_TYPE(FinalizerClass);}} > {{#10 10.86 | ^~~~~~~}} > {{#10 10.89 error: command '/usr/bin/gcc' failed with exit code 1}} -- This message was sent by Atlassian Jira (v8.20.10#820010)