Subject: Problem compiling current kernel
To: None <port-macppc@netbsd.org, current-users@netbsd.org>
From: Xavier HUMBERT <xavier@xavhome.fr.eu.org>
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
>-DOPENPIC -DLKM -DDIAGNOSTIC -DTRAP_PANICWAIT -DNMBCLUSTERS="0x400"
>-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 ?

Thanks

-- 
Xavier HUMBERT  -  Systemes et Reseaux     |     labo-info@injep.fr
INJEP                                      |     humbert@injep.fr