在 2019/4/2 3:31, Vincent Torri 写道: > Hello > > after upgrading the 32 bits toolchain, i have some linking errors when > compiling pkg-config or xz : > > pkg-config : > ./glib/glib/.libs/libglib-2.0.a(libglib_2_0_la-gstdio.o):gstdio.c:(.text+0x9ad): > undefined reference to `_imp___wutime32' > > xz : xz-file_io.o:file_io.c:(.text+0x52f): undefined reference to > `_imp___futime32' > > I had no problem with a previous toolchain. > > If I #undef _USE_32BIT_TIME_T it works > > Note that the 64 bits toolchain has no problem > > Does someone know if a change in header files has been made, that will > explain such errors ? > > thank you > > Vincent Torri > >
It is because in mingw-w64, commit `fde585a1` makes `_futime()` a wrapper for `_futime32()` [1], while the latter is not exported from MSVCRT for non-ARM targets [2]. However I can verify that this function exist on both the x64 and x86 MSVCRT.DLL files on my Windows 7. So I think I should propose a patch to address this. [1] https://sourceforge.net/p/mingw-w64/mingw-w64/ci/fde585a1ef36580c3a8d3675fae6d3191c4c3ac2/ [2] https://sourceforge.net/p/mingw-w64/mingw-w64/ci/master/tree/mingw-w64-crt/lib-common/msvcrt.def.in -- Best regards, LH_Mouse _______________________________________________ Msys2-users mailing list Msys2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/msys2-users