[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gettext 0.14.1 fails to build on HP-UX with HP C compiler
From: |
Albert Chin-A-Young |
Subject: |
Re: gettext 0.14.1 fails to build on HP-UX with HP C compiler |
Date: |
Wed, 26 May 2004 05:05:36 -0500 |
User-agent: |
Mutt/1.5.6i |
On Wed, May 26, 2004 at 12:28:50AM -0700, Paul Eggert wrote:
> address@hidden (Albert Chin-A-Young) writes:
>
> > HP's C compiler doesn't like reusing an enum constant while defining
> > the enum. The solution seems to be changing sa_alignment_<type> to
> > sa_alignof (<type>).
>
> Can't you just break the enum in half? E.g., instead of this:
>
> enum { foo = 100, bar = 200, baz = foo | bar };
>
> do this:
>
> enum { foo = 100, bar = 200 };
> enum { baz = foo + bar };
No, this fails the same way. BTW, after making the ugly change, we get
setenv.c to build but run into a fatal compiler bug building
canonicalize.c. I created a small test case and will report it to the
HP developers. I'm going to import the canonicalize.c from coreutils
CVS to try and workaround this.
--
albert chin (address@hidden)