Subject: Re: gcc4 / unused trouble?
To: Patrick Welche <>
From: Patrick Welche <>
List: current-users
Date: 10/19/2006 12:56:19
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)

Thoughts on where to look?