Home > error redefinition > error redefinition of struct in6_addr

error redefinition of struct in6_addr

Miller Cc: libc-alpha sourceware org, amwang redhat com, yoshfuji linux-ipv6 org, netdev vger kernel org, linux-kernel vger kernel org, libvirt-list redhat com, tgraf suug ch, schwab suse de, bhutchings solarflare com, vapier gentoo org, tmb mageia org Subject: Re: [libvirt] Redefinition of struct in6_addr in and Date: Wed, 16 Jan 2013 21:15:03 -0500 On 01/16/2013 01:57 PM, David Miller wrote: > From: Mike Frysinger > Date: Wed, 16 Jan 2013 12:04:56 -0500 > >> certainly true, but the current expectation is that you don't mix your ABIs. >> if you're programming with the C library API, then use the C library headers. >> if you're banging directly on the kernel, then use the kernel headers. not >> saying it's a perfect solution, but it works for the vast majority of use >> cases. > > This isn't how real life works. > > GLIBC itself brings in some of the kernel headers, as do various library > headers for libraries other than glibc. > > So you can get these conflicting headers included indirectly, and it is > of no fault of any of the various parties involved. > > We have to make them work when included at the same time somehow, and > this is totally unavoidable. > Just to put some code behind the comments I made earlier. Solution: ========= - Synchronize linux's `include/uapi/linux/in6.h' with glibc's `inet/netinet/in.h'. - Synchronize glibc's `inet/netinet/in.h with linux's `include/uapi/linux/in6.h'. - Allow including the headers in either other. - First header included defines the structures and macros. Details: ======== The kernel promises not to break the UAPI ABI so I don't see why we can't just have the two userspace headers coordinate? If you include the kernel headers first you get those, and if you include the glibc headers first you get those, and the following patch arranges a coordination and synchronization between the two. Let's handle `include/uapi/linux/in6.h' from linux, and `inet/netine

reopened defect netifd fails to build with musl Reported by: daniel.petre Owned by: developers https://www.redhat.com/archives/libvir-list/2013-January/msg01182.html Priority: high Milestone: Chaos Calmer 15.05 Component: base system Version: Trunk Keywords: netifd, musl Cc: Description make[3]: Entering directory https://dev.openwrt.org/ticket/19066 '/home/dani/openwrt/package/network/config/netifd' CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -I/home/dani/openwrt/staging_dir/target-mips_34kc_musl-1.1.6/usr/include/libnl-tiny -I/home/dani/openwrt/staging_dir/target-mips_34kc_musl-1.1.6/usr/include -I/home/dani/openwrt/staging_dir/target-mips_34kc_musl-1.1.6/usr/include -I/home/dani/openwrt/staging_dir/target-mips_34kc_musl-1.1.6/include -I/home/dani/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.6/usr/include -I/home/dani/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.6/include " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -I/home/dani/openwrt/staging_dir/target-mips_34kc_musl-1.1.6/usr/include/libnl-tiny -I/home/dani/openwrt/staging_dir/target-mips_34kc_musl-1.1.6/usr/include -I/home/dani/openwrt/staging_dir/target-mips_34kc_musl-1.1.6/usr/include -I/home/dani/openwrt/staging_dir/target-mips_34kc_musl-1.1.6/include -I/home/dani/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.6/usr/include -I/home/dani/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.6/include " LDFLAGS="-L/home/dani/openwrt/staging_dir/target-mips_34kc_musl-1.1.6/usr/lib -L/home/dani/openwrt/staging_dir/target-mips_34kc_musl-1.1.6/lib -L/home/dani/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.6/usr/lib -L/home/dani/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.6/lib " make -C /home/dani/openwrt/build_dir/target-mips_34kc_musl-1.1.6/netifd-2015-02-17/. AR="mips-openwrt-linux-musl-gcc-ar" AS="mips-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable

