On Sun, Jan 19, 2025 at 6:07 AM Neal Gompa <ngompa13@xxxxxxxxx> wrote: > > On Sun, Jan 19, 2025 at 3:28 AM Julian Sikorski <belegdol@xxxxxxxxx> wrote: > > > > Hello, > > > > I tried building mame against sdl2-compat which has replaced SDL2 in > > rawhide. After some fixes I managed to get further but the build still > > fails: > > > > Compiling src/osd/sdl/window.cpp... > > g++ -MMD -MP -MP -DPTR64=1 -DNDEBUG -DCRLF=2 -DLSB_FIRST -DXMD_H > > -DFLAC__NO_DLL -DNATIVE_DRC=drcbe_x64 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 > > -DLUA_COMPAT_5_2 -DUSE_NETWORK -DOSD_NET_USE_TAPTUN > > -D'INI_PATH="/etc/mame;"' -DSDLMAME_X11 -DSDLMAME_USE_WAYLAND > > -DUSE_XINPUT=1 -DUSE_XINPUT_DEBUG=0 -DUSE_XINPUT_WII_LIGHTGUN_HACK=0 > > -DSDLMAME_SDL2=1 -DOSD_SDL -DSDLMAME_UNIX -DUSE_OPENGL=1 > > -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS > > -DBX_CONFIG_DEBUG=0 -DUSE_QTDEBUG=1 > > -I"../../../../../../../../../../usr/X11/include" > > -I"../../../../../../../../../../usr/X11R6/include" > > -I"../../../../../../../../../../usr/openwin/include" > > -I"../../../../../src/osd" -I"../../../../../scripts/src/osd" > > -I"../../../../../3rdparty/bgfx/examples/common" > > -I"../../../../../3rdparty/bgfx/include" > > -I"../../../../../3rdparty/bgfx/3rdparty" > > -I"../../../../../3rdparty/bgfx/3rdparty/khronos" > > -I"../../../../../3rdparty/bx/include" -I"../../../../../src/emu" > > -I"../../../../../src/devices" -I"../../../../../src/lib" > > -I"../../../../../src/lib/util" -I"../../../../../src/osd/modules/file" > > -I"../../../../../src/osd/modules/render" -I"../../../../../3rdparty" > > -I"../../../../../src/osd/sdl" -m64 -std=c++17 -pipe -O2 > > -fno-strict-aliasing -O2 -fexceptions -g1 -grecord-gcc-switches -pipe > > -Wall -Wno-complain-wrong-lang -Werror=format-security > > -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 > > -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong > > -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 > > -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection > > -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer > > -mno-omit-leaf-frame-pointer -Wno-unknown-pragmas -Wall -Wcast-align > > -Wformat-security -Wundef -Wwrite-strings -Wno-conversion > > -Wno-sign-compare -Wno-error=deprecated-declarations > > -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes > > -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-nonnull > > -Wno-stringop-overread -Wno-error=maybe-uninitialized > > -Wno-error=uninitialized -m64 -I/usr/include/SDL2 -D_GNU_SOURCE=1 > > -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 > > -I/usr/include/harfbuzz -I/usr/include/glib-2.0 > > -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread > > -I/usr/include/libxml2 -DWITH_GZFILEOP -I/usr/include/qt6 -std=c++17 > > -Woverloaded-virtual -Wvla -Wimplicit-fallthrough > > -Wno-error=class-memaccess -Wno-xor-used-as-pow -include > > /builddir/build/BUILD/mame-0.273-build/mame-mame0273/src/osd/sdl/sdlprefix.h > > -o "../../../../linux_gcc/obj/x64/Release/osd_sdl/src/osd/sdl/window.o" > > -c "../../../../../src/osd/sdl/window.cpp" > > ../../../../../src/osd/sdl/window.cpp: In member function ‘int > > sdl_window_info::complete_create()’: > > ../../../../../src/osd/sdl/window.cpp:904:56: error: ‘union > > SDL_SysWMinfo::<unnamed>’ has no member named ‘x11’ > > 904 | > > XSelectInput(swmi.info.x11.display, swmi.info.x11.window, > > | ^~~ > > ../../../../../src/osd/sdl/window.cpp:904:79: error: ‘union > > SDL_SysWMinfo::<unnamed>’ has no member named ‘x11’ > > 904 | > > XSelectInput(swmi.info.x11.display, swmi.info.x11.window, > > | > > ^~~ > > ../../../../../src/osd/sdl/window.cpp:905:41: error: ‘FocusChangeMask’ > > was not declared in this scope > > 905 | FocusChangeMask | > > EnterWindowMask | LeaveWindowMask | > > | ^~~~~~~~~~~~~~~ > > ../../../../../src/osd/sdl/window.cpp:905:59: error: ‘EnterWindowMask’ > > was not declared in this scope > > 905 | FocusChangeMask | > > EnterWindowMask | LeaveWindowMask | > > | > > ^~~~~~~~~~~~~~~ > > ../../../../../src/osd/sdl/window.cpp:905:77: error: ‘LeaveWindowMask’ > > was not declared in this scope > > 905 | FocusChangeMask | > > EnterWindowMask | LeaveWindowMask | > > | > > ^~~~~~~~~~~~~~~ > > ../../../../../src/osd/sdl/window.cpp:906:41: error: ‘PointerMotionMask’ > > was not declared in this scope > > 906 | PointerMotionMask | > > KeyPressMask | KeyReleaseMask | > > | ^~~~~~~~~~~~~~~~~ > > ../../../../../src/osd/sdl/window.cpp:906:61: error: ‘KeyPressMask’ was > > not declared in this scope > > 906 | PointerMotionMask | > > KeyPressMask | KeyReleaseMask | > > | > > ^~~~~~~~~~~~ > > ../../../../../src/osd/sdl/window.cpp:906:76: error: ‘KeyReleaseMask’ > > was not declared in this scope > > 906 | PointerMotionMask | > > KeyPressMask | KeyReleaseMask | > > | > > ^~~~~~~~~~~~~~ > > ../../../../../src/osd/sdl/window.cpp:907:41: error: > > ‘PropertyChangeMask’ was not declared in this scope > > 907 | PropertyChangeMask | > > StructureNotifyMask | > > | ^~~~~~~~~~~~~~~~~~ > > ../../../../../src/osd/sdl/window.cpp:907:62: error: > > ‘StructureNotifyMask’ was not declared in this scope > > 907 | PropertyChangeMask | > > StructureNotifyMask | > > | > > ^~~~~~~~~~~~~~~~~~~ > > ../../../../../src/osd/sdl/window.cpp:908:41: error: ‘ExposureMask’ was > > not declared in this scope > > 908 | ExposureMask | > > KeymapStateMask); > > | ^~~~~~~~~~~~ > > ../../../../../src/osd/sdl/window.cpp:908:56: error: ‘KeymapStateMask’ > > was not declared in this scope > > 908 | ExposureMask | > > KeymapStateMask); > > | > > ^~~~~~~~~~~~~~~ > > ../../../../../src/osd/sdl/window.cpp:904:33: error: ‘XSelectInput’ was > > not declared in this scope > > 904 | > > XSelectInput(swmi.info.x11.display, swmi.info.x11.window, > > | ^~~~~~~~~~~~ > > make[2]: *** [osd_sdl.make:1389: > > ../../../../linux_gcc/obj/x64/Release/osd_sdl/src/osd/sdl/window.o] Error 1 > > > > Is this a problem with sdl2-compat? Or rather with mame itself? Where > > should the issue be reported? > > > > Please first report it to sdl2-compat, then we can figure it out from there. > > https://github.com/libsdl-org/sdl2-compat/issues > I talked to upstream about it and they've made some fixes to try to address this. I've updated sdl2-compat with a new build that will land in Rawhide shortly: https://koji.fedoraproject.org/koji/buildinfo?buildID=2641033 -- 真実はいつも一つ!/ Always, there's only one truth! -- _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue