| Summary: | Compile fails due to error in SDL_evdev.c | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Joe LeVeque <joeleveque> |
| Component: | *don't know* | Assignee: | Gabriel Jacobo <gabomdq> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | blocker | ||
| Priority: | P2 | CC: | gabomdq |
| Version: | HG 2.1 | ||
| Hardware: | All | ||
| OS: | Linux | ||
|
Description
Joe LeVeque
2013-09-28 18:11:04 UTC
I posted this bug before looking into it very far. It appears not to be a copy/paste error because it is not only one line that presents this error, but many. It appears to be the case that if HAVE_LIBUDEV_H is not defined, SDL_UDEV_deviceclass is not defined, but SDL_evdev.c relies on it. The error is as follows: SDL_evdev.c:58:1: error: unknown type name 'SDL_UDEV_deviceclass' Let me know if this fixes it: http://hg.libsdl.org/SDL/rev/f06772125578 Thanks! Looks like that took care of it. Thanks for the prompt fix! I believe this is related. Now when compiling SDL2_mixer, the configure script fails when trying to link against SDL2 with the following error: test.c -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL2 -lpthread >&5 /usr/local/lib/libSDL2.so: undefined reference to `SDL_EVDEV_device_removed' collect2: error: ld returned 1 exit status configure:11530: $? = 1 configure: program exited with status 1 It appears that SDL_EVDEV_device_removed() is called at line 383 of SDL_evdev.c and is not enclosed within an "#if SDL_USE_LIBUDEV", hence the error. |