We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1875

Summary: SDL 2.0 compile error on Fedora 19/x86_64
Product: SDL Reporter: Ellie <etc0de>
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED DUPLICATE QA Contact: Sam Lantinga <slouken>
Severity: blocker    
Priority: P2    
Version: HG 2.0   
Hardware: x86_64   
OS: Linux   

Description Ellie 2013-05-29 17:12:49 UTC
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!
Comment 1 Ellie 2013-05-31 15:25:26 UTC
Maybe this is related? http://gnats.netbsd.org/33781
Comment 2 Ellie 2013-06-01 05:02:45 UTC
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)
Comment 3 Ellie 2013-06-01 07:57:39 UTC

*** This bug has been marked as a duplicate of bug 1769 ***