localename.h:92:3: error: expected declaration specifiers before '_GL_ATTRIBUTE_CONST'

Tianon Gravi <[email protected]>
Newsgroups gmane.comp.shells.bash.bugs
Message-ID <CAHnKnK220iqVL2gAyQ9bYkUiHSqt57V-enR7GyVg848oE=u8sg@mail.gmail.com>
I'm getting the following error when building the latest "devel"
snapshot in Alpine Linux (3.24):

    In file included from setlocale.c:62:
    localename.h: In function 'gl_locale_name_default':
    localename.h:92:3: error: expected declaration specifiers before
'_GL_ATTRIBUTE_CONST'
       92 |   _GL_ATTRIBUTE_CONST
          |   ^~~~~~~~~~~~~~~~~~~

(Followed by a cascade of other errors caused by this.)

I believe this issue was caused by the changes in
03e7298d1eb7f7163cda94ee23dcfa983152a540?

Applying the following diff fixes my build locally:

---

diff --git a/config.h.in b/config.h.in
index cab07dcc..556c2cc1 100644
--- a/config.h.in
+++ b/config.h.in
@@ -1243,6 +1243,7 @@

 #undef HAVE_WEAK_SYMBOLS

+#define _GL_ATTRIBUTE_CONST
 #define _GL_ATTRIBUTE_MALLOC
 #define _GL_ATTRIBUTE_DEALLOC_FREE
 #define _GL_ATTRIBUTE_FALLTHROUGH

---

Cheers!

♥,
- Tianon
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.