delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/05/11/11:52:26

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:from:content-type:content-transfer-encoding
:date:subject:to:message-id:mime-version; q=dns; s=default; b=uv
oBUCZykP8HQ28aFuYseJzWgjtI7UGJk/R+CnHGhIXJ8OGOu1zVBVGGPXIzFO6Oum
Ae4sr4FVHcl5QaSWM51+ttnggJami5eNe8c0mkDYifeCDpCueKcdHCTqVtFHOslV
nN80n/GsJ1uwLYdklzlf6hziKvGxaIaTNVUZqzmqg=
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:from:content-type:content-transfer-encoding
:date:subject:to:message-id:mime-version; s=default; bh=1V/aJ6vk
wcpDuwRu9EFNxx97mnI=; b=nVQftHUuOUEJ/w3DK62LvOipGFG/uvlnxTYCBCIL
DPh9M06tVSZ95IhU5HQeUcd1cIOV1PfIOqG/By1MwMmyPOPGTmDcs3lfg0tsvtbv
DrHQ2fS6W60jwus+ZUMbO/TrpnbxexeeZJ+aFXfcK58UWEpqi/97Naqs+tF1s0Ub
1Hg=
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=-1.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2
X-HELO: smtp5-g21.free.fr
From: Denis Excoffier <cygwin AT Denis-Excoffier DOT org>
Date: Mon, 11 May 2015 17:52:04 +0200
Subject: cannot build cygwin-2.0.2 because of net.cc (or because of some header.h)
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>
Message-Id: <B8FA2086-BAFE-4B3E-9D52-2BE106CB9360@Denis-Excoffier.org>
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\))
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t4BFqMhL028244

Hello,

In order to successfully build cygwin-2.0.2-1 (for x86, both XP and W7) i had to apply
the following patch (below). No such problem with cygwin-2.0.1-1.

Regards,

Denis Excoffier


diff -uNr newlib-cygwin-o/winsup/cygwin/net.cc newlib-cygwin-p/winsup/cygwin/net.cc
--- newlib-cygwin-o/winsup/cygwin/net.cc	2015-05-08 23:51:08.000000000 +0200
+++ newlib-cygwin-p/winsup/cygwin/net.cc	2015-05-11 10:12:57.816299800 +0200
@@ -2444,7 +2444,7 @@
   return -1;
 }
 
-extern "C" unsigned
+extern "C" NET_IFINDEX
 if_nametoindex (const char *name)
 {
   PIP_ADAPTER_ADDRESSES pa0 = NULL, pap;
@@ -2478,7 +2478,7 @@
 }
 
 extern "C" char *
-if_indextoname (unsigned ifindex, char *ifname)
+if_indextoname (NET_IFINDEX ifindex, char *ifname)
 {
   PIP_ADAPTER_ADDRESSES pa0 = NULL, pap;
   char *name = NULL;


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


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