[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gettext
From: |
Bruno Haible |
Subject: |
Re: gettext |
Date: |
Fri, 1 Oct 2004 22:06:03 +0200 |
User-agent: |
KMail/1.5 |
Cary Farah wrote:
> I have hp-ux 11.11
> trying to make the gettext and i get errors:
> Making all in lib
> cc -DDEPENDS_ON_LIBINTL=1 -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.
> -I.. -
> I../intl -I./../intl -I../../gettext-tools/lib
> -I./../../gettext-tools/lib -
> g -c setenv.c
> cc: "../../gettext-tools/lib/allocsa.h", line 96: error 1509:
> Enumeration value
> must be constant.
Thanks for the report.
It's a HP-UX cc bug; you can use the appended patch as workaround.
Btw, please don't use the ~gnu ~ at ~ gnu ~.~ org~ mail address for bug
reports; this address is for enquiries about the GNU project as a whole.
~ bug-gnu-gettext ~ at ~ gnu ~.~ org~ is the right one: this is the
one mentioned in the --help output and in the manual.
Bruno
*** gettext-tools/lib/allocsa.h 19 Dec 2003 11:25:19 -0000 1.1
--- gettext-tools/lib/allocsa.h 6 Feb 2004 21:09:50 -0000 1.2
***************
*** 1,5 ****
/* Safe automatic memory allocation.
! Copyright (C) 2003 Free Software Foundation, Inc.
Written by Bruno Haible <address@hidden>, 2003.
This program is free software; you can redistribute it and/or modify
--- 1,5 ----
/* Safe automatic memory allocation.
! Copyright (C) 2003-2004 Free Software Foundation, Inc.
Written by Bruno Haible <address@hidden>, 2003.
This program is free software; you can redistribute it and/or modify
***************
*** 77,82 ****
--- 77,86 ----
#elif defined __cplusplus
template <class type> struct sa_alignof_helper { char __slot1; type
__slot2; };
# define sa_alignof(type) offsetof (sa_alignof_helper<type>, __slot2)
+ #elif defined __hpux
+ /* Work around a HP-UX 10.20 cc bug with enums constants defined as offsetof
+ values. */
+ # define sa_alignof(type) (sizeof (type) <= 4 ? 4 : 8)
#else
# define sa_alignof(type) offsetof (struct { char __slot1; type __slot2; },
__slot2)
#endif
- gettext, Cary Farah, 2004/10/02
- Re: gettext,
Bruno Haible <=