delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/05/27/06:57:53

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=Fob4PqphoQs5B/Ij8zGlCG7S+acecmDsCOMXqQbGZvTZRAC+UgpFc
mTV0MbSH8xcJWPhCJqdj2MtvbO+waF//Vz10k1PeacFCndmENk2LJMwhpc1RhwGo
FYBY0sn9/CWWDGFecBmeFBQ8cbLyFz3mbhXI3vPNZujBBFignIwm1Y=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=GGP5npTOcTIq7VfvGjfHkqwF4rw=; b=Fd/t1j5i4n4oodWlJBrZZOrZUi4q
+7h5+1xT8zShnEi/KM5jwZccinLGqvZVYvXw5DEjbbLqVrFSJ9mJjKTYWpOlVrdI
IPkxDK8TLdITiPMJw1SzvCte2ZCPFCP2eFFCNkyHpFEoyMr3KRlIZkIk/rPc7qmW
heJfLmZieMuGV3I=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
Date: Wed, 27 May 2015 12:57:34 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT 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 AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <B8FA2086-BAFE-4B3E-9D52-2BE106CB9360 AT Denis-Excoffier DOT org> <20150521201509 DOT 9b9bfcffb07b3d9337de9e10 AT nifty DOT ne DOT jp> <20150522193704 DOT b0b9dfdaa4d63c61d7d5be55 AT nifty DOT ne DOT jp>
MIME-Version: 1.0
In-Reply-To: <20150522193704.b0b9dfdaa4d63c61d7d5be55@nifty.ne.jp>
User-Agent: Mutt/1.5.23 (2014-03-12)

--envbJBWh7q8WU6mo
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On May 22 19:37, Takashi Yano wrote:
> On Thu, 21 May 2015 20:15:09 +0900
> Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp> 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

-----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--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019