I'm try to make wine 8.0 from source and have some error in specific distributive and have error:
Code: Select all
dlls/winebus.sys/bus_sdl.c:122:26: error: expected declaration specifiers or ‘...’ before ‘*’ token
static SDL_JoystickType (*pSDL_JoystickGetType)(SDL_Joystick * joystick);
^
dlls/winebus.sys/bus_sdl.c: In function ‘build_joystick_report_descriptor’:
dlls/winebus.sys/bus_sdl.c:305:10: error: ‘pSDL_JoystickGetType’ undeclared (first use in this function)
if (!pSDL_JoystickGetType) physical_usage = device_usage;
^~~~~~~~~~~~~~~~~~~~
dlls/winebus.sys/bus_sdl.c:305:10: note: each undeclared identifier is reported only once for each function it appears in
dlls/winebus.sys/bus_sdl.c:306:18: warning: implicit declaration of function ‘pSDL_JoystickGetType’ [-Wimplicit-function-declaration]
else switch (pSDL_JoystickGetType(impl->sdl_joystick))
^~~~~~~~~~~~~~~~~~~~
dlls/winebus.sys/bus_sdl.c:308:10: error: ‘SDL_JOYSTICK_TYPE_ARCADE_PAD’ undeclared (first use in this function)
case SDL_JOYSTICK_TYPE_ARCADE_PAD:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
dlls/winebus.sys/bus_sdl.c:309:10: error: ‘SDL_JOYSTICK_TYPE_ARCADE_STICK’ undeclared (first use in this function)
case SDL_JOYSTICK_TYPE_ARCADE_STICK:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dlls/winebus.sys/bus_sdl.c:310:10: error: ‘SDL_JOYSTICK_TYPE_DANCE_PAD’ undeclared (first use in this function)
case SDL_JOYSTICK_TYPE_DANCE_PAD:
^~~~~~~~~~~~~~~~~~~~~~~~~~~
dlls/winebus.sys/bus_sdl.c:311:10: error: ‘SDL_JOYSTICK_TYPE_DRUM_KIT’ undeclared (first use in this function)
case SDL_JOYSTICK_TYPE_DRUM_KIT:
^~~~~~~~~~~~~~~~~~~~~~~~~~
dlls/winebus.sys/bus_sdl.c:312:10: error: ‘SDL_JOYSTICK_TYPE_GUITAR’ undeclared (first use in this function)
case SDL_JOYSTICK_TYPE_GUITAR:
^~~~~~~~~~~~~~~~~~~~~~~~
dlls/winebus.sys/bus_sdl.c:313:10: error: ‘SDL_JOYSTICK_TYPE_UNKNOWN’ undeclared (first use in this function)
case SDL_JOYSTICK_TYPE_UNKNOWN:
^~~~~~~~~~~~~~~~~~~~~~~~~
dlls/winebus.sys/bus_sdl.c:317:10: error: ‘SDL_JOYSTICK_TYPE_GAMECONTROLLER’ undeclared (first use in this function)
case SDL_JOYSTICK_TYPE_GAMECONTROLLER:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dlls/winebus.sys/bus_sdl.c:321:10: error: ‘SDL_JOYSTICK_TYPE_WHEEL’ undeclared (first use in this function)
How to work around the problem?