[SDL] Solaris 9 and SDL-1.2.11

Frank Middleton f.middleton at apogeect.com
Tue Jan 2 11:28:41 PST 2007


Replying to my own post:

Solaris 9 /usr/openwin/include/X11/Xlibint.h already includes Xlib.h and
Xutil.h. Got the build to complete by doing the following:
 
Commented out line 127 of ./src/video/x11/SDL_x11sym.h
Commented out #include <X11/Xproto.h> and <X11/Xlib.h> in ./src/video/x11/SDL_x11dyn.h
Replaced #include <X11/Xlib.h> with #include <X11/Xlibint.h> in both
  ./src/video/dga/SDL_dgavideo.c
  ./src/video/dga/SDL_dgaevents.c

Hope this helps! Now to see if it works :-)

Frank Middleton wrote:
>> uname -a
> SunOS apogee5 5.9 Generic_118558-35 sun4u sparc SUNW,Ultra-80 Solaris
>> gcc --version
> gcc (GCC) 4.1.1
> 
> There was a thread about this before ([SDL] SDL 1.2.10 PRERELEASE #2)
> http://www.libsdl.org/pipermail/sdl/2006-May/074309.html
> 
> but it didn't come to a resolution, and the
> "./src/video/x11/SDL_x11sym.h:127: error: conflicting types for 'XSynchronize'"
> problem is still there. By undef-ing X11_DEBUG, the build continues, but fails
> later on:
> 
> In file included from ./src/video/dga/../x11/SDL_x11dyn.h:30,
>                  from ./src/video/dga/SDL_dgaevents.c:36:
> /usr/openwin/include/X11/Xlibint.h:137: error: expected declaration specifiers or '...' before 'xEvent'
> In file included from ./src/video/dga/../x11/SDL_x11dyn.h:30,
>                  from ./src/video/dga/SDL_dgaevents.c:36:
> /usr/openwin/include/X11/Xlibint.h:761: error: expected declaration specifiers or '...' before 'xReply'
> /usr/openwin/include/X11/Xlibint.h:836: error: expected specifier-qualifier-list before 'xReply'
> /usr/openwin/include/X11/Xlibint.h:903: error: expected declaration specifiers or '...' before 'xGenericReply'
> /usr/openwin/include/X11/Xlibint.h:921: error: expected declaration specifiers or '...' before 'xReply'
> /usr/openwin/include/X11/Xlibint.h:931: error: expected declaration specifiers or '...' before 'xReply'
> /usr/openwin/include/X11/Xlibint.h:978: error: expected declaration specifiers or '...' before 'xReply'
> /usr/openwin/include/X11/Xlibint.h:986: error: expected declaration specifiers or '...' before 'xEvent'
> /usr/openwin/include/X11/Xlibint.h:1187: error: expected declaration specifiers or '...' before 'xEvent'
> /usr/openwin/include/X11/Xlibint.h:1193: error: expected declaration specifiers or '...' before 'xEvent'
> /usr/openwin/include/X11/Xlibint.h:1205: error: expected declaration specifiers or '...' before 'xEvent'
> /usr/openwin/include/X11/Xlibint.h:1211: error: expected declaration specifiers or '...' before 'xEvent'
> In file included from ./src/video/dga/../x11/SDL_x11dyn.h:34,
>                  from ./src/video/dga/SDL_dgaevents.c:36:
> ./src/video/dga/../x11/../Xext/extensions/extutil.h:114: error: expected declaration specifiers or '...' before 'xEvent'
> ./src/video/dga/../x11/../Xext/extensions/extutil.h:121: error: expected declaration specifiers or '...' before 'xEvent'
> In file included from ./src/video/dga/SDL_dgaevents.c:36:
> ./src/video/dga/../x11/SDL_x11dyn.h:61: error: expected declaration specifiers or '...' before 'xEvent'
> ./src/video/dga/../x11/SDL_x11dyn.h:63: error: expected declaration specifiers or '...' before 'xEvent'
> 
> etc...
> 
> Before I spend the time to fix these issues, has anyone else already
> done so? If not, would the developers be interested in the fixes?
> 
> Regards -- Frank
> 
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
> 




More information about the SDL mailing list