Subject: Re: __used__ prevents vax GENERIC from building
To: Christos Zoulas <christos@astron.com>
From: Kirk Russell <kirk@ba23.org>
List: current-users
Date: 05/25/2006 17:29:43
On Wed, 24 May 2006, Christos Zoulas wrote:

> In article <Pine.NEB.4.44.0605241704380.17260-100000@greyhawk.on.kr>,
> Kirk Russell  <kirk@ba23.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
    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     =
     27
     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

-- 
Kirk Russell            <kirk@ba23.org>            http://www.ba23.org/
Bridlewood Software Testers Guild                  Ottawa Ontario Canada