[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hard-locale.c: SETLOCALE_NULL_MAX
From: |
Bruno Haible |
Subject: |
Re: hard-locale.c: SETLOCALE_NULL_MAX |
Date: |
Wed, 30 Sep 2020 18:38:31 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-189-generic; KDE/5.18.0; x86_64; ; ) |
Hi Marc,
> The compiler throws the following error at me:
>
> lib/hard-locale.c: In function 'hard_locale':
> lib/hard-locale.c:29:15: error: 'SETLOCALE_NULL_MAX' undeclared (first
> use in this function); did you mean 'SETLOCALE_NULL_ALL_MTSAFE'?
> 29 | char locale[SETLOCALE_NULL_MAX];
> | ^~~~~~~~~~~~~~~~~~
Does the error occur always, or only with "make -j"?
Are the following statements true in your build?
(1) I use the module 'hard-locale'.
(2) I use the module 'setlocale-null'.
(3) config.status defines GNULIB_SETLOCALE_NULL to 1.
(4) The file lib/setlocale_null.h exists.
(5) The file lib/locale.h includes setlocale_null.h.
(6) The -I options passed to GCC make sure that setlocale_null.h gets found.
Bruno