Hi all,
Has anyone had any luck building the sources with Python 3 ?
I tried building the Dec2016 branch from git, passing
--with-python3=/usr/bin/python3 --with-pyversion=/usr/bin/python3 --with-pyconfig=/usr/bin/python3-config
to configure, but received many errors during make under the pyapi directory, such as.
/usr/include/python3.5m/object.h:86:5: error: missing braces around initializer [-Werror=missing-braces]
{ _PyObject_EXTRA_INIT \
^
connection.c:159:5: note: in expansion of macro ‘PyObject_HEAD_INIT’
PyObject_HEAD_INIT(NULL)
^
/usr/include/python3.5m/object.h:86:5: note: (near initialization for ‘Py_ConnectionType.ob_base’)
{ _PyObject_EXTRA_INIT \
^
connection.c:159:5: note: in expansion of macro ‘PyObject_HEAD_INIT’
PyObject_HEAD_INIT(NULL)
^
connection.c:159:5: error: missing initializer for field ‘ob_size’ of ‘PyVarObject {aka struct <anonymous>}’ [-Werror=missing-field-initializers]
.................
connection.c:246:5: error: ‘return’ with a value, in function returning void [-Werror]
import_array();
^
It looks like some of the macro definitions to make python3 header files work with the pyapi source might be missing. I tried fixing some of the sources like unicode.c, formatinput.c etc. But it looks like majority of the source files have issues.
Thanks,
Joseph