[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #62659] libgettextpo.so has undefined reference to gl_get_setlocale
From: |
Alfred Persson Forsberg |
Subject: |
[bug #62659] libgettextpo.so has undefined reference to gl_get_setlocale_null_lock on musl |
Date: |
Mon, 29 Aug 2022 16:29:15 -0400 (EDT) |
Follow-up Comment #9, bug #62659 (project gettext):
Hello! In gettext-tools/libgettextpo/setlocale-lock.c there's this comment
over '#if OMIT_SETLOCALE_LOCK':
"When it is known that the gl_get_setlocale_null_lock function is defined by a
dependency library, it should not be defined here."
So, for Alpine Linux it is fine because they use GNU's libintl. But on Gentoo
we use musl libc's libintl, so we need to set OMIT_SETLOCALE_LOCK to 0.
Gettext currently just forces OMIT_SETLOCALE_LOCK to 1 in
gettext-tools/libgettextpo/Makefile.am, but this should probably be done using
a check with AC_SEARCH_LIBS([gl_get_setlocale_null_lock], [intl], ...).
Just forcing it to 1 gives
```
nm -D /usr/lib/libgettextpo.so | grep gl_get_se
> 0000000000042df0 T gl_get_setlocale_null_lock
```
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62659>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #62659] libgettextpo.so has undefined reference to gl_get_setlocale_null_lock on musl,
Alfred Persson Forsberg <=