[libvirt] Libvirt / GNULIB failures using Mingw64 toolchain

Bruno Haible bruno at clisp.org
Sun Jun 17 14:28:02 UTC 2012


Hello Daniel,

>   CC     fstat.lo
> ../../../gnulib/lib/fstat.c:27:0: warning: "stat" redefined [enabled by default]
> In file included from ./sys/stat.h:32:0,
>                  from ../../../gnulib/lib/fstat.c:25:
> /usr/x86_64-w64-mingw32/sys-root/mingw/include/sys/stat.h:258:0: note: this is the location of the previous definition
> ../../../gnulib/lib/fstat.c:28:0: warning: "fstat" redefined [enabled by default]
> In file included from ./sys/stat.h:32:0,
>                  from ../../../gnulib/lib/fstat.c:25:
> /usr/x86_64-w64-mingw32/sys-root/mingw/include/sys/stat.h:259:0: note: this is the location of the previous definition

In the copy of mingw64 that I have, <sys/stat.h> does not have a
"#define stat ..." or "#define fstat ...". Can you please point us,
where to find the <sys/stat.h> that you are using?

>   CC     stdio-read.lo
> ../../../gnulib/lib/stdio-read.c:102:1: error: redefinition of 'vscanf'
> In file included from ./stdio.h:43:0,
>                  from ../../../gnulib/lib/stdio-read.c:21:
> /usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:397:7: note: previous definition of 'vscanf' was here

Likewise for <stdio.h>. The mingw64 <stdio.h> that I have contains a
declaration, not a definition, of vscanf. Yours must be different. Can
you please show it?

Bruno




More information about the libvir-list mailing list