GNU gettext - Bugs: bug #62659, libgettextpo.so has undefined...
You are not allowed to post comments on this tracker with your current authentication level.
bug #62659: libgettextpo.so has undefined reference to gl_get_setlocale_null_lock on musl
Submitter: | Sam James <thesamesam> | ||
Submitted: | Wed 22 Jun 2022 01:46:45 AM UTC | ||
Category: | Build | Severity: | 3 - Normal |
Item Group: | None | Status: | Works For Me |
Privacy: | Public | Assigned to: | haible |
Open/Closed: | Closed |
Jump to the original submission
Mon 29 Aug 2022 08:29:15 PM UTC, comment #9: |
Alfred Persson Forsberg <cat> |
Mon 04 Jul 2022 10:11:17 PM UTC, comment #8:
|
Bruno Haible <haible> |
Sun 03 Jul 2022 10:11:25 PM UTC, comment #7: Ah, I think I see what's happening now.
|
Sam James <thesamesam> |
Sun 03 Jul 2022 09:34:42 PM UTC, comment #6:
|
Bruno Haible <haible> |
Sun 03 Jul 2022 04:44:27 PM UTC, comment #5: Note that it's interesting you even have a libintl.so on Alpine. So our setups aren't equal anyway.
|
Sam James <thesamesam> |
Sun 03 Jul 2022 04:37:56 PM UTC, comment #4: Outside the chroot:
|
Sam James <thesamesam> |
Sun 03 Jul 2022 04:29:56 PM UTC, comment #3: I've reproduced it when building straight from git with std configure && make && ..., so I don't think the packaging is going to be related.
|
Sam James <thesamesam> |
Sun 03 Jul 2022 03:49:06 PM UTC, comment #2: The difference between your build and my build is probably that you used Gentoo build recipes, whereas I built the package from source, using the standard configure && make && make install combo. |
Bruno Haible <haible> |
Sun 03 Jul 2022 03:46:25 PM UTC, comment #1: On Alpine Linux, a system with musl libc, I can see the following:
|
Bruno Haible <haible> |
Wed 22 Jun 2022 01:46:45 AM UTC, original submission:
Originally noticed when hitting a bug similar to https://bugs.gentoo.org/830590 in Gentoo (in this case, it was kde-apps/poxml).
|
Sam James <thesamesam> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 5 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2022-07-03 | haible | Status | None | Works For Me | |
Assigned to | None | haible | |||
Open/Closed | Open | Closed | |||
2022-06-22 | thesamesam | Attached File | - | Added config.log.tar.gz, #53330 | |
2022-06-22 | thesamesam | Attached File | - | Added build.log.gz, #53329 |
Powered by Savane 3.13-758e.
Corresponding source code
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
```