Hi Constantine, You can check for some "subtle" syntax errors in your code. May be if you can send meaningful snippets, then we can have a look. The reason for suspecing user code is because cpu_idle(), task_lock(), and task_unlock(), and rpc_accept_stat are provided by linux and is being used by many other people. BTW, I am assuming that you are writing kernel code, possibly a kernel module. If you are sending code snippets then please also send the compilation string that you are using. Regards, Amit --- Constantine Kousoulos <wuwei@xxxxxxxxxxx> wrote: > Hello, > > I'm using gcc 4 and i've been getting some "strange" error > messages that > i can't interpret. > > a) expression 'extern void cpu_idle(void);' produces the > following error > > error: expected expression before 'void' > error: expected ')' before '->' token > error: expected ')' before '==' token > > b) > 1 static inline void task_lock(struct task_struct *p) > 2{ > 3 spin_lock(&p->alloc_lock); > 4} > > 5 static inline void task_unlock(struct task_struct *p) > 6{ > 7 spin_unlock(&p->alloc_lock); > 8} > > the following error messages appear: > 2: error: expected identifier or '(' before '{' token > 6: error: expected identifier or '(' before '{' token > > c) > 1 enum rpc_accept_stat { > 2 RPC_SUCCESS = 0, > 3 RPC_PROG_UNAVAIL = 1, > 4 RPC_PROG_MISMATCH = 2, > 5 RPC_PROC_UNAVAIL = 3, > 6 RPC_GARBAGE_ARGS = 4, > 7 RPC_SYSTEM_ERR = 5 > 8}; > > 2: error: expected identifier before numeric constant > > > Does anyone have insight on what might be going wrong? > > > > > > > > > > > ____________________________________________________________________ > http://www.freemail.gr - äùñåÜí õðçñåóßá çëåêôñïíéêïý > ôá÷õäñïìåßïõ. > http://www.freemail.gr - free email service for the > Greek-speaking. > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com