| Summary: | SDL 2.0 compile error on Fedora 19/x86_64 | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Ellie <etc0de> |
| Component: | build | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED DUPLICATE | QA Contact: | Sam Lantinga <slouken> |
| Severity: | blocker | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
Maybe this is related? http://gnats.netbsd.org/33781 Turning this in SDL_x11sym.h: SDL_X11_SYM(int,_XData32,(Display *dpy,register long *data,unsigned len),(dpy,data,len),return) into this: //SDL_X11_SYM(int,_XData32,(Display *dpy,register long *data,unsigned len),(dpy,data,len),return) makes SDL build again. (I suppose a proper fix would be different, but just to give you something to start with) |
Cloned a few minutes ago from the libsdl repository: libtool: compile: gcc -g -O3 -DUSING_GENERATED_CONFIG_H -I./include -mmmx -m3dnow -msse -msse2 -fvisibility=hidden -D_REENTRANT -DHAVE_LINUX_VERSION_H -Wall -MMD -MT build/SDL_x11clipboard.lo -c src/video/x11/SDL_x11clipboard.c -o build/SDL_x11clipboard.o /bin/sh ./libtool --mode=compile gcc -g -O3 -DUSING_GENERATED_CONFIG_H -I./include -mmmx -m3dnow -msse -msse2 -fvisibility=hidden -D_REENTRANT -DHAVE_LINUX_VERSION_H -Wall -MMD -MT build/SDL_x11dyn.lo -c src/video/x11/SDL_x11dyn.c -o build/SDL_x11dyn.lo libtool: compile: gcc -g -O3 -DUSING_GENERATED_CONFIG_H -I./include -mmmx -m3dnow -msse -msse2 -fvisibility=hidden -D_REENTRANT -DHAVE_LINUX_VERSION_H -Wall -MMD -MT build/SDL_x11dyn.lo -c src/video/x11/SDL_x11dyn.c -o build/SDL_x11dyn.o src/video/x11/SDL_x11sym.h:161:17: error: conflicting types for ‘_XData32’ SDL_X11_SYM(int,_XData32,(Display *dpy,register long *data,unsigned len),(dpy,data,len),return) ^ src/video/x11/SDL_x11dyn.c:109:5: note: in definition of macro ‘SDL_X11_SYM’ rc fn params { ret p##fn args ; } ^ In file included from src/video/x11/SDL_x11dyn.h:33:0, from src/video/x11/SDL_x11dyn.c:27: /usr/include/X11/Xlibint.h:595:12: note: previous declaration of ‘_XData32’ was here extern int _XData32( ^ make[3]: *** [build/SDL_x11dyn.lo] Error 1 I suppose Fedora 19 has some X11 header change which breaks SDL!