This is the mail archive of the
mailing list for the Cygwin project.
Re: Redefinition of `struct in6_addr'?
- From: "Larry Hall (Cygwin)" <reply-to-list-only-lh at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 24 Apr 2013 14:37:38 -0400
- Subject: Re: Redefinition of `struct in6_addr'?
- References: <CAEE3Wrm8MwsN2MMNTRGdLgJvSHPnusJN-TXZrJFL-26BtrW_ng at mail dot gmail dot com> <20130424154409 dot GX26397 at calimero dot vinschen dot de> <CAEE3Wrm4iARi33g3gOqfbyJ_Jwc6phQ8xNZSQ6=Cknj-bUQ1-g at mail dot gmail dot com> <CE9C056E12502146A72FD81290379E9A6095C4FA at ENFIRHMBX1 dot datcon dot co dot uk> <CAEE3Wr=cDmAKuJ5rDK0wYoW9hVYzdfTnXCvjVMUhe0qgC4kzGA at mail dot gmail dot com> <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>
- Reply-to: cygwin at cygwin dot com
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â
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.
> 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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple