Skip to content

dnet 1.16.1 with python 3.11 error: incomplete definition of type 'struct _frame' #74

@AngryPenguinPL

Description

@AngryPenguinPL

Hi. When I try compile libdnet 1.16.1 I see this error:

/dnet.c:25190:5: error: incomplete definition of type 'struct _frame'
DEBUG util.py:444:      __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
DEBUG util.py:444:      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DEBUG util.py:444:  ./dnet.c:456:62: note: expanded from macro '__Pyx_PyFrame_SetLineNumber'
DEBUG util.py:444:    #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
DEBUG util.py:444:                                                        ~~~~~~~^
DEBUG util.py:444:  /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of 'struct _frame'
DEBUG util.py:444:  typedef struct _frame PyFrameObject;
DEBUG util.py:444:                 ^
DEBUG util.py:444:  26 warnings and 1 error generated.
DEBUG util.py:444:  error: command '/usr/bin/clang' failed with exit code 1
DEBUG util.py:444:  make[1]: *** [Makefile:855: python-build] Error 1
DEBUG util.py:444:  make: *** [Makefile:492: all-recursive] Error 1

Same error is on Clang 14.0.5 and GCC 12.
Worth to add I use Python 3.11 and maybe this cause issue.

Full build log:
https://file-store.openmandriva.org/api/v1/file_stores/4e3213be81af54d7d6e94fbedb4011a0d0782b29.log?show=true

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions