* Cannot build fstat.c on mingw
@ 2023-02-26 16:27 Reuben Thomas
2023-02-26 17:17 ` Bruno Haible
0 siblings, 1 reply; 3+ messages in thread
From: Reuben Thomas @ 2023-02-26 16:27 UTC (permalink / raw)
To: bug-gnulib
[-- Attachment #1: Type: text/plain, Size: 438 bytes --]
I get an error with compiling:
In file included from fstat.c:52:
stat-time.h: In function ‘get_stat_atime_ns’:
stat-time.h:52:43: error: invalid use of undefined type ‘const struct
_stati64’
52 | # define STAT_TIMESPEC(st, st_xtim) ((st)->st_xtim)
and lots more the same.
I came across this when trying to build GNU libiconv 1.17, which seems to
use the current version of fstat.c.
--
https://rrt.sc3d.org
[-- Attachment #2: Type: text/html, Size: 1329 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Cannot build fstat.c on mingw
2023-02-26 16:27 Cannot build fstat.c on mingw Reuben Thomas
@ 2023-02-26 17:17 ` Bruno Haible
2023-03-11 0:45 ` Reuben Thomas
0 siblings, 1 reply; 3+ messages in thread
From: Bruno Haible @ 2023-02-26 17:17 UTC (permalink / raw)
To: bug-gnulib, Reuben Thomas
Reuben Thomas wrote:
> I get an error with compiling:
>
> In file included from fstat.c:52:
> stat-time.h: In function ‘get_stat_atime_ns’:
> stat-time.h:52:43: error: invalid use of undefined type ‘const struct
> _stati64’
> 52 | # define STAT_TIMESPEC(st, st_xtim) ((st)->st_xtim)
>
> and lots more the same.
>
> I came across this when trying to build GNU libiconv 1.17, which seems to
> use the current version of fstat.c.
GNU libiconv 1.17 compiles fine for mingw (w64 flavour, as shipped with
Cygwin 2.9.0), for me.
So, the cause could be that you are using a different version of mingw.
You might not be the only one. Therefore it would be useful if you could
analyze this failure. Then, let's see what is the best way forward (in
Gnulib and in libiconv).
Thanks!
Bruno
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Cannot build fstat.c on mingw
2023-02-26 17:17 ` Bruno Haible
@ 2023-03-11 0:45 ` Reuben Thomas
0 siblings, 0 replies; 3+ messages in thread
From: Reuben Thomas @ 2023-03-11 0:45 UTC (permalink / raw)
To: Bruno Haible; +Cc: bug-gnulib
[-- Attachment #1: Type: text/plain, Size: 482 bytes --]
On Sun, 26 Feb 2023 at 19:17, Bruno Haible <bruno@clisp.org> wrote:
> So, the cause could be that you are using a different version of mingw.
> You might not be the only one. Therefore it would be useful if you could
> analyze this failure. Then, let's see what is the best way forward (in
> Gnulib and in libiconv).
>
I just got back to working on this, and the problem seems to have gone
away. Maybe an MSYS2 update fixed it, maybe it was a Heisenbug.
--
https://rrt.sc3d.org
[-- Attachment #2: Type: text/html, Size: 1132 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-03-11 0:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-26 16:27 Cannot build fstat.c on mingw Reuben Thomas
2023-02-26 17:17 ` Bruno Haible
2023-03-11 0:45 ` Reuben Thomas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).