acxz / pkgbuilds

PKGBUILDs for Arch Linux
25 stars 43 forks source link

[orocos-kdl-python] python3.11 PyFrameObject #237

Open acxz opened 1 year ago

acxz commented 1 year ago
/home/acxz/.cache/yay/orocos-kdl-python/src/orocos_kinematics_dynamics-1.5.1/python_orocos_kdl/pybind11/include/pybind11/pybind11.h: In function ‘pybind11::function pybind11::detail::get_type_override(const void*, const type_info*, const char*)’:
/home/acxz/.cache/yay/orocos-kdl-python/src/orocos_kinematics_dynamics-1.5.1/python_orocos_kdl/pybind11/include/pybind11/pybind11.h:2163:49: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘frame’; did you mean ‘cframe’?
 2163 |     PyFrameObject *frame = PyThreadState_Get()->frame;
      |                                                 ^~~~~
      |                                                 cframe
/home/acxz/.cache/yay/orocos-kdl-python/src/orocos_kinematics_dynamics-1.5.1/python_orocos_kdl/pybind11/include/pybind11/pybind11.h:2164:52: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
 2164 |     if (frame != nullptr && (std::string) str(frame->f_code->co_name) == name
      |                                                    ^~
/usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
   22 | typedef struct _frame PyFrameObject;
      |                ^~~~~~
/home/acxz/.cache/yay/orocos-kdl-python/src/orocos_kinematics_dynamics-1.5.1/python_orocos_kdl/pybind11/include/pybind11/pybind11.h:2165:17: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
 2165 |         && frame->f_code->co_argcount > 0) {
      |                 ^~
/usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
   22 | typedef struct _frame PyFrameObject;
      |                ^~~~~~
/home/acxz/.cache/yay/orocos-kdl-python/src/orocos_kinematics_dynamics-1.5.1/python_orocos_kdl/pybind11/include/pybind11/pybind11.h:2168:18: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
 2168 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
      |                  ^~
/usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
   22 | typedef struct _frame PyFrameObject;
      |                ^~~~~~
In file included from /usr/include/python3.11/Python.h:35:
/home/acxz/.cache/yay/orocos-kdl-python/src/orocos_kinematics_dynamics-1.5.1/python_orocos_kdl/pybind11/include/pybind11/pybind11.h:2168:30: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
 2168 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
      |                              ^~~~~~~~~~~~~~~~
/usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
   22 | typedef struct _frame PyFrameObject;
      |                ^~~~~~
In file included from /usr/include/python3.11/Python.h:38:
/home/acxz/.cache/yay/orocos-kdl-python/src/orocos_kinematics_dynamics-1.5.1/python_orocos_kdl/pybind11/include/pybind11/pybind11.h:2168:30: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
 2168 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
      |                              ^~~~~~~~~~~~~~~~
acxz commented 1 year ago

From @Hydra_cn on the aur

quick fix for the python3.11 PyFrameObject problem: change the pkgver_pybind11 to f70165463328c218d118204efc13aac93783d17b and the second sha512sum to 5ea82b4176680c6dab6b0e5bb76d65cd2e01425d8f8f6d98451eb9eacac36b056c6c40fd16f4ad5a25eda6e5e843c85855438e6e074e7b77b10e6ef58e35ed91 in PKGBUILD

acxz commented 1 year ago

patched with above solution in 2bb9958