On Fri, Jan 11, 2008 at 12:56:04AM +0100, Bruno Haible wrote: > Sylvain Beucler wrote: > > Afaics Gnulib's string.h will define __attribute__ to be empty: > > > > #ifndef __attribute__ > > /* This feature is available in gcc versions 2.5 and later. */ > > # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || > > __STRICT_ANSI__ > > # define __attribute__(Spec) /* empty */ > > # endif > > Which version of gcc are you using, and with which CFLAGS and CPPFLAGS? > > Bruno >
Here's the version: $ gcc --version gcc (GCC) 4.2.3 20071123 (prerelease) (Debian 4.2.2-4) Here's how the test is compiled: freedink/native/src$ LANG=C make test.o if gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -DDEFAULT_DATA_DIR=\"/usr/local/share\" -I../../gnulib/lib -I../gnulib/lib -DINSTALLDIR=\"/usr/local/bin\" -g -O2 -Wall -std=c99 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT test.o -MD -MP -MF ".deps/test.Tpo" -c -o test.o ../../src/test.c; \ then mv -f ".deps/test.Tpo" ".deps/test.Po"; else rm -f ".deps/test.Tpo"; exit 1; fi In file included from /usr/include/SDL/SDL_main.h:26, from /usr/include/SDL/SDL.h:28, from ../../src/test.c:2: /usr/include/SDL/SDL_stdinc.h:108: error: size of array 'SDL_dummy_sint8' is negative /usr/include/SDL/SDL_stdinc.h:110: error: size of array 'SDL_dummy_sint16' is negative /usr/include/SDL/SDL_stdinc.h:114: error: size of array 'SDL_dummy_sint64' is negative make: *** [test.o] Error 1 -- Sylvain