Broken SDL since v1.2.12-4?

Andrea Musuruane musuruan at gmail.com
Sun Dec 23 12:07:35 UTC 2007


Hi all,
    yum just updated my SDL to 1.2.12-4.fc8.i386. Since that, I am no
longer able to build any SDL dependent software. 

For example, with tecnoballz (which I was going to commit), I get the
following configure error:

[..]
checking for SDL - version >= 0.11.0... no
*** Could not run SDL test program, checking why...
*** The test program failed to compile or link. See the file config.log
for the
*** exact error that occured. This usually means SDL was incorrectly
installed
*** or that you have moved SDL since it was installed. In the latter
case, you
*** may want to edit the sdl-config script: /usr/bin/sdl-config
[..]

config.log shows:

[..]
configure:4464: checking for sdl-config
configure:4482: found /usr/bin/sdl-config
configure:4495: result: /usr/bin/sdl-config
configure:4504: checking for SDL - version >= 0.11.0
configure:4601: gcc -o conftest -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT   conftest.c  -lSDL -lpthread >&5
In file included from /usr/include/SDL/SDL_stdinc.h:28,
                 from /usr/include/SDL/SDL_main.h:26,
                 from /usr/include/SDL/SDL.h:28,
                 from conftest.c:14:
/usr/include/SDL/SDL_config.h:1:3: error: invalid preprocessing
directive #Temporary
/usr/include/SDL/SDL_config.h:2:3: error: invalid preprocessing
directive #If
In file included from /usr/include/SDL/SDL_stdinc.h:28,
                 from /usr/include/SDL/SDL_main.h:26,
                 from /usr/include/SDL/SDL.h:28,
                 from conftest.c:14:
/usr/include/SDL/SDL_config.h:3: error: expected identifier or '('
before '[' token
In file included from /usr/include/SDL/SDL_main.h:26,
                 from /usr/include/SDL/SDL.h:28,
                 from conftest.c:14:
/usr/include/SDL/SDL_stdinc.h:83: warning: data definition has no type
or storage class
/usr/include/SDL/SDL_stdinc.h:83: warning: type defaults to 'int' in
declaration of 'SDL_bool'
/usr/include/SDL/SDL_stdinc.h:86: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'Uint8'
/usr/include/SDL/SDL_stdinc.h:88: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'Uint16'
/usr/include/SDL/SDL_stdinc.h:90: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'Uint32'
/usr/include/SDL/SDL_stdinc.h:100: error: expected
specifier-qualifier-list before 'Uint32'
/usr/include/SDL/SDL_stdinc.h:109: error: 'Uint8' undeclared here (not
in a function)
/usr/include/SDL/SDL_stdinc.h:111: error: 'Uint16' undeclared here (not
in a function)
/usr/include/SDL/SDL_stdinc.h:113: error: 'Uint32' undeclared here (not
in a function)
/usr/include/SDL/SDL_stdinc.h:115: error: size of array
'SDL_dummy_uint64' is negative
/usr/include/SDL/SDL_stdinc.h:116: error: size of array
'SDL_dummy_sint64' is negative
In file included from /usr/include/SDL/SDL_audio.h:30,
                 from /usr/include/SDL/SDL.h:30,
                 from conftest.c:14:
/usr/include/SDL/SDL_endian.h:65: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_Swap16'
/usr/include/SDL/SDL_endian.h:98: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_Swap32'
In file included from /usr/include/SDL/SDL_audio.h:31,
                 from /usr/include/SDL/SDL.h:30,
                 from conftest.c:14:
/usr/include/SDL/SDL_mutex.h:84: error: expected ')' before
'initial_value'
/usr/include/SDL/SDL_mutex.h:106: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_mutex.h:114: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_SemValue'
/usr/include/SDL/SDL_mutex.h:154: error: expected declaration specifiers
or '...' before 'Uint32'
In file included from /usr/include/SDL/SDL_audio.h:32,
                 from /usr/include/SDL/SDL.h:30,
                 from conftest.c:14:
