编译 gobject-introspection-1.44.0 时获取错误列表
While Compiling gobject-introspection-1.44.0 getting list of errors
构建 GTK gobject-introspection-1.44.0 是必需的,它的配置没有错误,但是在 make
我得到了一个错误列表。
CC _giscanner_la-giscannermodule.lo
giscanner/giscannermodule.c:42:1: warning: return type defaults to 'int' [-Wreturn-type]
giscanner/giscannermodule.c:42:1: warning: no previous prototype for 'DL_EXPORT' [-Wmissing-prototypes]
giscanner/giscannermodule.c: In function 'DL_EXPORT':
giscanner/giscannermodule.c:42:17: error: expected declaration specifiers before 'init_giscanner'
giscanner/giscannermodule.c:74:3: error: storage class specified for parameter 'PyGISourceType'
giscanner/giscannermodule.c:76:19: error: storage class specified for parameter 'pygi_source_type_new'
giscanner/giscannermodule.c:81:3: error: storage class specified for parameter 'PyGISourceSymbol'
giscanner/giscannermodule.c:86:3: error: storage class specified for parameter 'PyGISourceScanner'
giscanner/giscannermodule.c:88:1: error: storage class specified for parameter '_PyGISourceSymbol_methods'
giscanner/giscannermodule.c:88:1: error: parameter 'PyGISourceSymbol_Type' is initialized
giscanner/giscannermodule.c:88:1: warning: missing braces around initializer [-Wmissing-braces]
giscanner/giscannermodule.c:88:1: warning: (near initialization for 'PyGISourceSymbol_Type.ob_base.ob_base') [-Wmissing-braces]
giscanner/giscannermodule.c:88:1: warning: initialization makes integer from pointer without a cast [enabled by default]
giscanner/giscannermodule.c:88:1: warning: (near initialization for 'PyGISourceSymbol_Type.tp_basicsize') [enabled by default]
giscanner/giscannermodule.c:88:1: warning: initialization makes pointer from integer without a cast [enabled by default]
giscanner/giscannermodule.c:88:1: warning: (near initialization for 'PyGISourceSymbol_Type.tp_doc') [enabled by default]
giscanner/giscannermodule.c:89:1: error: storage class specified for parameter '_PyGISourceType_methods'
giscanner/giscannermodule.c:89:1: error: parameter 'PyGISourceType_Type' is initialized
giscanner/giscannermodule.c:89:1: warning: missing braces around initializer [-Wmissing-braces]
giscanner/giscannermodule.c:89:1: warning: (near initialization for 'PyGISourceType_Type.ob_base.ob_base') [-Wmissing-braces]
giscanner/giscannermodule.c:89:1: warning: initialization makes integer from pointer without a cast [enabled by default]
giscanner/giscannermodule.c:89:1: warning: (near initialization for 'PyGISourceType_Type.tp_basicsize') [enabled by default]
giscanner/giscannermodule.c:89:1: warning: initialization makes pointer from integer without a cast [enabled by default]
giscanner/giscannermodule.c:89:1: warning: (near initialization for 'PyGISourceType_Type.tp_doc') [enabled by default]
giscanner/giscannermodule.c:90:1: error: storage class specified for parameter '_PyGISourceScanner_methods'
giscanner/giscannermodule.c:90:1: error: parameter 'PyGISourceScanner_Type' is initialized
giscanner/giscannermodule.c:90:1: warning: missing braces around initializer [-Wmissing-braces]
giscanner/giscannermodule.c:90:1: warning: (near initialization for 'PyGISourceScanner_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 'PyGISourceScanner_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 'PyGISourceScanner_Type.tp_doc') [enabled by default]
giscanner/giscannermodule.c:97:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
giscanner/giscannermodule.c:113:18: error: expected declaration specifiers or '...' before 'PyGISourceSymbol'
giscanner/giscannermodule.c:120:18: error: expected declaration specifiers or '...' before 'PyGISourceSymbol'
giscanner/giscannermodule.c:127:21: error: expected declaration specifiers or '...' before 'PyGISourceSymbol'
giscanner/giscannermodule.c:134:19: error: expected declaration specifiers or '...' before 'PyGISourceSymbol'
giscanner/giscannermodule.c:148:23: error: expected declaration specifiers or '...' before 'PyGISourceSymbol'
giscanner/giscannermodule.c:155:23: error: expected declaration specifiers or '...' before 'PyGISourceSymbol'
giscanner/giscannermodule.c:171:26: error: expected declaration specifiers or '...' before 'PyGISourceSymbol'
giscanner/giscannermodule.c:183:26: error: expected declaration specifiers or '...' before 'PyGISourceSymbol'
giscanner/giscannermodule.c:196:27: error: expected declaration specifiers or '...' before 'PyGISourceSymbol'
giscanner/giscannermodule.c:209:29: error: expected declaration specifiers or '...' before 'PyGISourceSymbol'
giscanner/giscannermodule.c:221:26: error: storage class specified for parameter '_PyGISourceSymbol_getsets'
giscanner/giscannermodule.c:221:1: error: parameter '_PyGISourceSymbol_getsets' is initialized
giscanner/giscannermodule.c:223:3: warning: braces around scalar initializer [enabled by default]
giscanner/giscannermodule.c:223:3: warning: (near initialization for '_PyGISourceSymbol_getsets') [enabled by default]
giscanner/giscannermodule.c:223:3: warning: initialization from incompatible pointer type [enabled by default]
giscanner/giscannermodule.c:223:3: warning: (near initialization for '_PyGISourceSymbol_getsets') [enabled by default]
giscanner/giscannermodule.c:223:21: error: 'symbol_get_type' undeclared (first use in this function)
giscanner/giscannermodule.c:223:21: note: each undeclared identifier is reported only once for each function it appears in
giscanner/giscannermodule.c:223:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:223:3: warning: (near initialization for '_PyGISourceSymbol_getsets') [enabled by default]
giscanner/giscannermodule.c:223:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:223:3: warning: (near initialization for '_PyGISourceSymbol_getsets') [enabled by default]
giscanner/giscannermodule.c:223:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:223:3: warning: (near initialization for '_PyGISourceSymbol_getsets') [enabled by default]
giscanner/giscannermodule.c:225:3: warning: braces around scalar initializer [enabled by default]
giscanner/giscannermodule.c:225:3: warning: (near initialization for '_PyGISourceSymbol_getsets') [enabled by default]
giscanner/giscannermodule.c:225:3: warning: initialization from incompatible pointer type [enabled by default]
giscanner/giscannermodule.c:225:3: warning: (near initialization for '_PyGISourceSymbol_getsets') [enabled by default]
giscanner/giscannermodule.c:225:22: error: 'symbol_get_ident' undeclared (first use in this function)
giscanner/giscannermodule.c:225:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:225:3: warning: (near initialization for '_PyGISourceSymbol_getsets') [enabled by default]
giscanner/giscannermodule.c:225:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:225:3: warning: (near initialization for '_PyGISourceSymbol_getsets') [enabled by default]
giscanner/giscannermodule.c:225:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:225:3: warning: (near initialization for '_PyGISourceSymbol_getsets') [enabled by default]
giscanner/giscannermodule.c:225:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:225:3: warning: (near initialization for '_PyGISourceSymbol_getsets') [enabled by default]
giscanner/giscannermodule.c:342:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:342:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:342:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:342:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:342:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:343:3: warning: braces around scalar initializer [enabled by default]
giscanner/giscannermodule.c:343:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:343:3: warning: initialization from incompatible pointer type [enabled by default]
giscanner/giscannermodule.c:343:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:343:35: error: 'type_get_function_specifier' undeclared (first use in this function)
giscanner/giscannermodule.c:343:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:343:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:343:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:343:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:343:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:343:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:343:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:343:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:344:3: warning: braces around scalar initializer [enabled by default]
giscanner/giscannermodule.c:344:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:344:3: warning: initialization from incompatible pointer type [enabled by default]
giscanner/giscannermodule.c:344:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:344:21: error: 'type_get_name' undeclared (first use in this function)
giscanner/giscannermodule.c:344:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:344:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:344:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:344:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:344:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:344:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:344:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:344:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:345:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:345:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:346:3: warning: braces around scalar initializer [enabled by default]
giscanner/giscannermodule.c:346:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:346:3: warning: initialization from incompatible pointer type [enabled by default]
giscanner/giscannermodule.c:346:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:346:27: error: 'type_get_child_list' undeclared (first use in this function)
giscanner/giscannermodule.c:346:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:346:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:346:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:346:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:346:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:346:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:346:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:346:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:347:3: warning: braces around scalar initializer [enabled by default]
giscanner/giscannermodule.c:347:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:347:3: warning: initialization from incompatible pointer type [enabled by default]
giscanner/giscannermodule.c:347:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:347:28: error: 'type_get_is_bitfield' undeclared (first use in this function)
giscanner/giscannermodule.c:347:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:347:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:347:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:347:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:347:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:347:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:347:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:347:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:348:3: warning: braces around scalar initializer [enabled by default]
giscanner/giscannermodule.c:348:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:348:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:348:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:356:27: error: expected declaration specifiers or '...' before 'PyGISourceScanner'
giscanner/giscannermodule.c:369:38: error: expected declaration specifiers or '...' before 'PyGISourceScanner'
giscanner/giscannermodule.c:386:35: error: expected declaration specifiers or '...' before 'PyGISourceScanner'
giscanner/giscannermodule.c:421:33: error: expected declaration specifiers or '...' before 'PyGISourceScanner'
giscanner/giscannermodule.c:525:35: error: expected declaration specifiers or '...' before 'PyGISourceScanner'
giscanner/giscannermodule.c:548:37: error: expected declaration specifiers or '...' before 'PyGISourceScanner'
giscanner/giscannermodule.c:612:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:612:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:613:3: warning: braces around scalar initializer [enabled by default]
giscanner/giscannermodule.c:613:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:613:3: warning: initialization from incompatible pointer type [enabled by default]
giscanner/giscannermodule.c:613:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:613:35: error: 'pygi_source_scanner_lex_filename' undeclared (first use in this function)
giscanner/giscannermodule.c:613:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:613:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:613:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:613:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:613:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:613:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:614:3: warning: braces around scalar initializer [enabled by default]
giscanner/giscannermodule.c:614:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:614:3: warning: initialization from incompatible pointer type [enabled by default]
giscanner/giscannermodule.c:614:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:614:37: error: 'pygi_source_scanner_set_macro_scan' undeclared (first use in this function)
giscanner/giscannermodule.c:614:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:614:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:614:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:614:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:614:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:614:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:615:3: warning: braces around scalar initializer [enabled by default]
giscanner/giscannermodule.c:615:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:615:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:615:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:615:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:615:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:615:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:615:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:621:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
giscanner/giscannermodule.c:671:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
giscanner/giscannermodule.c:770:26: error: storage class specified for parameter 'pyscanner_functions'
giscanner/giscannermodule.c:770:1: error: parameter 'pyscanner_functions' is initialized
giscanner/giscannermodule.c:771:3: warning: braces around scalar initializer [enabled by default]
giscanner/giscannermodule.c:771:3: warning: (near initialization for 'pyscanner_functions') [enabled by default]
giscanner/giscannermodule.c:771:3: warning: initialization from incompatible pointer type [enabled by default]
giscanner/giscannermodule.c:771:3: warning: (near initialization for 'pyscanner_functions') [enabled by default]
giscanner/giscannermodule.c:772:19: error: 'pygi_collect_attributes' undeclared (first use in this function)
giscanner/giscannermodule.c:772:5: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:772:5: warning: (near initialization for 'pyscanner_functions') [enabled by default]
giscanner/giscannermodule.c:772:5: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:772:5: warning: (near initialization for 'pyscanner_functions') [enabled by default]
giscanner/giscannermodule.c:773:3: warning: braces around scalar initializer [enabled by default]
giscanner/giscannermodule.c:773:3: warning: (near initialization for 'pyscanner_functions') [enabled by default]
giscanner/giscannermodule.c:773:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:773:3: warning: (near initialization for 'pyscanner_functions') [enabled by default]
giscanner/giscannermodule.c:773:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:773:3: warning: (near initialization for 'pyscanner_functions') [enabled by default]
giscanner/giscannermodule.c:773:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:773:3: warning: (near initialization for 'pyscanner_functions') [enabled by default]
giscanner/giscannermodule.c:773:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:773:3: warning: (near initialization for 'pyscanner_functions') [enabled by default]
giscanner/giscannermodule.c:776:1: error: expected declaration specifiers before 'DL_EXPORT'
giscanner/giscannermodule.c:42:1: error: old-style parameter declarations in prototyped function definition
giscanner/giscannermodule.c:799:1: error: expected '{' at end of input
giscanner/giscannermodule.c:799:1: warning: control reaches end of non-void function [-Wreturn-type]
make[2]: *** [_giscanner_la-giscannermodule.lo] Error 1
make[2]: Leaving directory `/home/vishal/AVM/GTK+/dependencies/gobject-introspection-1.44.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/vishal/AVM/GTK+/dependencies/gobject-introspection-1.44.0'
make: *** [all] Error 2
任何帮助
您的编译器 (CC) 似乎不支持 DL_EXPORT 宏。您最有可能使用 gcc 来编译 gtk+ 工具链。这将为您省去很多麻烦,至少在您非常熟悉所有构建依赖项和过程之前是这样。
我按照 https://whosebug.com/users/771066/ebassi 的说法通过更改 Python 版本解决了这个问题。
只需使用旧版本 Python 2.7.* any.
GObject 自省 doesn't support Python 3 尚未完成。 DL_EXPORT 在 Python.h 中为 Python 2 定义,但没有为 Python 3 定义,因此编译器不知道如何处理它。
我 运行 遇到了同样的问题,试图在 Anaconda 3.4 发行版中编译 GTK+3。 St运行gely, this 表明它会起作用。
构建 GTK gobject-introspection-1.44.0 是必需的,它的配置没有错误,但是在 make
我得到了一个错误列表。
CC _giscanner_la-giscannermodule.lo
giscanner/giscannermodule.c:42:1: warning: return type defaults to 'int' [-Wreturn-type]
giscanner/giscannermodule.c:42:1: warning: no previous prototype for 'DL_EXPORT' [-Wmissing-prototypes]
giscanner/giscannermodule.c: In function 'DL_EXPORT':
giscanner/giscannermodule.c:42:17: error: expected declaration specifiers before 'init_giscanner'
giscanner/giscannermodule.c:74:3: error: storage class specified for parameter 'PyGISourceType'
giscanner/giscannermodule.c:76:19: error: storage class specified for parameter 'pygi_source_type_new'
giscanner/giscannermodule.c:81:3: error: storage class specified for parameter 'PyGISourceSymbol'
giscanner/giscannermodule.c:86:3: error: storage class specified for parameter 'PyGISourceScanner'
giscanner/giscannermodule.c:88:1: error: storage class specified for parameter '_PyGISourceSymbol_methods'
giscanner/giscannermodule.c:88:1: error: parameter 'PyGISourceSymbol_Type' is initialized
giscanner/giscannermodule.c:88:1: warning: missing braces around initializer [-Wmissing-braces]
giscanner/giscannermodule.c:88:1: warning: (near initialization for 'PyGISourceSymbol_Type.ob_base.ob_base') [-Wmissing-braces]
giscanner/giscannermodule.c:88:1: warning: initialization makes integer from pointer without a cast [enabled by default]
giscanner/giscannermodule.c:88:1: warning: (near initialization for 'PyGISourceSymbol_Type.tp_basicsize') [enabled by default]
giscanner/giscannermodule.c:88:1: warning: initialization makes pointer from integer without a cast [enabled by default]
giscanner/giscannermodule.c:88:1: warning: (near initialization for 'PyGISourceSymbol_Type.tp_doc') [enabled by default]
giscanner/giscannermodule.c:89:1: error: storage class specified for parameter '_PyGISourceType_methods'
giscanner/giscannermodule.c:89:1: error: parameter 'PyGISourceType_Type' is initialized
giscanner/giscannermodule.c:89:1: warning: missing braces around initializer [-Wmissing-braces]
giscanner/giscannermodule.c:89:1: warning: (near initialization for 'PyGISourceType_Type.ob_base.ob_base') [-Wmissing-braces]
giscanner/giscannermodule.c:89:1: warning: initialization makes integer from pointer without a cast [enabled by default]
giscanner/giscannermodule.c:89:1: warning: (near initialization for 'PyGISourceType_Type.tp_basicsize') [enabled by default]
giscanner/giscannermodule.c:89:1: warning: initialization makes pointer from integer without a cast [enabled by default]
giscanner/giscannermodule.c:89:1: warning: (near initialization for 'PyGISourceType_Type.tp_doc') [enabled by default]
giscanner/giscannermodule.c:90:1: error: storage class specified for parameter '_PyGISourceScanner_methods'
giscanner/giscannermodule.c:90:1: error: parameter 'PyGISourceScanner_Type' is initialized
giscanner/giscannermodule.c:90:1: warning: missing braces around initializer [-Wmissing-braces]
giscanner/giscannermodule.c:90:1: warning: (near initialization for 'PyGISourceScanner_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 'PyGISourceScanner_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 'PyGISourceScanner_Type.tp_doc') [enabled by default]
giscanner/giscannermodule.c:97:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
giscanner/giscannermodule.c:113:18: error: expected declaration specifiers or '...' before 'PyGISourceSymbol'
giscanner/giscannermodule.c:120:18: error: expected declaration specifiers or '...' before 'PyGISourceSymbol'
giscanner/giscannermodule.c:127:21: error: expected declaration specifiers or '...' before 'PyGISourceSymbol'
giscanner/giscannermodule.c:134:19: error: expected declaration specifiers or '...' before 'PyGISourceSymbol'
giscanner/giscannermodule.c:148:23: error: expected declaration specifiers or '...' before 'PyGISourceSymbol'
giscanner/giscannermodule.c:155:23: error: expected declaration specifiers or '...' before 'PyGISourceSymbol'
giscanner/giscannermodule.c:171:26: error: expected declaration specifiers or '...' before 'PyGISourceSymbol'
giscanner/giscannermodule.c:183:26: error: expected declaration specifiers or '...' before 'PyGISourceSymbol'
giscanner/giscannermodule.c:196:27: error: expected declaration specifiers or '...' before 'PyGISourceSymbol'
giscanner/giscannermodule.c:209:29: error: expected declaration specifiers or '...' before 'PyGISourceSymbol'
giscanner/giscannermodule.c:221:26: error: storage class specified for parameter '_PyGISourceSymbol_getsets'
giscanner/giscannermodule.c:221:1: error: parameter '_PyGISourceSymbol_getsets' is initialized
giscanner/giscannermodule.c:223:3: warning: braces around scalar initializer [enabled by default]
giscanner/giscannermodule.c:223:3: warning: (near initialization for '_PyGISourceSymbol_getsets') [enabled by default]
giscanner/giscannermodule.c:223:3: warning: initialization from incompatible pointer type [enabled by default]
giscanner/giscannermodule.c:223:3: warning: (near initialization for '_PyGISourceSymbol_getsets') [enabled by default]
giscanner/giscannermodule.c:223:21: error: 'symbol_get_type' undeclared (first use in this function)
giscanner/giscannermodule.c:223:21: note: each undeclared identifier is reported only once for each function it appears in
giscanner/giscannermodule.c:223:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:223:3: warning: (near initialization for '_PyGISourceSymbol_getsets') [enabled by default]
giscanner/giscannermodule.c:223:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:223:3: warning: (near initialization for '_PyGISourceSymbol_getsets') [enabled by default]
giscanner/giscannermodule.c:223:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:223:3: warning: (near initialization for '_PyGISourceSymbol_getsets') [enabled by default]
giscanner/giscannermodule.c:225:3: warning: braces around scalar initializer [enabled by default]
giscanner/giscannermodule.c:225:3: warning: (near initialization for '_PyGISourceSymbol_getsets') [enabled by default]
giscanner/giscannermodule.c:225:3: warning: initialization from incompatible pointer type [enabled by default]
giscanner/giscannermodule.c:225:3: warning: (near initialization for '_PyGISourceSymbol_getsets') [enabled by default]
giscanner/giscannermodule.c:225:22: error: 'symbol_get_ident' undeclared (first use in this function)
giscanner/giscannermodule.c:225:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:225:3: warning: (near initialization for '_PyGISourceSymbol_getsets') [enabled by default]
giscanner/giscannermodule.c:225:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:225:3: warning: (near initialization for '_PyGISourceSymbol_getsets') [enabled by default]
giscanner/giscannermodule.c:225:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:225:3: warning: (near initialization for '_PyGISourceSymbol_getsets') [enabled by default]
giscanner/giscannermodule.c:225:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:225:3: warning: (near initialization for '_PyGISourceSymbol_getsets') [enabled by default]
giscanner/giscannermodule.c:342:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:342:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:342:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:342:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:342:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:343:3: warning: braces around scalar initializer [enabled by default]
giscanner/giscannermodule.c:343:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:343:3: warning: initialization from incompatible pointer type [enabled by default]
giscanner/giscannermodule.c:343:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:343:35: error: 'type_get_function_specifier' undeclared (first use in this function)
giscanner/giscannermodule.c:343:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:343:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:343:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:343:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:343:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:343:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:343:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:343:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:344:3: warning: braces around scalar initializer [enabled by default]
giscanner/giscannermodule.c:344:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:344:3: warning: initialization from incompatible pointer type [enabled by default]
giscanner/giscannermodule.c:344:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:344:21: error: 'type_get_name' undeclared (first use in this function)
giscanner/giscannermodule.c:344:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:344:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:344:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:344:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:344:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:344:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:344:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:344:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:345:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:345:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:346:3: warning: braces around scalar initializer [enabled by default]
giscanner/giscannermodule.c:346:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:346:3: warning: initialization from incompatible pointer type [enabled by default]
giscanner/giscannermodule.c:346:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:346:27: error: 'type_get_child_list' undeclared (first use in this function)
giscanner/giscannermodule.c:346:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:346:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:346:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:346:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:346:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:346:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:346:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:346:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:347:3: warning: braces around scalar initializer [enabled by default]
giscanner/giscannermodule.c:347:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:347:3: warning: initialization from incompatible pointer type [enabled by default]
giscanner/giscannermodule.c:347:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:347:28: error: 'type_get_is_bitfield' undeclared (first use in this function)
giscanner/giscannermodule.c:347:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:347:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:347:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:347:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:347:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:347:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:347:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:347:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:348:3: warning: braces around scalar initializer [enabled by default]
giscanner/giscannermodule.c:348:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:348:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:348:3: warning: (near initialization for '_PyGISourceType_getsets') [enabled by default]
giscanner/giscannermodule.c:356:27: error: expected declaration specifiers or '...' before 'PyGISourceScanner'
giscanner/giscannermodule.c:369:38: error: expected declaration specifiers or '...' before 'PyGISourceScanner'
giscanner/giscannermodule.c:386:35: error: expected declaration specifiers or '...' before 'PyGISourceScanner'
giscanner/giscannermodule.c:421:33: error: expected declaration specifiers or '...' before 'PyGISourceScanner'
giscanner/giscannermodule.c:525:35: error: expected declaration specifiers or '...' before 'PyGISourceScanner'
giscanner/giscannermodule.c:548:37: error: expected declaration specifiers or '...' before 'PyGISourceScanner'
giscanner/giscannermodule.c:612:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:612:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:613:3: warning: braces around scalar initializer [enabled by default]
giscanner/giscannermodule.c:613:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:613:3: warning: initialization from incompatible pointer type [enabled by default]
giscanner/giscannermodule.c:613:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:613:35: error: 'pygi_source_scanner_lex_filename' undeclared (first use in this function)
giscanner/giscannermodule.c:613:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:613:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:613:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:613:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:613:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:613:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:614:3: warning: braces around scalar initializer [enabled by default]
giscanner/giscannermodule.c:614:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:614:3: warning: initialization from incompatible pointer type [enabled by default]
giscanner/giscannermodule.c:614:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:614:37: error: 'pygi_source_scanner_set_macro_scan' undeclared (first use in this function)
giscanner/giscannermodule.c:614:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:614:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:614:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:614:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:614:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:614:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:615:3: warning: braces around scalar initializer [enabled by default]
giscanner/giscannermodule.c:615:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:615:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:615:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:615:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:615:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:615:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:615:3: warning: (near initialization for '_PyGISourceScanner_methods') [enabled by default]
giscanner/giscannermodule.c:621:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
giscanner/giscannermodule.c:671:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
giscanner/giscannermodule.c:770:26: error: storage class specified for parameter 'pyscanner_functions'
giscanner/giscannermodule.c:770:1: error: parameter 'pyscanner_functions' is initialized
giscanner/giscannermodule.c:771:3: warning: braces around scalar initializer [enabled by default]
giscanner/giscannermodule.c:771:3: warning: (near initialization for 'pyscanner_functions') [enabled by default]
giscanner/giscannermodule.c:771:3: warning: initialization from incompatible pointer type [enabled by default]
giscanner/giscannermodule.c:771:3: warning: (near initialization for 'pyscanner_functions') [enabled by default]
giscanner/giscannermodule.c:772:19: error: 'pygi_collect_attributes' undeclared (first use in this function)
giscanner/giscannermodule.c:772:5: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:772:5: warning: (near initialization for 'pyscanner_functions') [enabled by default]
giscanner/giscannermodule.c:772:5: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:772:5: warning: (near initialization for 'pyscanner_functions') [enabled by default]
giscanner/giscannermodule.c:773:3: warning: braces around scalar initializer [enabled by default]
giscanner/giscannermodule.c:773:3: warning: (near initialization for 'pyscanner_functions') [enabled by default]
giscanner/giscannermodule.c:773:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:773:3: warning: (near initialization for 'pyscanner_functions') [enabled by default]
giscanner/giscannermodule.c:773:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:773:3: warning: (near initialization for 'pyscanner_functions') [enabled by default]
giscanner/giscannermodule.c:773:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:773:3: warning: (near initialization for 'pyscanner_functions') [enabled by default]
giscanner/giscannermodule.c:773:3: warning: excess elements in scalar initializer [enabled by default]
giscanner/giscannermodule.c:773:3: warning: (near initialization for 'pyscanner_functions') [enabled by default]
giscanner/giscannermodule.c:776:1: error: expected declaration specifiers before 'DL_EXPORT'
giscanner/giscannermodule.c:42:1: error: old-style parameter declarations in prototyped function definition
giscanner/giscannermodule.c:799:1: error: expected '{' at end of input
giscanner/giscannermodule.c:799:1: warning: control reaches end of non-void function [-Wreturn-type]
make[2]: *** [_giscanner_la-giscannermodule.lo] Error 1
make[2]: Leaving directory `/home/vishal/AVM/GTK+/dependencies/gobject-introspection-1.44.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/vishal/AVM/GTK+/dependencies/gobject-introspection-1.44.0'
make: *** [all] Error 2
任何帮助
您的编译器 (CC) 似乎不支持 DL_EXPORT 宏。您最有可能使用 gcc 来编译 gtk+ 工具链。这将为您省去很多麻烦,至少在您非常熟悉所有构建依赖项和过程之前是这样。
我按照 https://whosebug.com/users/771066/ebassi 的说法通过更改 Python 版本解决了这个问题。
只需使用旧版本 Python 2.7.* any.
GObject 自省 doesn't support Python 3 尚未完成。 DL_EXPORT 在 Python.h 中为 Python 2 定义,但没有为 Python 3 定义,因此编译器不知道如何处理它。
我 运行 遇到了同样的问题,试图在 Anaconda 3.4 发行版中编译 GTK+3。 St运行gely, this 表明它会起作用。