bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #66533] build failure when building with --disable-nls


From: Bruno Haible
Subject: [bug #66533] build failure when building with --disable-nls
Date: Wed, 4 Dec 2024 15:49:40 -0500 (EST)

URL:
  <https://savannah.gnu.org/bugs/?66533>

                 Summary: build failure when building with --disable-nls
                   Group: GNU gettext
               Submitter: haible
               Submitted: Wed 04 Dec 2024 09:49:37 PM CET
                Category: Build
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Wed 04 Dec 2024 09:49:37 PM CET By: Bruno Haible <haible>
Reported by Holger Hoffstätte via Sam James <sam@gentoo.org>:

When building gettext-0.23 with --disable-nls, there is a compilation error:

In file included from msgcmp.c:52:
msgcmp.c: In function 'main':
../gnulib-lib/gettext.h:89:25: warning: statement with no effect
[-Wunused-value]
   89 |     ((void) (Domainname), (const char *) (Dirname))
      |     ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
msgcmp.c:108:3: note: in expansion of macro 'bindtextdomain'
  108 |   bindtextdomain (PACKAGE, relocate (LOCALEDIR));
      |   ^~~~~~~~~~~~~~
../gnulib-lib/relocatable.h:114:37: error: expected expression before ')'
token
  114 | #define relocate(pathname) (pathname)
      |                                     ^
../gnulib-lib/gettext.h:89:43: note: in definition of macro 'bindtextdomain'
   89 |     ((void) (Domainname), (const char *) (Dirname))
      |                                           ^~~~~~~
msgcmp.c:109:36: note: in expansion of macro 'relocate'
  109 |   bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));
      |                                    ^~~~~~~~
../gnulib-lib/gettext.h:86:34: warning: statement with no effect
[-Wunused-value]
   86 | # define textdomain(Domainname) ((const char *) (Domainname))
      |                                 ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
msgcmp.c:110:3: note: in expansion of macro 'textdomain'
  110 |   textdomain (PACKAGE);
      |   ^~~~~~~~~~
make[5]: *** [Makefile:5693: msgcmp-msgcmp.o] Error 1









    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?66533>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]