On 2026-10-11 21:05, Yue Yi wrote:
CCLD temacs.exe
D:/_D/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/16.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
../lib/libgnu.a(time_rz.o): in function `mktime_z':
D:\emacs-ucrt\lib/time_rz.c:309:(.text+0x31a): undefined reference to
`rpl_mktime'
Thanks. This means lib/time.h was built with REPLACE_MKTIME=1. But I suspect that the
mingw32 port does not want to replace mktime. Please apply the attached further patch.
You may need to "make bootstrap" after that.
From 4098e233fe87bcdca24ec65b4ef02cb86db31117 Mon Sep 17 00:00:00 2001
From: Paul Eggert <[email protected]>
Date: Sun, 11 Oct 2026 22:19:11 -0700
Subject: [PATCH] Do not replace mktime on mingw32
Problem reported by Yue Yi (Bug#81837#77).
* configure.ac: On mingw32, set REPLACE_MKTIME=0
---
configure.ac | 1 +
1 file changed, 1 insertion(+)
diff --git a/configure.ac b/configure.ac
index 2cc06363daa..a714f9bde44 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7366,6 +7366,7 @@ AC_DEFUN
LIBS=$OLD_LIBS
if test "${opsys}" = "mingw32"; then
+ REPLACE_MKTIME=0
CPPFLAGS="$CPPFLAGS -DUSE_CRT_DLL=1 -I \${abs_top_srcdir}/nt/inc"
# Remove unneeded switches from the value of CC that goes to Makefiles
CC=`AS_ECHO(["$CC"]) | sed -e "s,$GCC_TEST_OPTIONS,,"`
--
2.56.0