New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
src/ydpdict.c: Fix call to undeclared function textdomain #4
Conversation
First discovered on Gentoo linux (musl llvm profile). Bug: https://bugs.gentoo.org/894364 Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
Upstream PR: wojtekka/ydpdict#4 Closes: https://bugs.gentoo.org/894364 Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
Actually I believe that wrapping #ifdef HAVE_LOCALE_H
setlocale(LC_ALL, "");
#endif
#ifdef ENABLE_NLS
textdomain("ydpdict");
#endif Would you be able to check if this works in Gentoo? |
Sure, I'll check this on gentoo. |
@wojtekka Build output with your patch https://bpa.st/raw/67XQ |
Upstream PR: wojtekka/ydpdict#4 Closes: https://bugs.gentoo.org/894364 Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com> Closes: #32101 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Upstream PR: wojtekka/ydpdict#4 Closes: https://bugs.gentoo.org/894364 Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com> Closes: gentoo#32101 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Sorry for the delay. I re-read the gettext manual, applied the suggestions, removed the custom |
Yep, code from master compiles fine under musl-llvm profile. But needed a small patch diff --git a/configure.ac b/configure.ac
index 2a3931e..f87548c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,6 +14,7 @@ AC_C_BIGENDIAN
AC_CHECK_HEADERS([linux/soundcard.h])
AM_GNU_GETTEXT([external])
+AM_GNU_GETTEXT_VERSION([0.14.4])
AC_CONFIG_MACRO_DIRS([m4])
Probably due to required by On the VM part, it's a bit of a work but I'm using a LXD image (custom) from clang-llvm profile. You might get help from https://blogs.gentoo.org/gsoc/2023/07/24/creating-custom-lxd-gentoo-containers-from-stage-3-tarballs/ |
I applied your patch to the main branch, thank you. It looks like it builds properly under Gentoo (regular and musl-llvm), Fedora, Debian and Ubuntu. I will release a new version in a moment. Oh, and I managed to get a musl-llvm container with plain old Docker, using stage3 as base image, then |
Fixed in the new release: https://github.com/wojtekka/ydpdict/releases/tag/1.0.4 |
First discovered on Gentoo linux (musl llvm profile).
Bug: https://bugs.gentoo.org/894364