/usr/include/SDL/SDL_thread.h:96: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_ThreadID'
/usr/include/SDL/SDL_thread.h:101: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_GetThreadID'
In file included from /usr/include/SDL/SDL_audio.h:33,
                 from /usr/include/SDL/SDL.h:30,
                 from conftest.c:14:
/usr/include/SDL/SDL_rwops.h:63: error: expected
specifier-qualifier-list before 'Uint32'
/usr/include/SDL/SDL_rwops.h:122: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_ReadLE16'
/usr/include/SDL/SDL_rwops.h:123: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_ReadBE16'
/usr/include/SDL/SDL_rwops.h:124: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_ReadLE32'
/usr/include/SDL/SDL_rwops.h:125: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_ReadBE32'
/usr/include/SDL/SDL_rwops.h:130: error: expected declaration specifiers
or '...' before 'Uint16'
/usr/include/SDL/SDL_rwops.h:131: error: expected declaration specifiers
or '...' before 'Uint16'
/usr/include/SDL/SDL_rwops.h:132: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_rwops.h:133: error: expected declaration specifiers
or '...' before 'Uint32'
In file included from /usr/include/SDL/SDL.h:30,
                 from conftest.c:14:
/usr/include/SDL/SDL_audio.h:44: error: expected
specifier-qualifier-list before 'Uint16'
/usr/include/SDL/SDL_audio.h:83: error: expected
specifier-qualifier-list before 'Uint16'
/usr/include/SDL/SDL_audio.h:190: error: expected declaration specifiers
or '...' before 'Uint8'
/usr/include/SDL/SDL_audio.h:190: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_audio.h:199: error: expected ')' before '*' token
/usr/include/SDL/SDL_audio.h:209: error: expected declaration specifiers
or '...' before 'Uint16'
/usr/include/SDL/SDL_audio.h:209: error: expected declaration specifiers
or '...' before 'Uint8'
/usr/include/SDL/SDL_audio.h:210: error: expected declaration specifiers
or '...' before 'Uint16'
/usr/include/SDL/SDL_audio.h:210: error: expected declaration specifiers
or '...' before 'Uint8'
/usr/include/SDL/SDL_audio.h:230: error: expected ')' before '*' token
In file included from /usr/include/SDL/SDL.h:31,
                 from conftest.c:14:
/usr/include/SDL/SDL_cdrom.h:62: error: expected
specifier-qualifier-list before 'Uint8'
In file included from /usr/include/SDL/SDL.h:32,
                 from conftest.c:14:
/usr/include/SDL/SDL_cpuinfo.h:39: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_HasRDTSC'
/usr/include/SDL/SDL_cpuinfo.h:43: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_HasMMX'
/usr/include/SDL/SDL_cpuinfo.h:47: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_HasMMXExt'
/usr/include/SDL/SDL_cpuinfo.h:51: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_Has3DNow'
/usr/include/SDL/SDL_cpuinfo.h:55: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_Has3DNowExt'
/usr/include/SDL/SDL_cpuinfo.h:59: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_HasSSE'
/usr/include/SDL/SDL_cpuinfo.h:63: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_HasSSE2'
/usr/include/SDL/SDL_cpuinfo.h:67: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_HasAltiVec'
In file included from /usr/include/SDL/SDL_events.h:30,
                 from /usr/include/SDL/SDL.h:35,
                 from conftest.c:14:
/usr/include/SDL/SDL_active.h:49: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_GetAppState'
In file included from /usr/include/SDL/SDL_events.h:31,
                 from /usr/include/SDL/SDL.h:35,
                 from conftest.c:14:
/usr/include/SDL/SDL_keyboard.h:55: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_keyboard.h:96: error: expected '=', ',', ';', 'asm'
or '__attribute__' before '*' token
In file included from /usr/include/SDL/SDL_mouse.h:30,
                 from /usr/include/SDL/SDL_events.h:32,
                 from /usr/include/SDL/SDL.h:35,
                 from conftest.c:14:
