From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 83049 invoked by alias); 27 May 2015 10:57:38 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 83037 invoked by uid 89); 27 May 2015 10:57:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.5 required=5.0 tests=AWL,BAYES_20,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 27 May 2015 10:57:36 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 1C1F8A807CE; Wed, 27 May 2015 12:57:34 +0200 (CEST) Date: Wed, 27 May 2015 11:15:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: cannot build cygwin-2.0.2 because of net.cc (or because of some header.h) Message-ID: <20150527105734.GA16927@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20150521201509.9b9bfcffb07b3d9337de9e10@nifty.ne.jp> <20150522193704.b0b9dfdaa4d63c61d7d5be55@nifty.ne.jp> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline In-Reply-To: <20150522193704.b0b9dfdaa4d63c61d7d5be55@nifty.ne.jp> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-05/txt/msg00339.txt.bz2 --envbJBWh7q8WU6mo Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1800 On May 22 19:37, Takashi Yano wrote: > On Thu, 21 May 2015 20:15:09 +0900 > Takashi Yano wrote: >=20 > > On Mon, 11 May 2015 17:52:04 +0200 > > Denis Excoffier wrote: > >=20 > > > In order to successfully build cygwin-2.0.2-1 (for x86, both XP and W= 7) i had to apply > > > the following patch (below). No such problem with cygwin-2.0.1-1. > >=20 > > In my case, the same problem is caused by upgrading > > w32api-headers to 4.0.2-1. It does not result from > > difference between cygwin-2.0.2-1 and cygwin-2.0.1-1. >=20 > I have looked into this problem. The cause is as follows. >=20 > netioapi.h in w32api-headers 3.3.0-2 was using a macro-name > _INC_NETIOAPI for include-guard. By defining _INC_NETIOAPI, > net.cc avoids including netioapi.h, which conflicts with > if_nametoindex() and if_indextoname() in it. >=20 > However, the macro-name for include-guard in netioapi.h of > w32api-headers 4.0.2-1 has been changed to _NETIOAPI_H_. >=20 > As a result, net.cc fails to avoid including netioapi.h, > which causes confliction. >=20 > Thus, defining _NETIOAPI_H_ in net.cc resolves the problem. >=20 >=20 > diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc > index eaf6eb8..d6a631b 100644 > --- a/winsup/cygwin/net.cc > +++ b/winsup/cygwin/net.cc > @@ -19,6 +19,7 @@ details. */ > TODO: Convert if_nametoindex to cygwin_if_nametoindex and call > system functions on Vista and later. */ > #define _INC_NETIOAPI > +#define _NETIOAPI_H_ > #include "winsup.h" > #ifdef __x86_64__ > /* 2014-04-24: Current Mingw headers define sockaddr_in6 using u_long (8= byte) I applied this patch. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --envbJBWh7q8WU6mo Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVZaMeAAoJEPU2Bp2uRE+gVyUP/iZjibNXiXnxzO9+3mwZb0Nj 6WdsQWlFgP4IkzqNz1AnK7LAYi6E+81aIK7ilisS4koZtLZyQs/nuRxnDyDN2b+7 z7yHheG2HVZHut9QL7821B3UNHP/Wjcy2ulAV1i4rUHeBnOSYULuiKJUe38YVIUq 5/hUD1YRLMZa5I5Kqg5nAZjoeZPy0WQd/Tf+3Bbe2L2itU8o5uk4+1H5Y21Ge90I w8XUoU63Zh0syduDegJh/aQnO6aQH+pyPLxu4ME4VU+u8WYFPbBy0sAXa5MYqQls JnGYb3GMqwcA/x2NQj9bDpvPZ+h5ZSRmKJKC5Sa8fldC8bOLgUUuwz0m3/GXebtH TaHmp3btSjvq5DyR9AzNNT5OAz6RMVrsbJSGxtuHRujbFtS9OKZehTgCtbjY0n4A eYj5SN254ASR3uHwYfKnEriPTYy/UkuUo6ZJGmYHevFd2g6mJZ+dbW+MdjgcTIgE PY6Vn7F2SWzao6yqYO5fp/ZX9ccTlPf5EFZ2BjCwEemC8Y7by74I0n1yr6CgVfVC g/PbrStUtyGDz0BHdkB6YsoRRbdpEsIJa/JLlALBIstIEmvaqkI62z5Z3+yL/714 s8Aq48IfaKCO3uE5KfJ3Y8rMPZ+LG4IeMJ7944yQolvCaNnvaqw9ZbGdw/xh01VD omcfukU9oW7ZqA4AHYGg =xDJZ -----END PGP SIGNATURE----- --envbJBWh7q8WU6mo--