Paul, This is the same problem I ran into a few days ago on several platforms, and you helped me come up with this patch: <http://lists.gnu.org/archive/html/bug-gnulib/2005-09/msg00234.html>. The patch in that message also removes a little cruft and handles a similar problem in a later GCC with always_inline, by ignoring __attribute__ for GCC < 3.1.
Regards, Derek Paul Eggert wrote: >I installed the following to work around a build failure of coreutils >CVS on OpenBSD 3.4. (For now I have resisted the temptation to enable >__attribute__ only for GCC 4.0 and later. :-) > >2005-09-24 Paul Eggert <[EMAIL PROTECTED]> > > * regex_internal.h (__attribute): Define to nothing for GCC 2. > This works around a core dump on OpenBSD 3.4, which has GCC > 2.95.3, which dumps core when given __attribute__(()). > >--- lib/regex_internal.h 23 Sep 2005 04:15:13 -0000 1.17 >+++ lib/regex_internal.h 24 Sep 2005 23:01:17 -0000 1.18 >@@ -131,7 +131,7 @@ > # define attribute_hidden > #endif /* not _LIBC */ > >-#ifdef __GNUC__ >+#if __GNUC__ >= 3 > # define __attribute(arg) __attribute__ (arg) > #else > # define __attribute(arg) > > >_______________________________________________ >bug-gnulib mailing list >bug-gnulib@gnu.org >http://lists.gnu.org/mailman/listinfo/bug-gnulib > > -- Derek R. Price CVS Solutions Architect Ximbiot <http://ximbiot.com> v: +1 717.579.6168 f: +1 717.234.3125 <mailto:[EMAIL PROTECTED]> _______________________________________________ bug-gnulib mailing list bug-gnulib@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnulib