The following error occurs on the latest mingw-w64 when building widl.
C:/msys/local/source/mingw-w64-git/mingw-w64-tools/widl/src/widl.c:832: undefined reference to `mkstemps' collect2.exe: error: ld returned 1 exit status
widl is already implementing the mkstemps function. ('mingw-w64-tools/widl/src/port/port.c')
But mkstemps is unused for mkstemp is detected by the configuration check of widl.
mkstemps is not yet implemented in the mingw-w64-crt.
(Commit [f713f6] stdlib.h: Add mkstemp implementation.)
Please consider the following measures.
- Implement mkstemps to mingw-w64-crt.
- Change mkstemp to mkstemps in configure script of widl.
Regards
Please try the attached patch.
I've already build in the attached file similar changes.
It is confirmed that the error does not occur.
However, this patch is missing a change of header file.
('mingw-w64-tools/widl/include/wine/port.h')
Regards