delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/04/24/13:51:27

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:content-transfer-encoding
:in-reply-to; q=dns; s=default; b=hiyYQOlrtao7ufm/7rVeUmfu0n7LcQ
mjOe37o4Lgjp4oxLIC+hHPECLJVcBPV3UqC8TrJB770T4tX5cZxsPNpLM6Djci9W
X1ORULfcJ+Cx00iJmVCdHzEx488/pn6A58c0ZKusuVNOaFrl3ggw+LFdLrfKGA3K
7GqPYQGXURBEo=
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:content-transfer-encoding
:in-reply-to; s=default; bh=QRgv5HmXpreD8ezOEe7k8ZDEWW8=; b=lgX9
xe1pWQ7BnLn7X7KC0YR52aIr3wCBbQSCcXWB9J3NUbEu7xlv5x/dAH/6wDru1Oyq
fpaBi1zd85NQjciq3Dl3VGeE8iRA9X8hCO9ajKiUP5q8MXjs/lSK3akJJgBNXSDr
z7KvCpDdlYgMXDaFkwOzSWCHR3v89BfRziRBaew=
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
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1
Date: Wed, 24 Apr 2013 19:51:07 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Redefinition of `struct in6_addr'?
Message-ID: <20130424175107.GZ26397@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
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>
MIME-Version: 1.0
In-Reply-To: <CAEE3Wr=cDmAKuJ5rDK0wYoW9hVYzdfTnXCvjVMUhe0qgC4kzGA@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)

On Apr 24 19:26, Max Balduino wrote:
> > I'm trying to compile an app, that's why I was posting on cygwin-apps
> > AT cygwin DOT com. You can find it at
> > http://www.unix-ag.uni-kl.de/~massar/vpnc/ it's a cisco-compatible vpn
> > client.
> >
> > I'm not sure what did you mean "a simple testcase would be helpful"?

A simple testcase is usually a shot and simple, self-contained,
out-of-the-box compilable test application, preferredly in plain C,
which allows to reproduce the issue.

> > As of the complete gcc error dump, here it also is:
> >
> > userwinemt AT ioxp /usr/src/vpnc-0.5.3
> > $ make install
> > gcc -O3 -g -W -Wall -Wmissing-declarations -Wwrite-strings
> > -DVERSION=\"0.5.3\"   -c -o sysdep.o sysdep.c
> > In file included from /usr/include/cygwin/in.h:267:0,
> >                  from /usr/include/netinet/in.h:14,
> >                  from sysdep.h:23,
> >                  from sysdep.c:71:
> > /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
> > In file included from sysdep.h:31:0,
> >                  from sysdep.c:71:
> > config.h:131:83: warning: ‘struct debug_strings’ declared inside parameter list
> > config.h:131:83: warning: its scope is only this definition or
> > declaration, which is probably not what you want

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.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

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