Temporary header file '/tmp/pbRabhXxVL/dump1.h' with the following content will be compiled to create GCC translation unit dump: // add defines #define __STDC_VERSION__ 201710L #define _GXX_NULLPTR_T #define CLUTTER_ENABLE_COMPOSITOR_API 1 #define _REGEX_NELTS(n) #define _Atomic #define PACKED #define getaddrinfo_a(a,b,c,d) // add includes #include "/usr/include/shiboken2/autodecref.h" #include "/usr/include/shiboken2/basewrapper.h" #include "/usr/include/shiboken2/bindingmanager.h" #include "/usr/include/shiboken2/bufferprocs_py37.h" #include "/usr/include/shiboken2/gilstate.h" #include "/usr/include/shiboken2/helper.h" #include "/usr/include/shiboken2/pep384impl.h" #include "/usr/include/shiboken2/python25compat.h" #include "/usr/include/shiboken2/sbkarrayconverter.h" #include "/usr/include/shiboken2/sbkconverter.h" #include "/usr/include/shiboken2/sbkdbg.h" #include "/usr/include/shiboken2/sbkenum.h" #include "/usr/include/shiboken2/sbkmodule.h" #include "/usr/include/shiboken2/sbkpython.h" #include "/usr/include/shiboken2/sbkstaticstrings.h" #include "/usr/include/shiboken2/sbkstring.h" #include "/usr/include/shiboken2/sbkversion.h" #include "/usr/include/shiboken2/shiboken.h" #include "/usr/include/shiboken2/shibokenbuffer.h" #include "/usr/include/shiboken2/shibokenmacros.h" #include "/usr/include/shiboken2/signature.h" #include "/usr/include/shiboken2/signature_p.h" #include "/usr/include/shiboken2/threadstatesaver.h" #include "/usr/include/shiboken2/typespec.h" #include "/usr/include/shiboken2/voidptr.h" // add namespaces namespace Shiboken{typedef int tmp_add_type_1;} Shiboken::tmp_add_type_1 tmp_add_func_1(){return 0;}; namespace Shiboken{namespace Buffer{typedef int tmp_add_type_2;}} Shiboken::Buffer::tmp_add_type_2 tmp_add_func_2(){return 0;}; namespace Shiboken{namespace Conversions{typedef int tmp_add_type_3;}} Shiboken::Conversions::tmp_add_type_3 tmp_add_func_3(){return 0;}; namespace Shiboken{namespace Enum{typedef int tmp_add_type_4;}} Shiboken::Enum::tmp_add_type_4 tmp_add_func_4(){return 0;}; namespace Shiboken{namespace Module{typedef int tmp_add_type_5;}} Shiboken::Module::tmp_add_type_5 tmp_add_func_5(){return 0;}; namespace Shiboken{namespace Object{typedef int tmp_add_type_6;}} Shiboken::Object::tmp_add_type_6 tmp_add_func_6(){return 0;}; namespace Shiboken{namespace ObjectType{typedef int tmp_add_type_7;}} Shiboken::ObjectType::tmp_add_type_7 tmp_add_func_7(){return 0;}; namespace Shiboken{namespace PyMagicName{typedef int tmp_add_type_8;}} Shiboken::PyMagicName::tmp_add_type_8 tmp_add_func_8(){return 0;}; namespace Shiboken{namespace PyName{typedef int tmp_add_type_9;}} Shiboken::PyName::tmp_add_type_9 tmp_add_func_9(){return 0;}; namespace Shiboken{namespace String{typedef int tmp_add_type_10;}} Shiboken::String::tmp_add_type_10 tmp_add_func_10(){return 0;}; namespace VoidPtr{typedef int tmp_add_type_11;} VoidPtr::tmp_add_type_11 tmp_add_func_11(){return 0;}; // add classes BaseLogger* tmp_add_class_0; PyCodeObject* tmp_add_class_1; PyConfig* tmp_add_class_2; PyGetSetDef* tmp_add_class_3; PyMemberDef* tmp_add_class_4; PyMethodDef* tmp_add_class_5; PyModuleDef* tmp_add_class_6; PyModuleDef_Base* tmp_add_class_7; PyModuleDef_Slot* tmp_add_class_8; PyPreConfig* tmp_add_class_9; PyStructSequence_Desc* tmp_add_class_10; PyStructSequence_Field* tmp_add_class_11; SbkObject* tmp_add_class_12; SbkObjectType* tmp_add_class_13; _G_fpos64_t* tmp_add_class_14; _G_fpos_t* tmp_add_class_15; _IO_cookie_io_functions_t* tmp_add_class_16; _PyArg_Parser* tmp_add_class_17; _PyCFrame* tmp_add_class_18; _PyWeakReference* tmp_add_class_19; _Py_Identifier* tmp_add_class_20; _Py_tss_t* tmp_add_class_21; _SbkDbg* tmp_add_class_22; _SbkGenericTypePrivate* tmp_add_class_23; _err_stackitem* tmp_add_class_24; _frozen* tmp_add_class_25; _heaptypeobject* tmp_add_class_26; _inittab* tmp_add_class_27; _line_offsets* tmp_add_class_28; _longobject* tmp_add_class_29; _object* tmp_add_class_30; _opaque* tmp_add_class_31; _specialization_cache* tmp_add_class_32; _stack_chunk* tmp_add_class_33; _traceback* tmp_add_class_34; _ts* tmp_add_class_35; _typeobject* tmp_add_class_36; _xid* tmp_add_class_37; bufferinfo* tmp_add_class_38; itimerval* tmp_add_class_39; safe_globals_struc* tmp_add_class_40; statx_timestamp* tmp_add_class_41; wrapperbase* tmp_add_class_42; The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/pbRabhXxVL/dump1.h" -I/usr/include/shiboken2 -I/usr/include/python3.11 In file included from /usr/include/shiboken2/sbkpython.h:104, from /usr/include/shiboken2/autodecref.h:43, from /tmp/pbRabhXxVL/dump1.h:12: /usr/include/shiboken2/pep384impl.h:363:45: error: conflicting declaration ‘typedef struct bufferinfo Py_buffer’ 363 | #define Pep_buffer Py_buffer | ^~~~~~~~~ /usr/include/shiboken2/bufferprocs_py37.h:104:3: note: in expansion of macro ‘Pep_buffer’ 104 | } Pep_buffer; | ^~~~~~~~~~ In file included from /usr/include/python3.11/Python.h:43, from /usr/include/shiboken2/sbkpython.h:93: /usr/include/python3.11/pybuffer.h:33:3: note: previous declaration as ‘typedef struct Py_buffer Py_buffer’ 33 | } Py_buffer; | ^~~~~~~~~