[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cannot compile under cygwin because of gnulib/uninorm
From: |
Denis Excoffier |
Subject: |
Re: cannot compile under cygwin because of gnulib/uninorm |
Date: |
Wed, 4 Dec 2024 20:18:52 +0100 |
> On 2024-12-04 07:53, Bruno Haible wrote:
>
> [CCing Brian Inglis]
>
> 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).
>
> Bruno
>
> [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").
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.
Regards,
Denis Excoffier.
- Re: gettext binaries for Cygwin, (continued)
- Re: gettext binaries for Cygwin, Brian Inglis, 2024/12/04
- Re: gettext binaries for Cygwin, Bruno Haible, 2024/12/04
- Re: gettext binaries for Cygwin, Brian . Inglis, 2024/12/04
- Re: gettext binaries for Cygwin, Bruno Haible, 2024/12/05
- Re: gettext binaries for Cygwin, Brian . Inglis, 2024/12/05
- Re: gettext binaries for Cygwin, Denis Excoffier, 2024/12/05
- Re: gettext binaries for Cygwin, address@hidden, 2024/12/06
- Re: gettext binaries for Cygwin, Denis Excoffier, 2024/12/04
- Re: gettext binaries for Cygwin, Bruno Haible, 2024/12/04
- Re: gettext binaries for Cygwin, Brian Inglis, 2024/12/07
Re: cannot compile under cygwin because of gnulib/uninorm,
Denis Excoffier <=