Menu

#453 Occurs a link error when building widl

v1.0 (example)
open
nobody
None
5
2015-01-20
2015-01-18
maki
No

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

Related

Commit: [f713f6]

Discussion

  • Jacek Caban

    Jacek Caban - 2015-01-20

    Please try the attached patch.

     
  • maki

    maki - 2015-01-20

    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

     

Log in to post a comment.