Closed giuliobenetti closed 4 years ago
Jenkins, ok to test.
Ok, I will send a patch upstream ASAIC and then we should bump to latest gettext.h file with my fix included. What do you think?
Patch is pending upstream: https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00156.html
Well, on gnulib ML I've realized that the build failure is due to https://github.com/storaged-project/libbytesize/blob/master/configure.ac#L21. If host already has gettext installed, in some sneaky case it can be inderictly included by other header. So I'm going to patch configure.ac to define or not ENABLE_NLS according to host gettext presence. What do you think about it?
I've reproduced the problem. libintl.h provided by some toolchain includes gettext_noop(). So I close this PR and try this approach https://github.com/storaged-project/libbytesize/pull/64#issuecomment-578833123
@vojtechtrefny, following this:
https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00166.html
We ended up to ask uClibc-ng to modify their
I would prefer solution 1), but please, let me know what you think about this.
Thank you
I am ok with merging this patch as workaround. Thank you for investigating this. I'll do a new upstream release today or tomorrow.
Building on an environment where gettext is already present leads to emitting a warning about gettext_noop() alread defined. And if -Werror is passed this warning will be treated like an error, so let's #undef gettext_noop() before #define it.
Signed-off-by: Giulio Benetti giulio.benetti@benettiengineering.com