emacs-devel
[Top][All Lists]
Advanced

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

Re: windows build failure


From: Eli Zaretskii
Subject: Re: windows build failure
Date: Wed, 18 Sep 2013 09:42:14 +0300

> Date: Tue, 17 Sep 2013 17:45:40 -0400
> From: Sean Sieger <address@hidden>
> 
> gcc  -std=gnu99 -DHAVE_CONFIG_H -I. -I/c/trunk/lib -I../src -I/c/trunk/src 
> -mtune=pentium4   -DUSE_CRT_DLL=1 -I /c/trunk/nt/inc    -g3 -O2 -gdwarf-2 -MT 
> gettimeofday.o -MD -MP -MF .deps/gettimeofday.Tpo -c -o gettimeofday.o 
> gettimeofday.c
> 
> gettimeofday.c:102:1: error: conflicting types for 'gettimeofday'
>  gettimeofday (struct timeval *restrict tv, void *restrict tz)
>  ^
> In file included from gettimeofday.c:23:0:
> c:/trunk/nt/inc/sys/time.h:45:5: note: previous declaration of 'gettimeofday' 
> was here
>  int gettimeofday (struct timeval *__restrict, struct timezone *__restrict);
>      ^

lib/gettimeofday.c is not supposed to be compiled on Windows (because
Emacs on Windows provides its own implementation of that function).
You should see these two lines (far apart) in your output from
configure:

 checking for gettimeofday... yes
 checking for gettimeofday with POSIX signature... almost

and src/config.h should have this:

  /* Define to 1 if you have the `gettimeofday' function. */
  #define HAVE_GETTIMEOFDAY 1

If you have different results, look in config.log for the details.

Btw, what port of GCC and what runtime library and headers are you
using?



reply via email to

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