`struct in6_addr'? From: Max Balduino To: cygwin at cygwin dot com Date: Wed, 24 Apr 2013 23:45:47 +0200 Subject: Re: Redefinition of `struct in6_addr'? http://cygwin.com/ml/cygwin/2013-04/msg00396.html References: <20130424154409 dot GX26397 at https://cygwin.com/ml/cygwin/2013-04/msg00382.html 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 error redefinition dot fr> <20130424181248 dot GA26397 at calimero dot vinschen dot de> <51782672 dot 10509 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’ >>>>>> >>>>>> /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/in6addr.h:17:16: error redefinition of >>>>>> 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. Hey, I got it! It's not cygwin fault... It's the inclusion of which is done for the first time in sysdep.h, AFTER the inclusions of the

`struct in6_addr'? From: Max Balduino To: cygwin at cygwin dot com Date: Wed, 24 Apr 2013 19:26:42 +0200 Subject: Re: Redefinition of `struct in6_addr'? References: <20130424154409 dot GX26397 at calimero dot vinschen dot de> On Wed, Apr 24, 2013 at 6:15 PM, Max Balduino >> 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 > > First of all thanks a *LOT* for your quick answer! > > OK, sorry for having used the wrong mail-list! I re-compiled under gcc > version 4.5.3 (GCC) getting same result. > > I'm trying to compile an app, that's why I was posting on cygwin-apps > AT cygwin DOT com

 

Related content

c programming error redefinition of

c programming error redefinition of p here for a quick overview of the site Help Center Detailed answers to any questions you error redefinition of class c might have Meta Discuss the workings and policies of this site Error Redefinition Of Typedef About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting error redefinition of typedef gliststore ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of Error Redefinition Of class million programmers just like you helping

c compile error redefinition

c compile error redefinition p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and error redefinition of class c policies of this site About Us Learn more about Stack Overflow the Error Redefinition Of Typedef company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags error redefinition of typedef gliststore Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of million programmers just like you helping each other Join them it

c error redefinition

c error redefinition p here for a quick overview of the site Help Center Detailed answers to any questions error redefinition of struct node you might have Meta Discuss the workings and policies of this Error Redefinition Of Class C site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers error redefinition of typedef or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a Error Redefinition Of Typedef gliststore community of million programmers just like you helping each

compile error redefinition

compile error redefinition p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings error redefinition of typedef and policies of this site About Us Learn more about Stack Overflow Error Redefinition Of Typedef gliststore the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation error redefinition of class Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of million programmers just like you helping each other Join them it error redefinition

apache make error redefinition

apache make error redefinition p contribution towards the costs the time error redefinition of typedef gliststore and effort that's going in this site and building Thank You error redefinition of class Steffen Apache Lounge is not sponsored by anyone Your donations will help to keep this site alive and well Error Redefinition Of class and continuing the building of the binaries Compilation problem with Apache configuration LDAP Apache Forum Index - Apache Building Member Downloads View previous topic View next topic Author Message sasi Joined Error Redefinition Of C Jun Posts Location USA CT Posted Mon Jun ' Post subject

error redefinition of nion semun

error redefinition of nion semun p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of million programmers just like you helping each other Join them it only takes a minute Sign up Compilation error Redefinition of union name up

error redefinition different linkage

error redefinition different linkage p here for a quick overview of the site Help Center Detailed error redefinition of typedef answers to any questions you might have Meta Discuss the Error Redefinition Of Typedef gliststore workings and policies of this site About Us Learn more about Stack Overflow the company error redefinition of class Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join error redefinition of class the Stack Overflow Community Stack Overflow is a community of million programmers just like you helping each other

error redefinition of stat

error redefinition of stat p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies error redefinition of typedef of this site About Us Learn more about Stack Overflow the company Business error redefinition of typedef gliststore Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges error redefinition of class Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of million programmers just like you helping each other Join them it only

error redefinition of typedef uintptr_t

error redefinition of typedef uintptr t p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the typedef redefinition with different types xcode company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Typedef Undef Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of million duplicate typedef programmers just like you helping each other Join them it only takes

error redefinition of

