Building gobject-introspection with CPython 3.2?




I'm attempting to build gobject-introspection against CPython 3.2.

It's working fine against CPython 2.7 now, but against 3.2 I'm getting:

  CC       _giscanner_la-giscannermodule.lo
giscanner/giscannermodule.c:90:1: warning: missing braces around initializer [-Wmissing-braces]
giscanner/giscannermodule.c:90:1: warning: (near initialization for 'PyGISourceSymbol_Type.ob_base.ob_base') [-Wmissing-braces]
giscanner/giscannermodule.c:90:1: warning: initialization makes integer from pointer without a cast [enabled by default]
giscanner/giscannermodule.c:90:1: warning: (near initialization for 'PyGISourceSymbol_Type.tp_basicsize') [enabled by default]
giscanner/giscannermodule.c:90:1: warning: initialization makes pointer from integer without a cast [enabled by default]
giscanner/giscannermodule.c:90:1: warning: (near initialization for 'PyGISourceSymbol_Type.tp_doc') [enabled by default]
giscanner/giscannermodule.c:91:1: warning: missing braces around initializer [-Wmissing-braces]
giscanner/giscannermodule.c:91:1: warning: (near initialization for 'PyGISourceType_Type.ob_base.ob_base') [-Wmissing-braces]
giscanner/giscannermodule.c:91:1: warning: initialization makes integer from pointer without a cast [enabled by default]
giscanner/giscannermodule.c:91:1: warning: (near initialization for 'PyGISourceType_Type.tp_basicsize') [enabled by default]
giscanner/giscannermodule.c:91:1: warning: initialization makes pointer from integer without a cast [enabled by default]
giscanner/giscannermodule.c:91:1: warning: (near initialization for 'PyGISourceType_Type.tp_doc') [enabled by default]
giscanner/giscannermodule.c:92:1: warning: missing braces around initializer [-Wmissing-braces]
giscanner/giscannermodule.c:92:1: warning: (near initialization for 'PyGISourceScanner_Type.ob_base.ob_base') [-Wmissing-braces]
giscanner/giscannermodule.c:92:1: warning: initialization makes integer from pointer without a cast [enabled by default]
giscanner/giscannermodule.c:92:1: warning: (near initialization for 'PyGISourceScanner_Type.tp_basicsize') [enabled by default]
giscanner/giscannermodule.c:92:1: warning: initialization makes pointer from integer without a cast [enabled by default]
giscanner/giscannermodule.c:92:1: warning: (near initialization for 'PyGISourceScanner_Type.tp_doc') [enabled by default]
giscanner/giscannermodule.c: In function 'symbol_get_type':
giscanner/giscannermodule.c:118:3: warning: implicit declaration of function 'PyInt_FromLong' [-Wimplicit-function-declaration]
giscanner/giscannermodule.c:118:3: warning: nested extern declaration of 'PyInt_FromLong' [-Wnested-externs]
giscanner/giscannermodule.c:118:3: warning: return makes pointer from integer without a cast [enabled by default]
giscanner/giscannermodule.c: In function 'symbol_get_line':
giscanner/giscannermodule.c:125:3: warning: return makes pointer from integer without a cast [enabled by default]
giscanner/giscannermodule.c: In function 'symbol_get_ident':
giscanner/giscannermodule.c:146:3: warning: implicit declaration of function 'PyString_FromString' [-Wimplicit-function-declaration]
giscanner/giscannermodule.c:146:3: warning: nested extern declaration of 'PyString_FromString' [-Wnested-externs]

...and MUCH more.

Looking at the source, it appears one of the first errors is because DL_EXPORT, which appears twice in giscanner/giscannermodule.c, no longer exists in Python 3.x.  This suggests to me that I'm trying to build the wrong software or the wrong version of the software.

How are people producing builds of gobject-introspection against CPython 3.x, in light of this?

Thanks!



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]