Subject: Problem compiling current kernel
To: None <,>
From: Xavier HUMBERT <>
List: current-users
Date: 03/02/2001 16:29:13
I have a problem compiling current kernel an a MacPPC :

> cc -O2 -pipe -Werror -Wreturn-type -Wpointer-arith -Wno-uninitialized
>-Wno-main -msoft-float -I. -I../../../../arch -I../../../.. -nostdinc
>-DMAXUSERS=32 -D_KERNEL -Dmacppc -c param.c
> cc1: warnings being treated as errors
> In file included from param.c:52:
> ../../../../sys/proc.h:429: warning: useless keyword or type name in
>empty declaration
> ../../../../sys/proc.h:429: warning: empty declaration

I tracked it to a the /usr/src/sys/sys/proc.h header, in which these
declarations :m

void	cpu_switch(struct proc *);
void	cpu_wait(struct proc *);
void	cpu_exit(struct proc *);

are precompiled as :

void	cpu_switch(struct proc *);
void	;
void	cpu_exit(struct proc *);

Any idea ?


Xavier HUMBERT  -  Systemes et Reseaux     |
INJEP                                      |