[Pluto-devel] problema con linux/sched.h

mydecay smarchetto@inwind.it
Fri, 28 Jun 2002 18:53:02 +0200


Hola!

come prima cosa volevo salutare tutta la lista dato che e' la prima volta che 
posto.... :)

Ho dei problemi quando in un sorgente C includo linux/sched.h in quanto mi da 
degli errori. Non sono errori proprio di sched.h ma dei suoi include. L'ho 
provato sulla mia SuSE 7.1 e sulla mia debian potato 2.2r5. Inoltre su 
un'altra debian appena installata. Evidentemente sbaglio qualcosa io. Inoltre 
se includo solo sched.h mi da solo 2 errori se includo anche stdio.h gli 
errori aumentato... aiutatemi voi... 

allego gli errori in modo che possiate capire

SOLO SCHED.H:

In file included from /usr/include/linux/sched.h:14,
                 from prov.c:6:
/usr/include/linux/timex.h:173: field `time' has incomplete type
In file included from /usr/include/linux/sched.h:82,
                 from prov.c:6:
/usr/include/linux/timer.h:17: field `list' has incomplete type   

ANCHE STDIO.H:

In file included from /usr/include/linux/sched.h:14,
                 from prov.c:6:
/usr/include/linux/timex.h:173: field `time' has incomplete type
In file included from /usr/include/linux/sched.h:82,
                 from prov.c:6:
/usr/include/linux/timer.h:17: field `list' has incomplete type
mav@SeXmAcHiNe:~/sorgenti > vi proc.c
mav@SeXmAcHiNe:~/sorgenti > vi prov.c
mav@SeXmAcHiNe:~/sorgenti > gcc prov.c -o prov
In file included from /usr/include/linux/sched.h:13,
                 from prov.c:6:
/usr/include/linux/times.h:5: parse error before "clock_t"
/usr/include/linux/times.h:7: parse error before "tms_cutime"
/usr/include/linux/times.h:8: parse error before "tms_cstime"
In file included from /usr/include/linux/sched.h:14,
                 from prov.c:6:
/usr/include/linux/timex.h:173: field `time' has incomplete type
In file included from /usr/include/linux/signal.h:5,
                 from /usr/include/linux/sched.h:26,
                 from prov.c:6:
/usr/include/asm/siginfo.h:26: parse error before "pid_t"
/usr/include/asm/siginfo.h:38: parse error before "pid_t"
/usr/include/asm/siginfo.h:41: parse error before '}' token
/usr/include/asm/siginfo.h:45: parse error before "pid_t"
/usr/include/asm/siginfo.h:48: parse error before "_utime"
/usr/include/asm/siginfo.h:49: parse error before "_stime"
/usr/include/asm/siginfo.h:62: parse error before '}' token
/usr/include/asm/siginfo.h:63: parse error before '}' token
In file included from /usr/include/linux/sched.h:79,
                 from prov.c:6:
/usr/include/linux/time.h:10: parse error before "time_t"
/usr/include/linux/time.h:12: parse error before '}' token
/usr/include/linux/time.h:89: parse error before "time_t"
/usr/include/linux/time.h:120: field `it_interval' has incomplete type
/usr/include/linux/time.h:121: field `it_value' has incomplete type
/usr/include/linux/time.h:125: field `it_interval' has incomplete type
/usr/include/linux/time.h:126: field `it_value' has incomplete type
In file included from /usr/include/linux/sched.h:81,
                 from prov.c:6:
/usr/include/linux/resource.h:22: field `ru_utime' has incomplete type
/usr/include/linux/resource.h:23: field `ru_stime' has incomplete type
In file included from /usr/include/linux/sched.h:82,
                 from prov.c:6:
/usr/include/linux/timer.h:17: field `list' has incomplete type    


grazie ciao