Redefinition of `struct in6_addr'?
Corinna Vinschen
corinna-cygwin@cygwin.com
Wed Apr 24 15:44:00 GMT 2013
On Apr 24 17:34, Max Balduino wrote:
> Dear all,
>
> Looks like there's something wrong here:
>
> userwinemt@ioxp /usr/src/vpnc-0.5.2
> $ make install
> LC_ALL=C perl -w ./enum2debug.pl isakmp.h >vpnc-debug.c 2>vpnc-debug.h
> gcc -O3 -g -W -Wall -Wmissing-declarations -Wwrite-strings
> -DVERSION=\"0.5.2\" -c -o sysdep.o sysdep.c
> In file included from /usr/include/cygwin/in.h:267,
> from /usr/include/netinet/in.h:14,
> from sysdep.h:23,
> from sysdep.c:71:
> /usr/include/cygwin/in6.h:76: error: redefinition of `struct in6_addr'
>
> I'm compiling vpnc-0.5.2 on a fresh cygwin environment, just
> downloaded from stable distribution. I'm using gcc version 3.4.4
> (cygming special, gdc 0.12, using dmd 0.125). I've googled for it and
> found a post reading "Problems with latest cygwin + latest sources"
> that claims for the same error.
>
> Anybody has seen this before or has a quick workaround, please?
- You are not using the right mailing list for this kind of question.
Use the cygwin AT cygwin DOT com list instead.
- You're using an old and outdated compiler. Install the gcc4 package
instead.
- You're missing to paste the entire error message. Gcc usually prints
where the clashing definition is defined, too. But maybe that's just
in gcc 4.x.
- Last but not least, a simple testcase would be helpful.
Without that I can only guess: The file includes winsock.h because
it wrongly treats Cygwin as Windows environment. Don't do that.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
More information about the Cygwin-apps
mailing list