/usr/include/SDL/SDL_video.h:45: error: expected
specifier-qualifier-list before 'Uint16'
/usr/include/SDL/SDL_video.h:49: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_video.h:64: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_video.h:89: error: expected
specifier-qualifier-list before 'Uint32'
/usr/include/SDL/SDL_video.h:150: error: expected
specifier-qualifier-list before 'Uint32'
/usr/include/SDL/SDL_video.h:184: error: expected
specifier-qualifier-list before 'Uint32'
/usr/include/SDL/SDL_video.h:240: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:276: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:287: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:348: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:359: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:359: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:395: warning: type defaults to 'int' in
declaration of 'Uint16'
/usr/include/SDL/SDL_video.h:395: error: expected ';', ',' or ')' before
'*' token
/usr/include/SDL/SDL_video.h:406: error: expected ')' before '*' token
/usr/include/SDL/SDL_video.h:449: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_MapRGB'
/usr/include/SDL/SDL_video.h:456: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_MapRGBA'
/usr/include/SDL/SDL_video.h:463: error: expected ')' before 'pixel'
/usr/include/SDL/SDL_video.h:469: error: expected ')' before 'pixel'
/usr/include/SDL/SDL_video.h:508: error: expected ')' before 'flags'
/usr/include/SDL/SDL_video.h:512: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:512: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:512: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:512: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:569: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:569: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:586: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:586: error: expected declaration specifiers
or '...' before 'Uint8'
/usr/include/SDL/SDL_video.h:600: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_SetClipRect'
/usr/include/SDL/SDL_video.h:622: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:718: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:758: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:838: error: expected declaration specifiers
or '...' before 'Uint8'
In file included from /usr/include/SDL/SDL_events.h:32,
                 from /usr/include/SDL/SDL.h:35,
                 from conftest.c:14:
/usr/include/SDL/SDL_mouse.h:42: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_mouse.h:55: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'SDL_GetMouseState'
/usr/include/SDL/SDL_mouse.h:63: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'SDL_GetRelativeMouseState'
/usr/include/SDL/SDL_mouse.h:68: error: expected ')' before 'x'
/usr/include/SDL/SDL_mouse.h:84: error: expected ')' before '*' token
In file included from /usr/include/SDL/SDL_events.h:33,
                 from /usr/include/SDL/SDL.h:35,
                 from conftest.c:14:
/usr/include/SDL/SDL_joystick.h:140: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'SDL_JoystickGetHat'
/usr/include/SDL/SDL_joystick.h:153: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'SDL_JoystickGetButton'
In file included from /usr/include/SDL/SDL.h:35,
                 from conftest.c:14:
/usr/include/SDL/SDL_events.h:113: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:120: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:128: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:138: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:147: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:155: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:164: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:177: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:188: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:195: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:200: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:205: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:215: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:221: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:265: error: expected declaration
specifiers or '...' before 'Uint32'
/usr/include/SDL/SDL_events.h:328: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_EventState'
In file included from /usr/include/SDL/SDL.h:40,
                 from conftest.c:14:
/usr/include/SDL/SDL_timer.h:46: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'SDL_GetTicks'
/usr/include/SDL/SDL_timer.h:49: error: expected ')' before 'ms'
/usr/include/SDL/SDL_timer.h:52: error: expected declaration specifiers
or '...' before '*' token
/usr/include/SDL/SDL_timer.h:52: error: expected ')' before 'interval'
/usr/include/SDL/SDL_timer.h:82: error: expected ')' before 'interval'
/usr/include/SDL/SDL_timer.h:94: error: expected declaration specifiers
or '...' before '*' token
/usr/include/SDL/SDL_timer.h:94: error: expected ')' before 'interval'
/usr/include/SDL/SDL_timer.h:102: error: expected ')' before 'interval'
/usr/include/SDL/SDL_timer.h:107: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_RemoveTimer'
In file included from /usr/include/SDL/SDL.h:42,
                 from conftest.c:14:
