GNU gettext - Bugs: bug #63371, build fails on MinGW due to...
You are not allowed to post comments on this tracker with your current authentication level.
bug #63371: build fails on MinGW due to missing gnulib close module
Submitter: | Vaclav Slavik <vslavik> | ||
Submitted: | Tue 15 Nov 2022 06:15:05 PM UTC | ||
Category: | Build | Severity: | 3 - Normal |
Item Group: | None | Status: | Need Info |
Privacy: | Public | Assigned to: | haible |
Open/Closed: | Open |
Wed 16 Nov 2022 05:16:57 PM UTC, comment #2: |
Vaclav Slavik <vslavik> |
Wed 16 Nov 2022 02:37:22 AM UTC, comment #1: The patch you provided is probably a no-op, because GNULIB_MODULES_TOOLS_FOR_SRC contains 'fopen', and 'fopen' depends on 'close'.
Since I had tested the gettext-0.21.1 tarball on mingw-w64 before releasing it (in a Cygwin environment, as described in the INSTALL.windows file), it's likely that there are subtle differences between your environment and mine.
Can you please
|
Bruno Haible <haible>![]() ![]() |
Tue 15 Nov 2022 06:15:05 PM UTC, original submission:
I'm seeing build failures in up-to-date MSYS2 environment when trying to build 0.21.1.
(Eventually, more files that use close() would be affected (msgexec.c, msggrep.c, urlget.c, write-catalog.c), this is just the first failure.)
I think this patch, which adds close to GNULIB_MODULES_TOOLS_FOR_SRC, is sufficient to fix:
But I have difficulty successfully running "make dist" here to be able to test it, and all the relevant files are generated and not included in git. |
Vaclav Slavik <vslavik> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
OK... In my defense, it is explicitly included in GNULIB_MODULES_LIBGETTEXTPO (described as "This is a subset of the GNULIB_MODULES_TOOLS_FOR_SRC" - though it was not). To be honest, I didn't even realize this could be an issue with my (unsupported) build environment; if I did, I'd try to dig deeper myself first.
I don't see any relevant variables in set's output besides perhaps those:
MSYSTEM=MINGW32
MSYSTEM_CARCH=i686
MSYSTEM_CHOST=i686-w64-mingw32
MSYSTEM_PREFIX=/mingw32
That is, I'm building 32bit executables. Configure command is this:
./configure -C --prefix=c:/usr/local --disable-static --disable-dependency-tracking --enable-silent-rules --with-libiconv-prefix=/d/a/gettext-tools-windows/gettext-tools-windows/build/stage/usr/local --disable-rpath --enable-nls --disable-csharp --disable-java --enable-threads=windows --enable-relocatable CFLAGS="-O2" CXXFLAGS="-O2" LDFLAGS="-Wl,--dynamicbase -Wl,--nxcompat -Wl,--no-seh"
Attaching cache and status; I wasn't able to find meaningful (to me) hints in there.
(file #53964, file #53965)