[Bug 53396] New: Error while compiling Wine 7.13 - dlls/winebus.sys/bus_sdl.o: SDL_JOYSTICK_TYPE_ARCADE_PAD and others definitions are undeclared

WineHQ Bugzilla wine-bugs at winehq.org
Thu Jul 21 08:35:58 CDT 2022


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 at winehq.org
          Reporter: a.valuev at 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");
     ^~~~~~~~~~~~~~~~~~~~

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


More information about the wine-bugs mailing list