Subject: Re: __used__ prevents vax GENERIC from building
To: Kirk Russell <firstname.lastname@example.org>
From: Christos Zoulas <email@example.com>
Date: 05/25/2006 18:05:41
On May 25, 5:29pm, firstname.lastname@example.org (Kirk Russell) wrote:
-- Subject: Re: __used__ prevents vax GENERIC from building
| On Wed, 24 May 2006, Christos Zoulas wrote:
| > In article <Pine.NEB.email@example.com>,
| > Kirk Russell <firstname.lastname@example.org> wrote:
| > >Hello,
| > >
| > >I cannot build current (HEAD/200605220000Z) for the vax port.
| > >The host is i386 NetBSD 3.0.
| > >cc1: warnings being treated as errors
| > >In file included from param.c:72:
| > >config_file.h:20: warning: `__used__' attribute directive ignored
| > Fixed, cvs update and rebuild config.
| Still doesn't appear to build for me. I tried "#ifdef __vax__" instead
| and it appears to build -- just a WAG. Thanks!
| I think I have the config fix:
| $ ident usr.bin/config/main.c
| $NetBSD: main.c,v 1.11 2006/05/24 23:16:50 christos Exp $
| And here is what config_file.h looks like:
| 20 static const char config
| 21 #ifdef vax
| 22 __attribute__((__unused__))
| 23 #else
| 24 __attribute__((__used__))
| 25 #endif
| 26 =
| 28 #ifdef INCLUDE_CONFIG_FILE
| And the error:
| cc1: warnings being treated as errors
| In file included from param.c:72:
| config_file.h:26: warning: `__used__' attribute directive ignored
Okay, I will make it __vax__ then...