Gary V. Vaughan wrote:

> A gnulib bug on osf (4.0d and 5.1):
>   alphaev67-dec-osf5.1$ make all check
>   cc -DHAVE_CONFIG_H -I. -I../../lib -I..      -g -c ../../lib/mbchar.c
>   cc: Warning: ../../lib/wcwidth.h, line 70: In this declaration,
> parameter 1 has a different type than specified in an earlier
> declaration of this function. (mismatparam)
>   int wcwidth (int /* actually wchar_t */);
>   ----^
>   cc: Error: ../../lib/wcwidth.h, line 70: In this declaration, the type
> of "wcwidth" is not compatible with the type of a previous declaration
> of "wcwidth" at line number 280 in file /usr/include/wchar.h. (notcompat)
>   int wcwidth (int /* actually wchar_t */);
>   ----^
>   *** Exit 1
>   Stop.

What does "grep WCWIDTH config.h" show? Does it show
#define HAVE_DECL_WCWIDTH 0 ?

It should say
#define HAVE_DECL_WCWIDTH 1
because of the
    extern int      wcwidth         __((const wchar_t));
declaration in /usr/include/wchar.h. Can you look in the config.log why
it set HAVE_DECL_WCWIDTH to 0?

On a different OSF/1 5.1 machine, also with cc, I get
$ grep WCWIDTH config.h
#define HAVE_DECL_WCWIDTH 1
#define HAVE_WCWIDTH 1
and all goes fine.

Bruno


Reply via email to