From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23811 invoked by alias); 19 Aug 2013 18:52:28 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 23692 invoked by uid 48); 19 Aug 2013 18:52:26 -0000 From: "carlos at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug network/15850] Glibc headers have conflicts with kernel headers on the definition of struct in6_addr Date: Mon, 19 Aug 2013 18:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: network X-Bugzilla-Version: 2.18 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: carlos at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-08/txt/msg00091.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15850 --- Comment #4 from Carlos O'Donell --- (In reply to Rich Felker from comment #3) > I don't see "C. Coordinate" as an alternative to the problems A and B above. > The coordination only works with new post-coordination kernel header > versions (problem A). Assuming glibc is still producing its own definitions > rather than including the kernel headers (and just turning off its own > definitions if the kernel version was already included), problem B does not > occur in the case of strictly conforming applications which are not > including the linux/*.h headers. However, there's still the possibility of > unexpected inconsistency for applications which do use linux/*.h. Sorry Rich, I have had little sleep and I was being a bit tongue-in-cheek here. Regardless of how much coordination we have if you have an old system you will still have "A." (dependence on new glibc and new kernel headers). I think that "B." will depend largely on the exact headers you are trying to fix and this is why we're trying to resolve these one at a time for each header. However, it is true that in this particular case the glibc headers will choose specifically not to define certain structures if it is known that kernel header provides a conforming definition. > I'm not sure what the intended usage case you're trying to support is. If > your intent is that the headers roughly match, then it seems like > applications should not be including the linux ones, and I'm not sure why > it's more desirable to "support" this case and get it 90-99% "right" instead > of just documenting that it's wrong (and possibly even using #error to > correct this bad practice). It's not wrong, and we should support it. What do we loose by coordinating the two sets of headers? -- You are receiving this mail because: You are on the CC list for the bug.