emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MinGW build broken with O_CLOEXEC undeclared


From: Eli Zaretskii
Subject: Re: MinGW build broken with O_CLOEXEC undeclared
Date: Sun, 08 Mar 2020 17:03:29 +0200

> From: martin rudalics <address@hidden>
> Date: Sun, 8 Mar 2020 09:53:54 +0100
> Cc: Paul Eggert <address@hidden>
> 
> Compiling master is currently broken on my Windows XP (MinGW gcc 4.8.1) as 
> below
> 
> ../../lib/futimens.c:31:1: warning: no previous prototype for 'futimens' 
> [-Wmissing-prototypes]
>   futimens (int fd, struct timespec const times[2])
>   ^
>    CC       getopt1.o
>    CC       gettimeofday.o
>    CC       memmem.o
>    CC       mempcpy.o
>    CC       memrchr.o
>    CC       mkostemp.o
>    CC       mktime.o
>    CC       open.o
> ../../lib/open.c: In function 'sys_open':
> ../../lib/open.c:127:49: error: 'O_CLOEXEC' undeclared (first use in this 
> function)
>                     flags & ~(have_cloexec <= 0 ? O_CLOEXEC : 0), mode);
>                                                   ^
> ../../lib/open.c:127:49: note: each undeclared identifier is reported only 
> once for each function it appears in
> make[1]: *** [open.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make[1]: Leaving directory `/c/emacs-git/trunk/dbg/lib'
> make: *** [lib] Error 2

Should be fixed now.

For cleaner results, I suggest to do the following after "git pull"
and before saying "make":

  $ rm lib/*.[oa]
  $ touch configure.ac lib/gnulib.mk.in



reply via email to

[Prev in Thread] Current Thread [Next in Thread]