Hallo zusammen,
ich versuche gerade, die aktuelle Version aus dem GIT master als Rpm für openSUSE Leap 15.1 zu bauen. Das schlägt allerdings fehl mit folgendem Fehler:
C
[ 21s] In file included from /usr/include/python2.7/Python.h:8,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/interfaces/python/LanguageHook.h:17,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/interfaces/python/PythonInvoker.h:13,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/network/httprequesthandler/python/HTTPPythonWsgiInvoker.h:11,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/network/httprequesthandler/python/HTTPPythonWsgiInvoker.cpp:9:
[ 21s] /usr/include/python2.7/pyconfig.h:1196: warning: "_POSIX_C_SOURCE" redefined
[ 21s] #define _POSIX_C_SOURCE 200112L
[ 21s]
[ 21s] In file included from /usr/include/c++/8/x86_64-suse-linux/bits/os_defines.h:39,
[ 21s] from /usr/include/c++/8/x86_64-suse-linux/bits/c++config.h:2452,
[ 21s] from /usr/include/c++/8/string:38,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/XBDateTime.h:13,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/addons/addoninfo/AddonInfo.h:11,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/addons/IAddon.h:11,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/interfaces/generic/ILanguageInvoker.h:11,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/interfaces/python/PythonInvoker.h:11,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/network/httprequesthandler/python/HTTPPythonWsgiInvoker.h:11,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/network/httprequesthandler/python/HTTPPythonWsgiInvoker.cpp:9:
[ 21s] /usr/include/features.h:260: note: this is the location of the previous definition
[ 21s] # define _POSIX_C_SOURCE 200809L
[ 21s]
[ 21s] In file included from /usr/include/python2.7/Python.h:8,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/interfaces/python/LanguageHook.h:17,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/interfaces/python/PythonInvoker.h:13,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/network/httprequesthandler/python/HTTPPythonWsgiInvoker.h:11,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/network/httprequesthandler/python/HTTPPythonWsgiInvoker.cpp:9:
[ 21s] /usr/include/python2.7/pyconfig.h:1218: warning: "_XOPEN_SOURCE" redefined
[ 21s] #define _XOPEN_SOURCE 600
[ 21s]
[ 21s] In file included from /usr/include/c++/8/x86_64-suse-linux/bits/os_defines.h:39,
[ 21s] from /usr/include/c++/8/x86_64-suse-linux/bits/c++config.h:2452,
[ 21s] from /usr/include/c++/8/string:38,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/XBDateTime.h:13,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/addons/addoninfo/AddonInfo.h:11,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/addons/IAddon.h:11,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/interfaces/generic/ILanguageInvoker.h:11,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/interfaces/python/PythonInvoker.h:11,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/network/httprequesthandler/python/HTTPPythonWsgiInvoker.h:11,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/network/httprequesthandler/python/HTTPPythonWsgiInvoker.cpp:9:
[ 21s] /usr/include/features.h:201: note: this is the location of the previous definition
[ 21s] # define _XOPEN_SOURCE 700
[ 21s]
[ 21s] /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/network/httprequesthandler/python/HTTPPythonWsgiInvoker.cpp: In constructor 'CHTTPPythonWsgiInvoker::CHTTPPythonWsgiInvoker(ILanguageInvocationHandler*, HTTPPythonRequest*)':
[ 21s] /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/network/httprequesthandler/python/HTTPPythonWsgiInvoker.cpp:93:34: error: invalid conversion from 'PyObject* (*)()' {aka '_object* (*)()'} to 'void (*)()' [-fpermissive]
[ 21s] PyImport_AppendInittab("xbmc", PyInit_Module_xbmc);
[ 21s] ^~~~~~~~~~~~~~~~~~
[ 21s] In file included from /usr/include/python2.7/Python.h:131,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/interfaces/python/LanguageHook.h:17,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/interfaces/python/PythonInvoker.h:13,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/network/httprequesthandler/python/HTTPPythonWsgiInvoker.h:11,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/network/httprequesthandler/python/HTTPPythonWsgiInvoker.cpp:9:
[ 21s] /usr/include/python2.7/import.h:54:65: note: initializing argument 2 of 'int PyImport_AppendInittab(const char*, void (*)())'
[ 21s] PyAPI_FUNC(int) PyImport_AppendInittab(const char *name, void (*initfunc)(void));
[ 21s] ~~~~~~~^~~~~~~~~~~~~~~
[ 21s] /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/network/httprequesthandler/python/HTTPPythonWsgiInvoker.cpp:94:39: error: invalid conversion from 'PyObject* (*)()' {aka '_object* (*)()'} to 'void (*)()' [-fpermissive]
[ 21s] PyImport_AppendInittab("xbmcaddon", PyInit_Module_xbmcaddon);
[ 21s] ^~~~~~~~~~~~~~~~~~~~~~~
[ 21s] In file included from /usr/include/python2.7/Python.h:131,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/interfaces/python/LanguageHook.h:17,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/interfaces/python/PythonInvoker.h:13,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/network/httprequesthandler/python/HTTPPythonWsgiInvoker.h:11,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/network/httprequesthandler/python/HTTPPythonWsgiInvoker.cpp:9:
[ 21s] /usr/include/python2.7/import.h:54:65: note: initializing argument 2 of 'int PyImport_AppendInittab(const char*, void (*)())'
[ 21s] PyAPI_FUNC(int) PyImport_AppendInittab(const char *name, void (*initfunc)(void));
[ 21s] ~~~~~~~^~~~~~~~~~~~~~~
[ 21s] /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/network/httprequesthandler/python/HTTPPythonWsgiInvoker.cpp:95:38: error: invalid conversion from 'PyObject* (*)()' {aka '_object* (*)()'} to 'void (*)()' [-fpermissive]
[ 21s] PyImport_AppendInittab("xbmcwsgi", PyInit_Module_xbmcwsgi);
[ 21s] ^~~~~~~~~~~~~~~~~~~~~~
[ 21s] In file included from /usr/include/python2.7/Python.h:131,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/interfaces/python/LanguageHook.h:17,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/interfaces/python/PythonInvoker.h:13,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/network/httprequesthandler/python/HTTPPythonWsgiInvoker.h:11,
[ 21s] from /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/network/httprequesthandler/python/HTTPPythonWsgiInvoker.cpp:9:
[ 21s] /usr/include/python2.7/import.h:54:65: note: initializing argument 2 of 'int PyImport_AppendInittab(const char*, void (*)())'
[ 21s] PyAPI_FUNC(int) PyImport_AppendInittab(const char *name, void (*initfunc)(void));
[ 21s] ~~~~~~~^~~~~~~~~~~~~~~
[ 21s] /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/network/httprequesthandler/python/HTTPPythonWsgiInvoker.cpp: In member function 'virtual void CHTTPPythonWsgiInvoker::executeScript(FILE*, const string&, PyObject*)':
[ 21s] /home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/xbmc/network/httprequesthandler/python/HTTPPythonWsgiInvoker.cpp:280:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
[ 21s] if (PyObject_CallMethod(pyResultIterator, "close", NULL) == NULL)
[ 21s] ^
[ 21s] make[2]: *** [build/network/httprequesthandler/python/CMakeFiles/network_httprequesthandlers_python.dir/build.make:79: build/network/httprequesthandler/python/CMakeFiles/network_httprequesthandlers_python.dir/HTTPPythonWsgiInvoker.cpp.o] Error 1
[ 21s] make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/build'
[ 21s] make[1]: *** [CMakeFiles/Makefile2:9417: build/network/httprequesthandler/python/CMakeFiles/network_httprequesthandlers_python.dir/all] Error 2
[ 21s] make[1]: *** Waiting for unfinished jobs....
[ 23s] make[2]: Entering directory '/home/abuild/rpmbuild/BUILD/kodi-19.0.20191220T224205.c0cd29564f/build'
Alles anzeigen
Hat da jemand evtl. eine Idee, wo und wie man das fixt?
Danke und schöne Grüße