revery-ui / esy-sdl2

Esy-enabled build for SDL2
zlib License
5 stars 9 forks source link

Build fails with Wayland 1.20 #21

Closed Jaakkonen closed 1 year ago

Jaakkonen commented 2 years ago
      CC     build/SDL_virtualjoystick.lo
      CC     build/SDL_dummysensor.lo
      LTLINK build/libSDL2.la
    /usr/bin/ld: build/.libs/SDL_waylanddatamanager.o: in function `wl_data_offer_receive':
    SDL_waylanddatamanager.c:(.text+0x54): undefined reference to `wl_proxy_marshal_flags'
    /usr/bin/ld: build/.libs/SDL_waylanddatamanager.o: in function `wl_data_offer_destroy':
    SDL_waylanddatamanager.c:(.text+0x9f): undefined reference to `wl_proxy_marshal_flags'
    /usr/bin/ld: build/.libs/SDL_waylanddatamanager.o: in function `wl_data_source_offer':
    SDL_waylanddatamanager.c:(.text+0xf1): undefined reference to `wl_proxy_marshal_flags'
    /usr/bin/ld: build/.libs/SDL_waylanddatamanager.o: in function `wl_data_source_destroy':
    SDL_waylanddatamanager.c:(.text+0x138): undefined reference to `wl_proxy_marshal_flags'
    /usr/bin/ld: build/.libs/SDL_waylanddatamanager.o: in function `wl_data_device_set_selection':
    SDL_waylanddatamanager.c:(.text+0x193): undefined reference to `wl_proxy_marshal_flags'
    /usr/bin/ld: build/.libs/SDL_waylandevents.o:SDL_waylandevents.c:(.text+0xb1): more undefined references to `wl_proxy_marshal_flags' follow
    collect2: error: ld returned 1 exit status
    make: *** [Makefile:154: build/libSDL2.la] Error 1
    error: command failed: 'bash' '-c' './build-scripts/esybuild.sh --os=linux' (exited with 2)
    esy-build-package: exiting with errors above...

  building esy-sdl2@2.0.14000
esy: exiting due to errors above

Upstream bug and fixing commit: https://github.com/libsdl-org/SDL/issues/5088 https://github.com/libsdl-org/SDL/commit/e2ade2bfc46d915cd306c63c830b81d800b2575f The fix will probably be included in next release 2.0.19 where this project is still in version 2.0.14