bug-gettext
[Top][All Lists]
Advanced

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

Re: cannot compile under cygwin because of gnulib/uninorm


From: Brian Inglis
Subject: Re: cannot compile under cygwin because of gnulib/uninorm
Date: Wed, 4 Dec 2024 13:42:00 -0700
User-agent: Mozilla Thunderbird

On 2024-12-04 12:18, Denis Excoffier wrote:
On 2024-12-04 07:53, Bruno Haible wrote:
Denis Excoffier wrote in
<https://lists.gnu.org/archive/html/bug-gettext/2024-12/msg00064.html>:
I tried to build gettext-0.23 under cygwin (recent).
It failed with two errors to a reference to a non const variable.
I had to apply the following (see below) and this is fine now.
gettext-0.22.5 was ok.

The patch is obviously wrong [1].
Since you say that it was OK with gettext 0.22.5, it is clear that it
is related to the GNU libunistring version that you have installed.
And since you mention "non-const variable", it is also clear that it
is caused by the Windows DLL mechanism. Therefore the available fixes
are:
  (a) Build and install GNU libunistring 1.3 first, and make it a
      prerequisite.
  (b) Build gettext with --with-included-libunistring. This will not
      use a preinstalled libunistring.
  (c) Build that particular compilation unit with a C++ compiler instead
      of a C compiler.
I would recommend (a) or (b).
[1] It introduces an endless recursion.

Thank you. I used (b) with no patch at all. Only --with-included-libunistring
(and --prefix=… --disable-silent-rules to be exhaustive). And build was perfect.
However, here is a remark in connection with your other message:
I have no LC_* or LANG set.
I have no possibility to change the language preference in WCP (it is "french 
only").

What about Setup/Regional settings including Language preferences etc?

Now i run:
jupiter% /usr/bin/xgettext --version
xgettext (GNU gettext-tools) 0.22.5
Copyright (C) 1995-2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Ulrich Drepper.
jupiter%
This is 100% as expected.
But when i run:
jupiter% /.../my/gettext/bin/xgettext --version
xgettext (GNU gettext-tools) 0.23
Copyright (C) 1995-2024 Free Software Foundation, Inc.
Licence GPLv3+ : GNU GPL version 3 ou ultérieure 
<https://gnu.org/licenses/gpl.html>
Ceci est un logiciel libre : vous pouvez le modifier et le redistribuer.
Il n'y a PAS DE GARANTIE, dans la mesure de ce que permet la loi.
Écrit par Ulrich Drepper.
jupiter%
I get the message in french. Seems that some patch is necessary after all.

That is the intent and what I would expect with Cygwin default settings.

Please run:

$ echo LANG "$LANG" CTYPE "$LC_CTYPE" ALL "$LC_ALL"
$ locale
$ for o in s u f i n; do echo "locale -$o: `locale -$o`"; done

and share the results.

--
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
                                -- Antoine de Saint-Exupéry



reply via email to

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