This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Redefinition of `struct in6_addr'?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]