Newsgroup: it.comp.os.linux.development
Titolo: problema di compilazione

ciao a tutti,
ho questo errore di compilazione e sono 2 giorni che non ne vengo a capo,
potrebbe essere un problema di compilatore e non del mio programma?
intanto
 gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.4/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.4 (Debian)
 make core
cc -g    -c -o core.o core.c
In file included from /usr/include/bits/types.h:31,
                 from /usr/include/sys/types.h:31,
                 from core.c:4:
/usr/lib/gcc-lib/i486-linux/3.3.4/include/stddef.h: In function `start_uml':
/usr/lib/gcc-lib/i486-linux/3.3.4/include/stddef.h:213: error: storage class specified for parameter `size_t'
In file included from /usr/include/sys/types.h:31,
                 from core.c:4:
/usr/include/bits/types.h:34: error: storage class specified for parameter `__u_char'
/usr/include/bits/types.h:35: error: storage class specified for parameter `__u_short'
/usr/include/bits/types.h:36: error: storage class specified for parameter `__u_int'
/usr/include/bits/types.h:37: error: storage class specified for parameter `__u_long'
/usr/include/bits/types.h:40: error: storage class specified for parameter `__int8_t'
/usr/include/bits/types.h:41: error: storage class specified for parameter `__uint8_t'
/usr/include/bits/types.h:42: error: storage class specified for parameter `__int16_t'
/usr/include/bits/types.h:43: error: storage class specified for parameter `__uint16_t'
/usr/include/bits/types.h:44: error: storage class specified for parameter `__int32_t'
/usr/include/bits/types.h:45: error: storage class specified for parameter `__uint32_t'
/usr/include/bits/types.h:50: error: parse error before "__extension__"
/usr/lib/gcc-lib/i486-linux/3.3.4/include/stddef.h:213: error: parm types given both in parmlist and separately
In file included from /usr/include/sys/types.h:31,
                 from core.c:4:
/usr/include/bits/types.h: At top level:
/usr/include/bits/types.h:186: error: parse error before "__loff_t"
/usr/include/bits/types.h:187: error: parse error before '*' token
In file included from core.c:4:
/usr/include/sys/types.h:35: error: parse error before "u_char"
/usr/include/sys/types.h:36: error: parse error before "u_short"
/usr/include/sys/types.h:37: error: parse error before "u_int"
/usr/include/sys/types.h:38: error: parse error before "u_long"
/usr/include/sys/types.h:39: error: parse error before "quad_t"
/usr/include/sys/types.h:40: error: parse error before "u_quad_t"
/usr/include/sys/types.h:41: error: parse error before "fsid_t"
/usr/include/sys/types.h:46: error: parse error before "loff_t"
/usr/include/sys/types.h:50: error: parse error before "ino_t"
/usr/include/sys/types.h:62: error: parse error before "dev_t"
/usr/include/sys/types.h:67: error: parse error before "gid_t"
/usr/include/sys/types.h:72: error: parse error before "mode_t"
/usr/include/sys/types.h:77: error: parse error before "nlink_t"
/usr/include/sys/types.h:82: error: parse error before "uid_t"
/usr/include/sys/types.h:88: error: parse error before "off_t"
/usr/include/sys/types.h:100: error: parse error before "pid_t"
In file included from /usr/include/sys/types.h:266,
                 from core.c:4:
/usr/include/bits/pthreadtypes.h:50: error: parse error before "size_t"
...continua
grazie

 potrebbe essere un problema di compilatore e non del mio programma?
potrebbe essere un problema di ordine di inclusione dei file di header.
Potrebbe anche essere un problema di mescolamento dei file .h della libc e
del kernel, ma non mi sembra che sia il caso.
Prova a modificare l'ordine degli include.