[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] wcwidth on OSF/1
From: |
Bruno Haible |
Subject: |
Re: [bug-gnulib] wcwidth on OSF/1 |
Date: |
Fri, 11 Aug 2006 15:06:46 +0200 |
User-agent: |
KMail/1.9.1 |
Albert Chin wrote:
> > > cc: Error: /usr/include.dtk/wchar.h, line 87: Ill-formed parameter type
> > > list. (parmtyplist)
> > > __VA_LIST__ __arg);
> > > ----------------^
> > > configure:14834: $? = 1
>
> The fix is to #include <stdio.h> before <wchar.h>.
Confirmed. Thanks, Albert! I wasn't aware that this was the same bug
that we work around in so many other places.
I'm adding the fix below to gnulib. No need any more for -I/usr/include
or option -nodtk.
2006-08-11 Bruno Haible <address@hidden>
* wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h> before
<wchar.h>. Needed for OSF/1 and BSD/OS.
*** wcwidth.m4 31 Jul 2006 14:42:54 -0000 1.4
--- wcwidth.m4 11 Aug 2006 13:07:00 -0000
***************
*** 1,4 ****
! # wcwidth.m4 serial 4
dnl Copyright (C) 2006 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
--- 1,4 ----
! # wcwidth.m4 serial 5
dnl Copyright (C) 2006 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
***************
*** 19,24 ****
--- 19,30 ----
/* AIX 3.2.5 declares wcwidth in <string.h>. */
#include <string.h>
#if HAVE_WCHAR_H
+ /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
+ <wchar.h>.
+ BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
+ <wchar.h>. */
+ # include <stdio.h>
+ # include <time.h>
# include <wchar.h>
#endif
])])
- Re: CC=cc ./configure or ./configure CC=cc, (continued)
- Re: CC=cc ./configure or ./configure CC=cc, Paul Eggert, 2006/08/10
- Re: CC=cc ./configure or ./configure CC=cc, Karl Berry, 2006/08/10
- Re: CC=cc ./configure or ./configure CC=cc, Karl Berry, 2006/08/10
- Re: CC=cc ./configure or ./configure CC=cc, Ralf Wildenhues, 2006/08/11
- Re: CC=cc ./configure or ./configure CC=cc, Ralf Wildenhues, 2006/08/15
- Re: CC=cc ./configure or ./configure CC=cc, Karl Berry, 2006/08/17
- Re: CC=cc ./configure or ./configure CC=cc, Karl Berry, 2006/08/19
- Re: [bug-gnulib] wcwidth on OSF/1, Albert Chin, 2006/08/10
- Re: [bug-gnulib] wcwidth on OSF/1,
Bruno Haible <=
- Re: [bug-gnulib] wcwidth on OSF/1, Eric Blake-1, 2006/08/11
- Re: [bug-gnulib] wcwidth on OSF/1, Paul Eggert, 2006/08/11
Re: [bug-gnulib] VPATH and IRIX make (was: m4-1.4.6 soon?), Bruno Haible, 2006/08/07