error redefinition of p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of million programmers just like you helping each other Join them it only takes a minute Sign up GCC compiler error ldquo redefinition hellip previously defined rdquo

error redefinition

error redefinition p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Error Redefinition Of Typedef Learn more about Stack Overflow the company Business Learn more about hiring developers error redefinition of class or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Error Redefinition Of class Overflow Community Stack Overflow is a community of million programmers just like you helping each other Join them it only takes a minute

error redefinition of previously declared here

error redefinition of previously declared here p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of million programmers just like you helping each other Join them it only takes a minute Sign up Redefinition of hellip previously declared here

error redefinition different storage class

error redefinition different storage class p resources Windows Server resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community error redefinition of class c Magazine Forums Blogs Channel Documentation APIs and reference Dev centers error redefinition of class Retired content Samples We re sorry The content you requested has been removed You ll be auto redirected error redefinition of typedef in second C C Building Reference C C Build Errors Compiler Errors C Through C Compiler Errors C Through C Compiler Error C Compiler Error C Compiler Error Redefinition Of Typedef gliststore

error redefinition of group name

error redefinition of group name p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this error redefinition of typedef site About Us Learn more about Stack Overflow the company Business Learn error redefinition of typedef gliststore more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question Error Redefinition Of class x Dismiss Join the Stack Overflow Community Stack Overflow is a community of million programmers just like you helping each other Join them it

error redefinition of function c

error redefinition of function c p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about error redefinition of class c Stack Overflow the company Business Learn more about hiring developers or posting ads Error Redefinition Of Typedef with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow Error Redefinition Of Typedef gliststore is a community of million programmers just like you helping each other Join them

error redefinition of main

error redefinition of main p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Error Redefinition Of Typedef Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is error redefinition of typedef gliststore a community of million programmers just like you helping each other Join them it only takes a minute Sign

error redefinition of truct timespec

error redefinition of truct timespec p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of million programmers just like you helping each other Join them it only takes a minute Sign up resolving redefinition of timespec in time h

error redefinition function

error redefinition function p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about Redefinition Of Function Error In C hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges error redefinition of typedef Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of million programmers just like you helping each error redefinition of typedef gliststore other Join them it

error redefinition different basic types

error redefinition different basic types p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site error redefinition of typedef About Us Learn more about Stack Overflow the company Business Learn more about Error Redefinition Of Typedef gliststore hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join error redefinition of class the Stack Overflow Community Stack Overflow is a community of million programmers just like you helping each other Join them it

error redefinition of operator

error redefinition of operator p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss error redefinition of typedef the workings and policies of this site About Us Learn more about Error Redefinition Of Typedef gliststore Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow error redefinition of class Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of million programmers just like you helping each Error Redefinition Of class other

error redefinition of template class

error redefinition of template class p here for a quick overview of the site Help Center Detailed answers to any questions you might have error redefinition of class c Meta Discuss the workings and policies of this site About Us Error Redefinition Of class Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with error redefinition of typedef us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of million programmers just error redefinition of typedef gliststore like you helping

error redefinition make

error redefinition make p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers error redefinition of typedef or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x error redefinition of typedef gliststore Dismiss Join the Stack Overflow Community Stack Overflow is a community of million programmers just like you helping each other Join them it error redefinition of class only takes

error redefinition different

error redefinition different p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About error redefinition of typedef Us Learn more about Stack Overflow the company Business Learn more about hiring Error Redefinition Of Typedef gliststore developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join error redefinition of class the Stack Overflow Community Stack Overflow is a community of million programmers just like you helping each other Join them it only takes

error redefinition in c

error redefinition in c p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Error Redefinition Of Class C Stack Overflow the company Business Learn more about hiring developers or posting ads error redefinition of typedef with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow Error Redefinition Of Typedef gliststore is a community of million programmers just like you helping each other Join them it

gcc error redefinition struct

Gcc Error Redefinition Struct p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of error redefinition of c this site About Us Learn more about Stack Overflow the company Business Error Redefinition Of C Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask c error redefinition of function Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of million programmers just like you helping each other Join them it only