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:mime-version:content-transfer-encoding :content-type:message-id:date:from:reply-to:to:subject :references:in-reply-to; q=dns; s=default; b=q7jGeq2UhQxzGbjiFwt UhopDxadeIQfX3ztUH2/CR5YzmLRQ3GMf1h/qtare4l6YJmcpqCgo26SOkbPgMH8 wv6dIGYCr+pbf6hsx6BdR+y6sez3uyBlA1PDlUuzZk1iBsuGCEsrn4rQ3dXGHHkb RdfuF/Rj2vu22JtQ7c10qxLI= 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:mime-version:content-transfer-encoding :content-type:message-id:date:from:reply-to:to:subject :references:in-reply-to; s=default; bh=Slr0aEtIhPjkqh9rFJMrGopBC mQ=; b=ANHpq5Pl9qZB4U+Cyx2I3xWykFJKULIKFrqegLWk2+5PEL/Wetr+fRLlg MR33G2MVFtKAl6L7E5H/onC4AJ/bNUWQBb4FWEEYI62B1lqcIEV4Ms+1J2g1XQ17 XNkJ+1C3PUkRex8CF9rhj9HM+NBKuiPOo2ErxFfZJOKTmFcQ64= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Spam-SWARE-Status: No, score=2.0 required=5.0 tests=AWL,BAYES_00,BOTNET,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE autolearn=no version=3.3.1 MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=UTF-8; format=flowed Message-id: <51782672.10509@cygwin.com> Date: Wed, 24 Apr 2013 14:37:38 -0400 From: "Larry Hall (Cygwin)" Reply-to: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 To: cygwin AT cygwin DOT com Subject: Re: Redefinition of `struct in6_addr'? References: <20130424154409 DOT GX26397 AT calimero DOT vinschen DOT de> <20130424175107 DOT GZ26397 AT calimero DOT vinschen DOT de> <20130424175359 DOT GH5968 AT type DOT youpi DOT perso DOT aquilenet DOT fr> <20130424181248 DOT GA26397 AT calimero DOT vinschen DOT de> In-reply-to: <20130424181248.GA26397@calimero.vinschen.de> On 4/24/2013 2:12 PM, Corinna Vinschen wrote: > On Apr 24 19:53, Samuel Thibault wrote: >> Corinna Vinschen, le Wed 24 Apr 2013 19:51:07 +0200, a écrit : >>>>> /usr/include/cygwin/in6.h:75:8: error: redefinition of ‘struct in6_addr’ >>>>> /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/in6addr.h:17:16: >>>>> note: originally defined here >>> >>> Don't know this file but this is a bug in config.h. struct in6_addr >>> is defined in a system header, so it should not be gratuitously defined >>> in a project header, especially if the definition collides with the >>> right one from the system header. >> >> Mmm, but here it's w32api definition vs cygwin definition. > > Maybe I didn't read it exactly, but the bottom line here is, when > building for Cygwin, either use the POSIX network headers (preferredly), > or use winsock.h. Mixing them is not supported. Yeah, though this case is a bit buried, so it's not obvious. Also the code is from 2008, so I expect it has suffered some bit rot over time with respect to Cygwin. In any case, it looks like removing iphlpapi.h from sysdep.c solves the problem. -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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