Beiträge von Coffeinflash
-
-
Hi,
ich baue unter openSUSE für openSUSE 15.3, sorry
Mir ist bewusst, dass ich auch das interne fmt bzw. spdlog benutzen kann. Mein HTPC ist aber ein kleines "bleeding-edge"-Projekt, weswegen ich gerne gegen die aktuellen Versionen for fmt und spdlog bauen will.
Ich habe nur nicht so die Ahnung von C-/C++-Code, weswegen ich nicht so genau weiss, wie ich "#define SPDLOG_LEVEL_NAMES {"TRACE", "DEBUG", "INFO", "WARNING", "ERROR", "FATAL", "OFF"};" umbauen muss, dass es klappt.Für den Moment habe ich die alten Versionen von fmt und spdlog wieder aktiviert, damit klapp das Bauen ohne Probleme.
Der Vollständigkeit halber ist hier noch meine cmake-Zeile:
Bash
Alles anzeigen%cmake \ -DVERBOSE=ON \ -DCMAKE_BUILD_TYPE=Release \ -DPYTHON_ADDITIONAL_VERSIONS=3.6 \ -DPYTHON_LIBRARY="/usr/lib64/libpython3.6m.so.1.0" \ -DPYTHON_EXECUTABLE="/usr/bin/python3" \ -DPYTHON_INCLUDE_DIRS="/usr/include/python3.6m/" \ -DENABLE_EVENTCLIENTS=ON \ -DENABLE_INTERNAL_FFMPEG=OFF \ -DENABLE_INTERNAL_CROSSGUID=OFF \ -DENABLE_INTERNAL_CDIO=OFF \ -DENABLE_INTERNAL_FLATBUFFERS=OFF \ -DENABLE_INTERNAL_FMT=OFF \ -DENABLE_INTERNAL_FSTRCMP=OFF \ -DENABLE_INTERNAL_RapidJSON=OFF \ -DENABLE_INTERNAL_SPDLOG=OFF \ -DENABLE_INTERNAL_DAV1D=OFF \ -DENABLE_INTERNAL_UDFREAD=OFF \ -DENABLE_INTERNAL_GTEST=OFF \ -DENABLE_AIRTUNES=OFF \ -DENABLE_DVDCSS=OFF \ -DENABLE_PULSEAUDIO=OFF \ -DENABLE_PIPEWIRE=OFF \ -DENABLE_MYSQLCLIENT=OFF \ -DENABLE_MARIADBCLIENT=ON \ -DBUILD_SHARED_LIBS=1 \ %ifarch x86_64 -DENABLE_VAAPI=ON \ -DENABLE_VDPAU=ON \ -DCORE_SYSTEM_NAME=linux \ -DCORE_PLATFORM_NAME=x11 \ -DAPP_RENDER_SYSTEM=gl \ -DX11_RENDER_SYSTEM=gl %endif %ifarch aarch64 -DENABLE_NEON=ON \ -DENABLE_VAAPI=OFF \ -DENABLE_VDPAU=OFF \ -DCORE_SYSTEM_NAME=linux \ -DCORE_PLATFORM_NAME=x11 \ -DAPP_RENDER_SYSTEM=gl \ -DX11_RENDER_SYSTEM=gl \ %endif ${NULL}
-
Hallo zusammen,
ich versuche die aktuell alpha aus dem GIt gegen die letzten Versionen von fmt (8.0.1) und spdlog (1.9.2) zu bauen. Das klappt aber nicht:
C
Alles anzeigen[ 140s] cd "/home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55/build/build/network/httprequesthandler/python" && /usr/bin/g++-10 -I"/home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55" -I"/home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55/lib" -I"/home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55/xbmc" -I"/home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55/xbmc/platform/linux" -I"/home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55/xbmc/cores/VideoPlayer" -I"/home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55/build/build" -I"/home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55/build/build/include" -I"/home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55/xbmc/platform/posix" -I/usr/include/libcec -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/p11-kit-1 -I/usr/include/python3.6m -I/usr/include/samba-4.0 -I/usr/include/libxml2 -I/usr/include/wayland -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/fribidi -I/usr/include/ffmpeg -I"/home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55/build/build/cores/RetroPlayer/messages" -I/usr/include/lzo -I/usr/include/taglib -I/usr/include/libdrm -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -Wdouble-promotion -Wmissing-field-initializers -O3 -DNDEBUG -DTARGET_POSIX -DTARGET_LINUX -D_GNU_SOURCE -DHAVE_LINUX_UDMABUF=1 -DHAVE_LINUX_DMA_BUF=1 -DHAVE_MKOSTEMP=1 -DHAVE_LINUX_MEMFD=1 -DHAVE_STATX=1 -D__STDC_CONSTANT_MACROS -D_FILE_OFFSET_BITS=64 -DHAS_POSIX_NETWORK -DHAS_LINUX_NETWORK -DHAS_BUILTIN_SYNC_ADD_AND_FETCH=1 -DHAS_BUILTIN_SYNC_SUB_AND_FETCH=1 -DHAS_BUILTIN_SYNC_VAL_COMPARE_AND_SWAP=1 -DHAVE_INOTIFY=1 -DHAVE_POSIX_FADVISE=1 -DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 -DHAVE_INTTYPES_H=1 -DHAS_ALSA=1 -D_REENTRANT -DHAS_AVAHI=1 -DHAS_ZEROCONF=1 -DHAVE_LIBBLURAY=1 -DHAVE_LIBBLURAY_BDJ=1 -DHAVE_LIBCEC=1 -DHAS_DBUS=1 -DHAVE_LCMS2=1 -DHAS_LIRC=1 -DHAS_WEB_SERVER=1 -DHAS_WEB_INTERFACE=1 -DHAS_FILESYSTEM_NFS=1 -DHAS_AIRPLAY=1 -DHAS_PYTHON=1 -DHAS_FILESYSTEM_SMB=1 -DHAS_SNDIO=1 -DHAVE_LIBUDEV=1 -DHAVE_LIBXSLT=1 -DHAVE_LIBVA=1 -DHAS_GLX=1 -DHAVE_LIBVDPAU=1 -DFFMPEG_VER_SHA=\"\" -DSPDLOG_FMT_EXTERNAL -DSPDLOG_DEBUG_ON -DSPDLOG_NO_ATOMIC_LEVELS -DSPDLOG_ENABLE_PATTERN_PADDING -DHAS_EGL=1 -DHAVE_X11=1 -DHAVE_LIBXRANDR=1 -DHAS_GL=1 -DHAS_MARIADB=1 -DHAS_UPNP=1 -DHAS_DVD_DRIVE -DHAS_CDDA_RIPPER -DBIN_INSTALL_PATH=\"/usr/lib64/kodi\" -DINSTALL_PATH=\"/usr/share/kodi\" -std=c++17 -MD -MT build/network/httprequesthandler/python/CMakeFiles/network_httprequesthandlers_python.dir/HTTPPythonInvoker.cpp.o -MF CMakeFiles/network_httprequesthandlers_python.dir/HTTPPythonInvoker.cpp.o.d -o CMakeFiles/network_httprequesthandlers_python.dir/HTTPPythonInvoker.cpp.o -c "/home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55/xbmc/network/httprequesthandler/python/HTTPPythonInvoker.cpp" [ 140s] In file included from /home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55/xbmc/interfaces/legacy/Exception.h:12, [ 140s] from /home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55/xbmc/interfaces/legacy/Addon.h:13, [ 140s] from /home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55/xbmc/interfaces/python/PythonInvoker.h:12, [ 140s] from /home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55/xbmc/network/httprequesthandler/python/HTTPPythonInvoker.h:11, [ 140s] from /home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55/xbmc/network/httprequesthandler/python/HTTPPythonInvoker.cpp:9: [ 140s] /home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55/xbmc/utils/[definition='1','0']log[/definition].h:12:89: error: 'constexpr fmt::v8::basic_string_view<Char>::basic_string_view(const Char*) [with Char = char]' called in a constant expression [ 140s] 12 | #define SPDLOG_LEVEL_NAMES {"TRACE", "DEBUG", "INFO", "WARNING", "ERROR", "FATAL", "OFF"}; [ 140s] | ^ [ 140s] In file included from /usr/include/fmt/format.h:44, [ 140s] from /home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55/xbmc/utils/StringUtils.h:37, [ 140s] from /home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55/xbmc/addons/addoninfo/AddonExtensions.h:11, [ 140s] from /home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55/xbmc/addons/addoninfo/AddonType.h:11, [ 140s] from /home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55/xbmc/addons/addoninfo/AddonInfo.h:13, [ 140s] from /home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55/xbmc/addons/IAddon.h:11, [ 140s] from /home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55/xbmc/interfaces/generic/ILanguageInvoker.h:11, [ 140s] from /home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55/xbmc/interfaces/python/PythonInvoker.h:11, [ 140s] from /home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55/xbmc/network/httprequesthandler/python/HTTPPythonInvoker.h:11, [ 140s] from /home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55/xbmc/network/httprequesthandler/python/HTTPPythonInvoker.cpp:9: [ 140s] /usr/include/fmt/core.h:460:3: note: 'constexpr fmt::v8::basic_string_view<Char>::basic_string_view(const Char*) [with Char = char]' is not usable as a 'constexpr' function because: [ 140s] 460 | basic_string_view(const Char* s) : data_(s) { [ 140s] | ^~~~~~~~~~~~~~~~~ [ 140s] /usr/include/fmt/core.h:460:3: error: member 'fmt::v8::basic_string_view<char>::size_' must be initialized by mem-initializer in 'constexpr' constructor [ 140s] /usr/include/fmt/core.h:439:10: note: declared here [ 140s] 439 | size_t size_; [ 140s] | ^~~~~
Hat jemand zufällig eine Idee, wie man das fixt?
C/home/abuild/rpmbuild/BUILD/kodi-20.0~alpha1.20210823T210717~81c35da5c55/xbmc/utils/[definition='1','0']log[/definition].h:12:89: error: 'constexpr fmt::v8::basic_string_view<Char>::basic_string_view(const Char*) [with Char = char]' called in a constant expression [ 140s] 12 | #define SPDLOG_LEVEL_NAMES {"TRACE", "DEBUG", "INFO", "WARNING", "ERROR", "FATAL", "OFF"};
Das komplette [definition='1','0']log[/definition] ist hier zu finden: https://build.opensuse.org/public/build/h…86_64/kodi/_logDanke und schöne Grüße
-
Hallo,
ich habe mittlerweile das RPM hinbekommen:
OBS-Project
RepositoryIch musste allerdings Python3 "erzwingen":
Code
Alles anzeigenexport CFLAGS="%optflags -fpermissive" export CXXFLAGS="%optflags -fpermissive" %cmake \ -DPYTHON_ADDITIONAL_VERSIONS=3.6 \ -DPYTHON_LIBRARY="/usr/lib64/libpython3.6m.so.1.0" \ -DPYTHON_EXECUTABLE="/usr/bin/python3" \ -DPYTHON_INCLUDE_DIRS="/usr/include/python3.6m/" \ %if %{with kodi_wayland_gl} -DCORE_PLATFORM_NAME=wayland \ -DWAYLAND_RENDER_SYSTEM=gl \ %endif %if %{with kodi_wayland_gles} -DCORE_PLATFORM_NAME=wayland \ -DWAYLAND_RENDER_SYSTEM=gles \ %endif -DGIT_EXECUTABLE:STRING=$(type -P false) \ -DWITH_ARCH="%{_arch}-linux" \ -DNATIVEPREFIX=$NATIVEPREFIX \ -DKODI_DEPENDSBUILD=FALSE \ -DENABLE_EVENTCLIENTS=ON \ -DENABLE_INTERNAL_CROSSGUID=OFF \ -DENABLE_INTERNAL_FFMPEG=OFF \ -DENABLE_INTERNAL_FLATBUFFERS=OFF \ -DENABLE_INTERNAL_FMT=OFF \ -DENABLE_INTERNAL_FSTRCMP=OFF \ -DENABLE_INTERNAL_RapidJSON=OFF \ -DX11_RENDER_SYSTEM=gl \ %if %{with shairplay} -DENABLE_AIRTUNES=ON \ %else -DENABLE_AIRTUNES=OFF \ %endif -DENABLE_DVDCSS=OFF
Diff
Alles anzeigendiff -uNr kodi-19.0.20200101T005832.15dcf22e792.orig/cmake/modules/LDGOLD.cmake kodi-19.0.20200101T005832.15dcf22e792/cmake/modules/LDGOLD.cmake --- kodi-19.0.20200101T005832.15dcf22e792.orig/cmake/modules/LDGOLD.cmake 2020-01-01 00:58:32.000000000 +0100 +++ kodi-19.0.20200101T005832.15dcf22e792/cmake/modules/LDGOLD.cmake 2020-01-01 13:21:28.589343200 +0100 @@ -4,9 +4,9 @@ if(ENABLE_LDGOLD) execute_process(COMMAND ${CMAKE_C_COMPILER} -fuse-ld=gold -Wl,--version ERROR_QUIET OUTPUT_VARIABLE LD_VERSION) if(LD_VERSION MATCHES "GNU gold") - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=gold") - set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=gold") - set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=gold") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=gold -lpython3.6m") + set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=gold -lpython3.6m") + set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=gold -lpython3.6m") set(LDGOLD_FOUND TRUE) message(STATUS "Linker: GNU gold") else() diff -uNr kodi-19.0.20200101T005832.15dcf22e792.orig/cmake/scripts/common/CompilerSettings.cmake kodi-19.0.20200101T005832.15dcf22e792/cmake/scripts/common/CompilerSettings.cmake --- kodi-19.0.20200101T005832.15dcf22e792.orig/cmake/scripts/common/CompilerSettings.cmake 2020-01-01 00:58:32.000000000 +0100 +++ kodi-19.0.20200101T005832.15dcf22e792/cmake/scripts/common/CompilerSettings.cmake 2020-01-01 10:08:21.902033400 +0100 @@ -1,6 +1,6 @@ # Languages and global compiler settings if(NOT DEFINED CMAKE_CXX_STANDARD OR CMAKE_CXX_STANDARD LESS 14) - set(CMAKE_CXX_STANDARD 14) + set(CMAKE_CXX_STANDARD 17) endif() set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF)
-
Guten Morgen,
ich habe es jetzt "manuell" kompiliert, das ist ohne Fehler durchgelaufen. Danke für die Antworten!
-
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
Alles anzeigen[ 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'
Hat da jemand evtl. eine Idee, wo und wie man das fixt?
Danke und schöne Grüße