Subject: Re: current kernel build fails in machdep.c and in/compat/linux/arch/powerpc/linux_machdep.c
To: Samuel.Hornus <>
From: Andrew Cagney <>
List: port-macppc
Date: 06/12/2001 12:08:33
> cc  -O2 -pipe -Werror -Wall -Wpointer-arith -Wmissing-prototypes
> -Wno-uninitialized -Wno-main -msoft-float -I. -I../../../../arch
> -D_KERNEL -D_KERNEL_OPT -Dmacppc  -c
> ../../../../compat/linux/arch/powerpc/linux_machdep.c
> cc1: warnings being treated as errors
> ../../../../compat/linux/arch/powerpc/linux_machdep.c: In function
> `linux_sendsig':
> ../../../../compat/linux/arch/powerpc/linux_machdep.c:196: warning:
> implicit declaration of function `save_fpu'

Add #include <machine/fpu.h>

> ../../../../compat/linux/arch/powerpc/linux_machdep.c: At top level:
> ../../../../compat/linux/arch/powerpc/linux_machdep.c:448: warning: no
> previous prototype for `linux_sys_modify_ldt'
> ../../../../compat/linux/arch/powerpc/linux_machdep.c:509: warning: no
> previous prototype for `linux_sys_iopl'

Commenting these out worked for me.

There was also a -Werror after this but similarly easy to tweek.

> *** Error code 1
> Stop.
> Perhaps some work for Emmanuel ?

Well, someone, its been there for a while.