При компиляции gobject-introspection-1.44.0 получаем список ошибок

Для сборки 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

Любая помощь

0

Решение

GObject Introspection не поддерживает Python 3 еще. DL_EXPORT определен в Python.h для Python 2, но не для Python 3, поэтому компилятор не знает, что с ним делать.

Я столкнулся с этой же проблемой, пытаясь скомпилировать GTK + 3 в дистрибутиве Anaconda 3.4. Как ни странно, этот предполагает, что это будет работать.

2

Другие решения

Я решил это, изменив версию Python, как сказано https://stackoverflow.com/users/771066/ebassi.

Просто используйте старую версию Python 2.7. * Any.

0

Похоже, ваш компилятор (CC) не поддерживает макрос DL_EXPORT. Скорее всего, вы должны использовать gcc для компиляции цепочки инструментов gtk +. Это избавит вас от многих проблем, по крайней мере, до тех пор, пока вы не будете хорошо знакомы со всеми зависимостями и процессами сборки.

-1
По вопросам рекламы [email protected]