On Mon, Jan 12, 2026 at 07:12:52AM +0000, Gavin Smith wrote:
> On Sun, Jan 11, 2026 at 11:36:19PM +0100, Patrice Dumas wrote:
> > On Sun, Jan 11, 2026 at 01:36:11PM +0100, Bruno Haible via Bug reports for
> > the GNU Texinfo documentation system wrote:
> > > On mingw, there is a compilation error:
> > >
> > > $ make
> > > ...
> > > #include <glob.h>
> > > ^
> > > compilation terminated.
> > > make[4]: *** [Makefile:3691:
> > > convert/libtexinfo_convert_la-html_prepare_converter.lo] Fehler 1
> > >
> > >
> > > For comparison, version 7.1.90 did compile on mingw (but had test
> > > failures) [1].
> > >
> > > Maybe all you need is to request the Gnulib module 'glob' [2] ?
> >
> > Using the Gnulib 'glob' module would be ok for me. Gavin, any objection?
>
>
> No objection.
I can't build Texinfo anymore now this 'glob' module has been added.
make[4]: Entering directory '/home/g/src/texinfo/GIT/tta/gnulib/lib'
make[5]: Entering directory '/home/g/src/texinfo/GIT/tta/gnulib/lib'
/bin/bash ../../libtool --tag=CC --mode=compile x86_64-linux-gnu-gcc
-DHAVE_CONFIG_H -I. -I../../C -Wno-cast-qual -Wno-conversion
-Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function
-Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough
-Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unused-const-variable
-Wno-unsuffixed-float-constants -Wno-error -MT libgnu_la-getprogname.lo -MD
-MP -MF .deps/libgnu_la-getprogname.Tpo -c -o libgnu_la-getprogname.lo `test -f
'getprogname.c' || echo './'`getprogname.c
libtool: compile: x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../C
-Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef
-Wno-unused-function -Wno-unused-parameter -Wno-float-conversion
-Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits
-Wno-unused-const-variable -Wno-unsuffixed-float-constants -Wno-error -MT
libgnu_la-getprogname.lo -MD -MP -MF .deps/libgnu_la-getprogname.Tpo -c
getprogname.c -fPIC -DPIC -o .libs/libgnu_la-getprogname.o
getprogname.c: In function 'getprogname':
getprogname.c:255:4: error: #error "getprogname module not ported to this OS"
255 | # error "getprogname module not ported to this OS"
| ^~~~~
make[5]: *** [Makefile:3572: libgnu_la-getprogname.lo] Error 1
getprogname was brought in by the commit that added the glob module,
1a5348c9282eda0bf (2026-01-12).
This is always the risk with adding more gnulib modules, due to the dependencies
they can bring in. It brings in a large amount of code for the sake of
a function that is only called once.
It is used to find htmlxref files.
I'm going to try to remove the "glob" module for now.
Perhaps we could disable the code that uses glob on the mingw-w64
systems where it does not exist.