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

Reply via email to