/usr/include/SDL/SDL_version.h:43: error: expected
specifier-qualifier-list before 'Uint8'
In file included from conftest.c:14:
/usr/include/SDL/SDL.h:69: error: expected ')' before 'flags'
/usr/include/SDL/SDL.h:72: error: expected ')' before 'flags'
/usr/include/SDL/SDL.h:75: error: expected ')' before 'flags'
/usr/include/SDL/SDL.h:81: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'SDL_WasInit'
configure:4604: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "tecnoballz"
| #define PACKAGE_TARNAME "tecnoballz"
| #define PACKAGE_VERSION "0.91-cvs20050828"
| #define PACKAGE_STRING "tecnoballz 0.91-cvs20050828"
| #define PACKAGE_BUGREPORT "tecnoballz at tlk.fr"
| #define PACKAGE "tecnoballz"
| #define VERSION "0.91-cvs20050828"
| /* end confdefs.h.  */
| 
| #include <stdio.h>
| #include <stdlib.h>
| #include <string.h>
| #include "SDL.h"
| 
| char*
| my_strdup (char *str)
| {
|   char *new_str;
| 
|   if (str)
|     {
|       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
|       strcpy (new_str, str);
|     }
|   else
|     new_str = NULL;
| 
|   return new_str;
| }
| 
| int main (int argc, char *argv[])
| {
|   int major, minor, micro;
|   char *tmp_version;
| 
|   /* This hangs on some systems (?)
|   system ("touch conf.sdltest");
|   */
|   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
| 
|   /* HP/UX 9 (%@#!) writes to sscanf strings */
|   tmp_version = my_strdup("0.11.0");
|   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
|      printf("%s, bad version string\n", "0.11.0");
|      exit(1);
|    }
| 
|    if ((1 > major) ||
|       ((1 == major) && (2 > minor)) ||
|       ((1 == major) && (2 == minor) && (12 >= micro)))
|     {
|       return 0;
|     }
|   else
|     {
|       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the
minimum version\n", 1, 2, 12);
|       printf("*** of SDL required is %d.%d.%d. If sdl-config is
correct, then it is\n", major, minor, micro);
|       printf("*** best to upgrade to the required version.\n");
|       printf("*** If sdl-config was wrong, set the environment
variable SDL_CONFIG\n");
|       printf("*** to point to the correct copy of sdl-config, and
remove the file\n");
|       printf("*** config.cache before re-running configure\n");
|       return 1;
|     }
| }
| 
| 
configure:4638: result: no
configure:4682: gcc -o conftest -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT   conftest.c  -lSDL -lpthread >&5
In file included from /usr/include/SDL/SDL_stdinc.h:28,
                 from /usr/include/SDL/SDL_main.h:26,
                 from /usr/include/SDL/SDL.h:28,
                 from conftest.c:12:
/usr/include/SDL/SDL_config.h:1:3: error: invalid preprocessing
directive #Temporary
/usr/include/SDL/SDL_config.h:2:3: error: invalid preprocessing
directive #If
In file included from /usr/include/SDL/SDL_stdinc.h:28,
                 from /usr/include/SDL/SDL_main.h:26,
                 from /usr/include/SDL/SDL.h:28,
                 from conftest.c:12:
/usr/include/SDL/SDL_config.h:3: error: expected identifier or '('
before '[' token
In file included from /usr/include/SDL/SDL_main.h:26,
                 from /usr/include/SDL/SDL.h:28,
                 from conftest.c:12:
/usr/include/SDL/SDL_stdinc.h:83: warning: data definition has no type
or storage class
/usr/include/SDL/SDL_stdinc.h:83: warning: type defaults to 'int' in
declaration of 'SDL_bool'
/usr/include/SDL/SDL_stdinc.h:85: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'Sint8'
/usr/include/SDL/SDL_stdinc.h:86: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'Uint8'
/usr/include/SDL/SDL_stdinc.h:87: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'Sint16'
/usr/include/SDL/SDL_stdinc.h:88: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'Uint16'
/usr/include/SDL/SDL_stdinc.h:89: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'Sint32'
/usr/include/SDL/SDL_stdinc.h:90: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'Uint32'
/usr/include/SDL/SDL_stdinc.h:100: error: expected
specifier-qualifier-list before 'Uint32'
/usr/include/SDL/SDL_stdinc.h:109: error: 'Uint8' undeclared here (not
in a function)
/usr/include/SDL/SDL_stdinc.h:110: error: 'Sint8' undeclared here (not
in a function)
/usr/include/SDL/SDL_stdinc.h:111: error: 'Uint16' undeclared here (not
in a function)
/usr/include/SDL/SDL_stdinc.h:112: error: 'Sint16' undeclared here (not
in a function)
/usr/include/SDL/SDL_stdinc.h:113: error: 'Uint32' undeclared here (not
in a function)
/usr/include/SDL/SDL_stdinc.h:114: error: 'Sint32' undeclared here (not
in a function)
/usr/include/SDL/SDL_stdinc.h:115: error: size of array
'SDL_dummy_uint64' is negative
/usr/include/SDL/SDL_stdinc.h:116: error: size of array
'SDL_dummy_sint64' is negative
In file included from /usr/include/SDL/SDL_audio.h:30,
                 from /usr/include/SDL/SDL.h:30,
                 from conftest.c:12:
/usr/include/SDL/SDL_endian.h:65: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_Swap16'
/usr/include/SDL/SDL_endian.h:98: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_Swap32'
In file included from /usr/include/SDL/SDL_audio.h:31,
                 from /usr/include/SDL/SDL.h:30,
                 from conftest.c:12:
/usr/include/SDL/SDL_mutex.h:84: error: expected ')' before
'initial_value'
/usr/include/SDL/SDL_mutex.h:106: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_mutex.h:114: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_SemValue'
/usr/include/SDL/SDL_mutex.h:154: error: expected declaration specifiers
or '...' before 'Uint32'
In file included from /usr/include/SDL/SDL_audio.h:32,
                 from /usr/include/SDL/SDL.h:30,
                 from conftest.c:12:
/usr/include/SDL/SDL_thread.h:96: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_ThreadID'
/usr/include/SDL/SDL_thread.h:101: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_GetThreadID'
In file included from /usr/include/SDL/SDL_audio.h:33,
                 from /usr/include/SDL/SDL.h:30,
                 from conftest.c:12:
/usr/include/SDL/SDL_rwops.h:63: error: expected
specifier-qualifier-list before 'Uint32'
/usr/include/SDL/SDL_rwops.h:122: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_ReadLE16'
/usr/include/SDL/SDL_rwops.h:123: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_ReadBE16'
/usr/include/SDL/SDL_rwops.h:124: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_ReadLE32'
/usr/include/SDL/SDL_rwops.h:125: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_ReadBE32'
/usr/include/SDL/SDL_rwops.h:130: error: expected declaration specifiers
or '...' before 'Uint16'
/usr/include/SDL/SDL_rwops.h:131: error: expected declaration specifiers
or '...' before 'Uint16'
/usr/include/SDL/SDL_rwops.h:132: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_rwops.h:133: error: expected declaration specifiers
or '...' before 'Uint32'
In file included from /usr/include/SDL/SDL.h:30,
                 from conftest.c:12:
/usr/include/SDL/SDL_audio.h:44: error: expected
specifier-qualifier-list before 'Uint16'
/usr/include/SDL/SDL_audio.h:83: error: expected
specifier-qualifier-list before 'Uint16'
/usr/include/SDL/SDL_audio.h:190: error: expected declaration specifiers
or '...' before 'Uint8'
/usr/include/SDL/SDL_audio.h:190: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_audio.h:199: error: expected ')' before '*' token
/usr/include/SDL/SDL_audio.h:209: error: expected declaration specifiers
or '...' before 'Uint16'
/usr/include/SDL/SDL_audio.h:209: error: expected declaration specifiers
or '...' before 'Uint8'
/usr/include/SDL/SDL_audio.h:210: error: expected declaration specifiers
or '...' before 'Uint16'
/usr/include/SDL/SDL_audio.h:210: error: expected declaration specifiers
or '...' before 'Uint8'
/usr/include/SDL/SDL_audio.h:230: error: expected ')' before '*' token
In file included from /usr/include/SDL/SDL.h:31,
                 from conftest.c:12:
/usr/include/SDL/SDL_cdrom.h:62: error: expected
specifier-qualifier-list before 'Uint8'
In file included from /usr/include/SDL/SDL.h:32,
                 from conftest.c:12:
/usr/include/SDL/SDL_cpuinfo.h:39: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_HasRDTSC'
/usr/include/SDL/SDL_cpuinfo.h:43: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_HasMMX'
/usr/include/SDL/SDL_cpuinfo.h:47: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_HasMMXExt'
/usr/include/SDL/SDL_cpuinfo.h:51: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_Has3DNow'
/usr/include/SDL/SDL_cpuinfo.h:55: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_Has3DNowExt'
/usr/include/SDL/SDL_cpuinfo.h:59: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_HasSSE'
/usr/include/SDL/SDL_cpuinfo.h:63: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_HasSSE2'
/usr/include/SDL/SDL_cpuinfo.h:67: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_HasAltiVec'
In file included from /usr/include/SDL/SDL_events.h:30,
                 from /usr/include/SDL/SDL.h:35,
                 from conftest.c:12:
/usr/include/SDL/SDL_active.h:49: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_GetAppState'
In file included from /usr/include/SDL/SDL_events.h:31,
                 from /usr/include/SDL/SDL.h:35,
                 from conftest.c:12:
/usr/include/SDL/SDL_keyboard.h:55: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_keyboard.h:96: error: expected '=', ',', ';', 'asm'
or '__attribute__' before '*' token
In file included from /usr/include/SDL/SDL_mouse.h:30,
                 from /usr/include/SDL/SDL_events.h:32,
                 from /usr/include/SDL/SDL.h:35,
                 from conftest.c:12:
/usr/include/SDL/SDL_video.h:44: error: expected
specifier-qualifier-list before 'Sint16'
/usr/include/SDL/SDL_video.h:49: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_video.h:64: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_video.h:89: error: expected
specifier-qualifier-list before 'Uint32'
/usr/include/SDL/SDL_video.h:150: error: expected
specifier-qualifier-list before 'Uint32'
/usr/include/SDL/SDL_video.h:184: error: expected
specifier-qualifier-list before 'Uint32'
/usr/include/SDL/SDL_video.h:240: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:276: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:287: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:348: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:359: error: expected declaration specifiers
or '...' before 'Sint32'
/usr/include/SDL/SDL_video.h:359: error: expected declaration specifiers
or '...' before 'Sint32'
/usr/include/SDL/SDL_video.h:359: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:359: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:395: warning: type defaults to 'int' in
declaration of 'Uint16'
/usr/include/SDL/SDL_video.h:395: error: expected ';', ',' or ')' before
'*' token
/usr/include/SDL/SDL_video.h:406: error: expected ')' before '*' token
/usr/include/SDL/SDL_video.h:449: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_MapRGB'
/usr/include/SDL/SDL_video.h:456: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_MapRGBA'
/usr/include/SDL/SDL_video.h:463: error: expected ')' before 'pixel'
/usr/include/SDL/SDL_video.h:469: error: expected ')' before 'pixel'
/usr/include/SDL/SDL_video.h:508: error: expected ')' before 'flags'
/usr/include/SDL/SDL_video.h:512: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:512: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:512: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:512: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:569: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:569: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:586: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:586: error: expected declaration specifiers
or '...' before 'Uint8'
/usr/include/SDL/SDL_video.h:600: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_SetClipRect'
/usr/include/SDL/SDL_video.h:622: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:718: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:758: error: expected declaration specifiers
or '...' before 'Uint32'
/usr/include/SDL/SDL_video.h:838: error: expected declaration specifiers
or '...' before 'Uint8'
In file included from /usr/include/SDL/SDL_events.h:32,
                 from /usr/include/SDL/SDL.h:35,
                 from conftest.c:12:
/usr/include/SDL/SDL_mouse.h:41: error: expected
specifier-qualifier-list before 'Sint16'
/usr/include/SDL/SDL_mouse.h:55: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'SDL_GetMouseState'
/usr/include/SDL/SDL_mouse.h:63: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'SDL_GetRelativeMouseState'
/usr/include/SDL/SDL_mouse.h:68: error: expected ')' before 'x'
/usr/include/SDL/SDL_mouse.h:84: error: expected ')' before '*' token
In file included from /usr/include/SDL/SDL_events.h:33,
                 from /usr/include/SDL/SDL.h:35,
                 from conftest.c:12:
/usr/include/SDL/SDL_joystick.h:122: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'SDL_JoystickGetAxis'
/usr/include/SDL/SDL_joystick.h:140: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'SDL_JoystickGetHat'
/usr/include/SDL/SDL_joystick.h:153: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'SDL_JoystickGetButton'
In file included from /usr/include/SDL/SDL.h:35,
                 from conftest.c:12:
/usr/include/SDL/SDL_events.h:113: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:120: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:128: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:138: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:147: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:155: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:164: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:177: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:188: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:195: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:200: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:205: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:215: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:221: error: expected
specifier-qualifier-list before 'Uint8'
/usr/include/SDL/SDL_events.h:265: error: expected declaration
specifiers or '...' before 'Uint32'
/usr/include/SDL/SDL_events.h:328: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_EventState'
In file included from /usr/include/SDL/SDL.h:40,
                 from conftest.c:12:
/usr/include/SDL/SDL_timer.h:46: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'SDL_GetTicks'
/usr/include/SDL/SDL_timer.h:49: error: expected ')' before 'ms'
/usr/include/SDL/SDL_timer.h:52: error: expected declaration specifiers
or '...' before '*' token
/usr/include/SDL/SDL_timer.h:52: error: expected ')' before 'interval'
/usr/include/SDL/SDL_timer.h:82: error: expected ')' before 'interval'
/usr/include/SDL/SDL_timer.h:94: error: expected declaration specifiers
or '...' before '*' token
/usr/include/SDL/SDL_timer.h:94: error: expected ')' before 'interval'
/usr/include/SDL/SDL_timer.h:102: error: expected ')' before 'interval'
/usr/include/SDL/SDL_timer.h:107: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'SDL_RemoveTimer'
In file included from /usr/include/SDL/SDL.h:42,
                 from conftest.c:12:
/usr/include/SDL/SDL_version.h:43: error: expected
specifier-qualifier-list before 'Uint8'
In file included from conftest.c:12:
/usr/include/SDL/SDL.h:69: error: expected ')' before 'flags'
/usr/include/SDL/SDL.h:72: error: expected ')' before 'flags'
/usr/include/SDL/SDL.h:75: error: expected ')' before 'flags'
/usr/include/SDL/SDL.h:81: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'SDL_WasInit'
[..]

The same happens building in mock for F-8/i386. I have no problem with
mock for devel/i386.

Help appreciated.

Thanks.

Bye,

Andrea.





More information about the fedora-devel-list mailing list