https://bugs.winehq.org/show_bug.cgi?id=53396
Bug ID: 53396 Summary: Error while compiling Wine 7.13 - dlls/winebus.sys/bus_sdl.o: SDL_JOYSTICK_TYPE_ARCADE_PAD and others definitions are undeclared Product: Wine Version: 7.13 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: a.valuev@gmail.com Distribution: ---
There is a log:
gcc -m64 -c -o dlls/winebus.sys/bus_sdl.o ../wine-source/dlls/winebus.sys/bus_sdl.c -Idlls/winebus.sys \ -I../wine-source/dlls/winebus.sys -Iinclude -I../wine-source/include -D__WINESRC__ -D_UCRT \ -DWINE_UNIX_LIB -D_REENTRANT -I/usr/include/SDL2 -Wall -pipe -fno-stack-protector \ -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self \ -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla \ -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-4 -fPIC -fasynchronous-unwind-tables \ -g -O2 ../wine-source/dlls/winebus.sys/bus_sdl.c:122:26: error: expected declaration specifiers or ‘...’ before ‘*’ token static SDL_JoystickType (*pSDL_JoystickGetType)(SDL_Joystick * joystick); ^ ../wine-source/dlls/winebus.sys/bus_sdl.c: In function ‘build_joystick_report_descriptor’: ../wine-source/dlls/winebus.sys/bus_sdl.c:306:10: error: ‘pSDL_JoystickGetType’ undeclared (first use in this function) if (!pSDL_JoystickGetType) physical_usage = device_usage; ^~~~~~~~~~~~~~~~~~~~ ../wine-source/dlls/winebus.sys/bus_sdl.c:306:10: note: each undeclared identifier is reported only once for each function it appears in ../wine-source/dlls/winebus.sys/bus_sdl.c:307:18: warning: implicit declaration of function ‘pSDL_JoystickGetType’ [-Wimplicit-function-declaration] else switch (pSDL_JoystickGetType(impl->sdl_joystick)) ^~~~~~~~~~~~~~~~~~~~ ../wine-source/dlls/winebus.sys/bus_sdl.c:309:10: error: ‘SDL_JOYSTICK_TYPE_ARCADE_PAD’ undeclared (first use in this function) case SDL_JOYSTICK_TYPE_ARCADE_PAD: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../wine-source/dlls/winebus.sys/bus_sdl.c:310:10: error: ‘SDL_JOYSTICK_TYPE_ARCADE_STICK’ undeclared (first use in this function) case SDL_JOYSTICK_TYPE_ARCADE_STICK: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../wine-source/dlls/winebus.sys/bus_sdl.c:311:10: error: ‘SDL_JOYSTICK_TYPE_DANCE_PAD’ undeclared (first use in this function) case SDL_JOYSTICK_TYPE_DANCE_PAD: ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../wine-source/dlls/winebus.sys/bus_sdl.c:312:10: error: ‘SDL_JOYSTICK_TYPE_DRUM_KIT’ undeclared (first use in this function case SDL_JOYSTICK_TYPE_DRUM_KIT: ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../wine-source/dlls/winebus.sys/bus_sdl.c:313:10: error: ‘SDL_JOYSTICK_TYPE_GUITAR’ undeclared (first use in this function) case SDL_JOYSTICK_TYPE_GUITAR: ^~~~~~~~~~~~~~~~~~~~~~~~ ../wine-source/dlls/winebus.sys/bus_sdl.c:314:10: error: ‘SDL_JOYSTICK_TYPE_UNKNOWN’ undeclared (first use in this function) case SDL_JOYSTICK_TYPE_UNKNOWN: ^~~~~~~~~~~~~~~~~~~~~~~~~ ../wine-source/dlls/winebus.sys/bus_sdl.c:318:10: error: ‘SDL_JOYSTICK_TYPE_GAMECONTROLLER’ undeclared (first use in this fu case SDL_JOYSTICK_TYPE_GAMECONTROLLER: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../wine-source/dlls/winebus.sys/bus_sdl.c:322:10: error: ‘SDL_JOYSTICK_TYPE_WHEEL’ undeclared (first use in this function) case SDL_JOYSTICK_TYPE_WHEEL: ^~~~~~~~~~~~~~~~~~~~~~~ ../wine-source/dlls/winebus.sys/bus_sdl.c:326:10: error: ‘SDL_JOYSTICK_TYPE_FLIGHT_STICK’ undeclared (first use in this func case SDL_JOYSTICK_TYPE_FLIGHT_STICK: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../wine-source/dlls/winebus.sys/bus_sdl.c:327:10: error: ‘SDL_JOYSTICK_TYPE_THROTTLE’ undeclared (first use in this function case SDL_JOYSTICK_TYPE_THROTTLE: ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../wine-source/dlls/winebus.sys/bus_sdl.c: In function ‘sdl_bus_init’: ../wine-source/dlls/winebus.sys/bus_sdl.c:1117:5: error: ‘pSDL_JoystickGetType’ undeclared (first use in this function) pSDL_JoystickGetType = dlsym(sdl_handle, "SDL_JoystickGetType"); ^~~~~~~~~~~~~~~~~~~~
https://bugs.winehq.org/show_bug.cgi?id=53396
MotoR a.valuev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #1 from MotoR a.valuev@gmail.com --- Oh, it was an old version of SDL. When I compile the last SDL version, the compilation of Wine 7.13 is success.
https://bugs.winehq.org/show_bug.cgi?id=53396
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |INVALID CC| |z.figura12@gmail.com
--- Comment #2 from Zeb Figura z.figura12@gmail.com --- Nothing was fixed in Wine.
We probably could accommodate older versions, but probably no use spending effort on it unless we get more reports.
https://bugs.winehq.org/show_bug.cgi?id=53396
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |o.dierick@piezo-forte.be
--- Comment #3 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Created attachment 72789 --> https://bugs.winehq.org/attachment.cgi?id=72789 Patch declares SDL_JOYSTICK_TYPE_* enum constants for older SDL.
Hello,
enum SDL_JoystickType was added in SDL 2.0.6 [1].
The attached patch is what I use on Debian 8 (SDL 2.0.2).
[1] https://www.libsdl.org/tmp/SDL/WhatsNew.txt
Regards.
https://bugs.winehq.org/show_bug.cgi?id=53396
--- Comment #4 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Hello,
The ~regression~ commit is 6efb40718be445111a4b757f0acd8a6c66161b25.
Regards.
https://bugs.winehq.org/show_bug.cgi?id=53396
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Gijs Vermeulen gijsvrm@gmail.com --- Closing INVALID.