This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [mingw rfc] Add mkdtemp to gdb/gnulib/ [Re: [PATCH v4 14/14] the "compile" command]
- From: Yao Qi <yao at codesourcery dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: <gdb-patches at sourceware dot org>, Kai Tietz <ktietz at redhat dot com>
- Date: Mon, 15 Dec 2014 11:15:43 +0800
- Subject: Re: [mingw rfc] Add mkdtemp to gdb/gnulib/ [Re: [PATCH v4 14/14] the "compile" command]
- Authentication-results: sourceware.org; auth=none
- References: <20141123192713 dot 32193 dot 57150 dot stgit at host1 dot jankratochvil dot net> <20141123192900 dot 32193 dot 65726 dot stgit at host1 dot jankratochvil dot net> <87r3w2vkhv dot fsf at codesourcery dot com> <20141214075258 dot GA26795 at host2 dot jankratochvil dot net> <87egs2vcfu dot fsf at codesourcery dot com> <20141214182341 dot GA2908 at host2 dot jankratochvil dot net>
Jan Kratochvil <jan.kratochvil@redhat.com> writes:
> But mingw-w64 64-bit target would build OK (after commenting out the mkdtemp()
> call) before adding the gnulib mkdtemp module. But after the gnulib mkdtemp
> addition there are many errors (attached as the second attachment). It is all
> about
> struct timeval *
> vs.
> struct rpl_timeval *
> but an advice from mingw64 aware hacker would be nice to know what to do.
Hi Jan,
I can reproduce your build failure with x86_64-w64-mingw32-gcc too.
Looks gnulib sys_time module needs update, or maybe we have to use win32
api, such as GetTempPath and GetRandomFileName.
--
Yao (éå)