[ATTN] autoconf or GCC maintainers: wint_t no longer defined from GCC stddef.h
Brian Inglis
Brian.Inglis@SystematicSW.ab.ca
Fri Nov 20 04:11:25 GMT 2026
Hi folks,
Reran the diffutils build released last year, because we are dealing with a lack
of Large File Support on files > 4GB, and the build now fails with upgraded
config.guess, config.sub and compiler (see attached log excerpts):
$ grep -iB5 -A1 wint_t diffutils-3.12-1-compile.log
autoreconf-2.73: configure.ac: not running make: --make not given
autoreconf-2.73: Leaving directory '.'
*** Info: config.guess: updated from '2025-07-10' to '2026-05-17'
*** Info: config.sub: updated from '2025-07-10' to '2026-05-17'
...
checking for wint_t... yes
checking whether wint_t is large enough... yes
checking whether <wchar.h> uses 'inline' correctly... yes
--
CC libdiffutils_a-basename-lgpl.o
In file included from /usr/include/sys/reent.h:16,
from /usr/include/stdlib.h:18,
from ./stdlib.h:51,
from
/usr/src/diffutils/diffutils-3.12-1.x86_64/src/diffutils-3.12/lib/allocator.c:21:
/usr/include/sys/_types.h:167:5: error: unknown type name 'wint_t'
167 | wint_t __wch;
| ^~~~~~
In file included from /usr/include/sys/reent.h:16,
from /usr/include/stdio.h:60,
from ./stdio.h:55,
from
/usr/src/diffutils/diffutils-3.12-1.x86_64/src/diffutils-3.12/lib/argmatch.h:32,
from
/usr/src/diffutils/diffutils-3.12-1.x86_64/src/diffutils-3.12/lib/argmatch.c:25:
/usr/include/sys/_types.h:167:5: error: unknown type name 'wint_t'
167 | wint_t __wch;
| ^~~~~~
In file included from /usr/include/sys/reent.h:16,
from /usr/include/sys/errno.h:11,
from /usr/include/errno.h:9,
from
/usr/src/diffutils/diffutils-3.12-1.x86_64/src/diffutils-3.12/lib/openat-priv.h:23,
from
/usr/src/diffutils/diffutils-3.12-1.x86_64/src/diffutils-3.12/lib/openat-proc.c:22:
/usr/include/sys/_types.h:167:5: error: unknown type name 'wint_t'
167 | wint_t __wch;
| ^~~~~~
The config still detects wint_t is supported, but compiles fail with wint_t
undefined, as __need_wint_t or other features are undefined in the compiles, but
not in the config tests:
$ grep -iB4 wint_t /lib/gcc/x86_64-pc-cygwin/14/include/stddef.h
#if (!defined(_STDDEF_H) && !defined(_STDDEF_H_) && !defined(_ANSI_STDDEF_H) \
&& !defined(__STDDEF_H__)) \
|| defined(__need_wchar_t) || defined(__need_size_t) \
|| defined(__need_ptrdiff_t) || defined(__need_NULL) \
|| defined(__need_wint_t)
--
wants us just to define one data type. So don't define
the symbols that indicate this file's entire job has been done. */
#if (!defined(__need_wchar_t) && !defined(__need_size_t) \
&& !defined(__need_ptrdiff_t) && !defined(__need_NULL) \
&& !defined(__need_wint_t))
--
#endif /* __wchar_t__ */
#undef __need_wchar_t
#endif /* _STDDEF_H or __need_wchar_t. */
#if defined (__need_wint_t)
#ifndef _WINT_T
#define _WINT_T
#ifndef __WINT_TYPE__
#define __WINT_TYPE__ unsigned int
#endif
typedef __WINT_TYPE__ wint_t;
#endif
#undef __need_wint_t
--
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 à retrancher but when there is no more to cut
-- Antoine de Saint-Exupéry
-------------- next part --------------
autoreconf-2.73: export WARNINGS=
autoreconf-2.73: Entering directory '.'
autoreconf-2.73: running: /usr/bin/autopoint -V 0.26 --force
autopoint: warning: Version mismatch: specified -V 0.26 but the package uses gettext version 0.19.2. Forcibly upgrading to 0.26
Copying file ABOUT-NLS
Copying file m4/gettext.m4
Copying file m4/host-cpu-c-abi.m4
Copying file m4/iconv.m4
Copying file m4/intlmacosx.m4
Copying file m4/lib-link.m4
Copying file m4/nls.m4
Copying file m4/po.m4
Copying file m4/progtest.m4
Copying file po/Makefile.in.in
Copying file po/Makevars.template
Copying file po/Rules-quot
Copying file po/boldquot.sed
Copying file po/en@boldquot.header
Copying file po/en@quot.header
Copying file po/insert-header.sed
Copying file po/quot.sed
Copying file po/remove-potcdate.sed
autoreconf-2.73: running: aclocal --force -I m4
autoreconf-2.73: configure.ac: tracing
autoreconf-2.73: configure.ac: not using Libtool
autoreconf-2.73: configure.ac: not using Intltool
autoreconf-2.73: configure.ac: not using Gtkdoc
autoreconf-2.73: configure.ac: not running autopoint a second time
autoreconf-2.73: running: /usr/bin/autoconf-2.73 --force
autoreconf-2.73: running: /usr/bin/autoheader-2.73 --force
autoreconf-2.73: running: automake --add-missing --copy --force-missing
autoreconf-2.73: 'build-aux/install-sh' is updated
autoreconf-2.73: 'build-aux/config.sub' is updated
autoreconf-2.73: 'build-aux/config.guess' is updated
autoreconf-2.73: configure.ac: not running make: --make not given
autoreconf-2.73: Leaving directory '.'
*** Info: config.guess: updated from '2025-07-10' to '2026-05-17'
*** Info: config.sub: updated from '2025-07-10' to '2026-05-17'
...
checking for wint_t... yes
checking whether wint_t is large enough... yes
checking whether <wchar.h> uses 'inline' correctly... yes
...
configure: updating cache config.cache
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating lib/Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating gnulib-tests/Makefile
config.status: creating man/Makefile
config.status: creating po/Makefile.in
config.status: creating lib/config.h
config.status: linking /usr/src/diffutils/diffutils-3.12-1.x86_64/src/diffutils-3.12/GNUmakefile to GNUmakefile
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/Makefile
Making all in lib
make[1]: Entering directory '/usr/src/diffutils/diffutils-3.12-1.x86_64/build/lib'
GEN alloca.h
GEN ctype.h
GEN dirent.h
GEN error.h
GEN fcntl.h
GEN fnmatch.h
GEN malloc/dynarray.gl.h
GEN malloc/dynarray-skeleton.gl.h
GEN inttypes.h
GEN langinfo.h
GEN limits.h
GEN locale.h
GEN pthread.h
GEN sched.h
GEN signal.h
GEN sigsegv.h
GEN stdbit.h
GEN stddef.h
GEN stdint.h
GEN stdio.h
GEN stdlib.h
GEN string.h
GEN strings.h
GEN sys/random.h
GEN sys/stat.h
GEN sys/time.h
GEN sys/types.h
GEN sys/wait.h
GEN time.h
GEN uchar.h
GEN unicase.h
GEN unictype.h
GEN uninorm.h
GEN unistd.h
GEN unistr.h
GEN unitypes.h
GEN uniwidth.h
GEN wchar.h
GEN wctype.h
make all-am
make[2]: Entering directory '/usr/src/diffutils/diffutils-3.12-1.x86_64/build/lib'
CC libdiffutils_a-allocator.o
CC libdiffutils_a-argmatch.o
CC libdiffutils_a-openat-proc.o
CC libdiffutils_a-basename-lgpl.o
In file included from /usr/include/sys/reent.h:16,
from /usr/include/stdlib.h:18,
from ./stdlib.h:51,
from /usr/src/diffutils/diffutils-3.12-1.x86_64/src/diffutils-3.12/lib/allocator.c:21:
/usr/include/sys/_types.h:167:5: error: unknown type name 'wint_t'
167 | wint_t __wch;
| ^~~~~~
In file included from /usr/include/sys/reent.h:16,
from /usr/include/stdio.h:60,
from ./stdio.h:55,
from /usr/src/diffutils/diffutils-3.12-1.x86_64/src/diffutils-3.12/lib/argmatch.h:32,
from /usr/src/diffutils/diffutils-3.12-1.x86_64/src/diffutils-3.12/lib/argmatch.c:25:
/usr/include/sys/_types.h:167:5: error: unknown type name 'wint_t'
167 | wint_t __wch;
| ^~~~~~
In file included from /usr/include/sys/reent.h:16,
from /usr/include/sys/errno.h:11,
from /usr/include/errno.h:9,
from /usr/src/diffutils/diffutils-3.12-1.x86_64/src/diffutils-3.12/lib/openat-priv.h:23,
from /usr/src/diffutils/diffutils-3.12-1.x86_64/src/diffutils-3.12/lib/openat-proc.c:22:
/usr/include/sys/_types.h:167:5: error: unknown type name 'wint_t'
167 | wint_t __wch;
| ^~~~~~
...
make[2]: *** [Makefile:3843: libdiffutils_a-argmatch.o] Error 1
make[2]: *** [Makefile:3857: libdiffutils_a-openat-proc.o] Error 1
make[2]: Leaving directory '/usr/src/diffutils/diffutils-3.12-1.x86_64/build/lib'
make[1]: *** [Makefile:3419: all] Error 2
make[1]: Leaving directory '/usr/src/diffutils/diffutils-3.12-1.x86_64/build/lib'
make: *** [Makefile:2441: all-recursive] Error 1
[1;31m*** ERROR:[0;0m make failed
More information about the Cygwin-apps
mailing list