Subject: Re: gcc4 / unused trouble?
To: None <current-users@netbsd.org>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: current-users
Date: 10/19/2006 14:55:57
On Thu, Oct 19, 2006 at 12:56:19PM +0100, Patrick Welche wrote:
> On Sun, Oct 15, 2006 at 10:28:00PM +0100, Patrick Welche wrote:
> > With cvs from this afternoon:
> > 
> > ../../../../arch/i386/i386/compat_13_machdep.c: In function 'compat_13_sys_sigreturn':
> > ../../../../arch/i386/i386/compat_13_machdep.c:68: error: storage size of 'context' isn't known
> > ../../../../arch/i386/i386/compat_13_machdep.c:78: error: dereferencing pointer to incomplete type
> > cc1: warnings being treated as errors
> > ../../../../arch/i386/i386/compat_13_machdep.c:68: warning: unused variable 'context'
> 
> It's more entertaining than that: the kernel config has
> 
> options         COMPAT_15       # NetBSD 1.5
> options         COMPAT_16       # NetBSD 1.6
> options         COMPAT_20       # NetBSD 2.0
> options         COMPAT_30       # NetBSD 3.0
> 
> not _13, so I wonder why compat_13_machdep.c is found by make depend..
> 
> (As COMPAT_13 is not defined, machine/signal.h doesn't define sigcontext13 =>
> get error)

Found it: in the kernel config file COMPAT_AOUT is defined and not COMPAT_13.

What is the best solution? define COMPAT_13 ifdef COMPAT_AOUT ?

Cheers,

Patrick