From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Anyone building Emacs trunk with MinGW w64 (32 bits) Date: Mon, 25 Mar 2013 22:48:01 +0200 Message-ID: <83boa71a0u.fsf@gnu.org> References: <87zjxumbjf.fsf@wanadoo.es> <83vc8f1t0x.fsf@gnu.org> <87sj3jcr6t.fsf@wanadoo.es> <86zjxrs4jm.fsf@gmail.com> <87k3ovcn1r.fsf@wanadoo.es> <87fvzjcles.fsf@wanadoo.es> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1364244507 23641 80.91.229.3 (25 Mar 2013 20:48:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Mar 2013 20:48:27 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?utf-8?Q?=C3=93scar?= Fuentes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 25 21:48:49 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UKEJx-0004OH-6M for ged-emacs-devel@m.gmane.org; Mon, 25 Mar 2013 21:48:45 +0100 Original-Received: from localhost ([::1]:43172 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKEJZ-0001Ws-FS for ged-emacs-devel@m.gmane.org; Mon, 25 Mar 2013 16:48:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKEJT-0001VF-Pd for emacs-devel@gnu.org; Mon, 25 Mar 2013 16:48:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKEJR-0007Tp-SB for emacs-devel@gnu.org; Mon, 25 Mar 2013 16:48:15 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:42268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKEJR-0007Tc-J6 for emacs-devel@gnu.org; Mon, 25 Mar 2013 16:48:13 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MK800E00H7ZBX00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Mon, 25 Mar 2013 22:47:50 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MK800DZVHRQSQF0@a-mtaout20.012.net.il>; Mon, 25 Mar 2013 22:47:50 +0200 (IST) In-reply-to: <87fvzjcles.fsf@wanadoo.es> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158168 Archived-At: > From: =C3=93scar Fuentes > Date: Mon, 25 Mar 2013 20:46:35 +0100 >=20 > D:\dev\emacs\emacs\src/fileio.c:1900: undefined reference to `_imp_= _lstat' > oo-spd/i386/temacs1.a(dired.o): In function `file_attributes': > D:\dev\emacs\emacs\src/dired.c:943: undefined reference to `_imp__f= statat' > oo-spd/i386/temacs1.a(dired.o): In function `file_name_completion_s= tat': > D:\dev\emacs\emacs\src/dired.c:818: undefined reference to `_imp__f= statat' > D:\dev\emacs\emacs\src/dired.c:820: undefined reference to `_imp__f= statat' > collect2.exe: error: ld returned 1 exit status > mingw32-make[3]: *** [oo-spd/i386/temacs.exe] Error 1 > mingw32-make[3]: Leaving directory `D:/dev/emacs/emacs/src' >=20 >=20 >=20 > I have no time for investigating why the linker searches for lstat = and > fstatat as if they were dllimports and ignores those defined in w32= .c. Try removing _CRTIMP from the prototypes in nt/inc/sys/stat.h. > -#define _WIN32_IE 0x400 > +/* c:\apps\msys\1.0\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/..= /../../../i686-w6 */ > +/* 4-mingw32/include/shlguid.h:16:2: error: #error _WIN32_IE setti= ng conflicts */ > +/* #define _WIN32_IE 0x400 */ Please show the relevant parts of shlguid.h. > --- a/nt/inc/ms-w32.h > +++ b/nt/inc/ms-w32.h > @@ -154,7 +154,7 @@ extern char *getenv (); > =20 > #ifdef emacs > =20 > -#ifdef _MSC_VER > +#if 1 > #include > #include > #include What was the problem here? > --- a/nt/inc/sys/time.h > +++ b/nt/inc/sys/time.h > @@ -6,6 +6,10 @@ > * have the below stuff. > */ > =20 > +#include > +#include > + > +#ifndef _TIMESPEC_DEFINED > struct timeval > { > long=09=09tv_sec;=09=09/* seconds */ > @@ -17,6 +21,7 @@ struct timezone > int=09=09tz_minuteswest;=09/* minutes west of Greenwich */ > int=09=09tz_dsttime;=09/* type of dst correction */ > }; > +#endif And here? > /* MinGW64 defines 'struct itimerval' and _TIMESPEC_DEFINED in sys= /types.h. */ > -#ifndef _TIMESPEC_DEFINED > +// #ifndef _TIMESPEC_DEFINED > struct itimerval > { > struct timeval it_interval;=09/* timer interval */ > struct timeval it_value;=09/* current value */ > }; > -#endif > +// #endif What's wrong with the #ifndef here? > +/* w32.c:2392:1: error: conflicting types for 'gettimeofday' */ > +/* In file included from w32.c:32:0: */ > +/* ../nt/inc/sys/time.h:25:6: note: previous declaration of 'getti= meofday' was here */ > =20 > /* Emulate gettimeofday (Ulrich Leodolter, 1/11/95). */ > -void > -gettimeofday (struct timeval *tv, struct timezone *tz) That's not the right solution. There's no conflict between w32.c and nt/inc/sys/time.h in how they declare/define gettimeofday. The reaso= n must be something else, like the order of definition of the relevant structures. Presumably, by the time the prototype in time.h is seen, one or both of the types of its arguments are not yet defined. Pleas= e look deeper. > --- a/src/w32term.c > +++ b/src/w32term.c > @@ -109,7 +109,7 @@ struct w32_display_info *x_display_list; > Lisp_Object w32_display_name_list; > =20 > =20 > -#if _WIN32_WINNT < 0x0500 > +#if 0 // _WIN32_WINNT < 0x0500 > /* Pre Windows 2000, this was not available, but define it here so > that Emacs compiled on such a platform will run on newer versio= ns. */ What's the problem here?