[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 07:29:20 -0700 |
User-agent: |
Mozilla Thunderbird |
On 2024-12-03 23:53, Bruno Haible wrote:
[CCing Brian Inglis]
Cheers!
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.
This update will be on my Cygwin packaging to do list this weekend!
Please note the longish list of build prereqs for this Cygwin package in the
Cygwin source package summary:
https://cygwin.com/packages/summary/gettext-src.html
and Cygwin build script:
https://cygwin.com/cgit/cygwin-packages/gettext/tree/gettext.cygport
and the longish list of patches applied in the build script:
https://cygwin.com/packages/x86_64/gettext-src/gettext-0.22.5-1-src
(and the patch history there), all available in the build repo:
https://cygwin.com/git/?p=git/cygwin-packages/gettext.git
many derived from Fedora due to policy and the previous maintainer's
affiliation, and our need to also provide a Mingw64 cross-build release for
native MS Windows cross-toolchain to build a few native MS Windows tools
required for Cygwin.
[Feedback welcome on any or all of these patches, scripts, etc. and adoption or
adaption by upstream projects ;^> Cygwin build scripts nicely skip patches no
longer required with "already applied"!]
It looks like it may be time to ping the libunistring (also libxml2) maintainers
to provide upgrades to newer versions available, or consider
--with-included-..., and I should look at releasing an updated ncurses package
with the latest ~weekly release soon (but Cygwin/Windows changes were made which
need consideration, evaluation, and testing, before building against that).
--
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
- cannot compile under cygwin because of gnulib/uninorm, Denis Excoffier, 2024/12/03
- Re: cannot compile under cygwin because of gnulib/uninorm, Bruno Haible, 2024/12/04
- Re: cannot compile under cygwin because of gnulib/uninorm,
Brian Inglis <=
- 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/04
- 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/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