Received: by 10.223.148.5 with SMTP id 5csp6475903wrq; Wed, 17 Jan 2018 14:21:42 -0800 (PST) X-Google-Smtp-Source: ACJfBouslne2f900JIyyMKKsitewh6hk0yDkhtDA/0Hf3c+qudqOJbyoRJ5RjgJ1lC7rx+EhY+rh X-Received: by 10.98.75.91 with SMTP id y88mr34993300pfa.178.1516227702318; Wed, 17 Jan 2018 14:21:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516227702; cv=none; d=google.com; s=arc-20160816; b=0y3zuZmBSr3FjtbA+xGkWn6k68GrF7avbWmK60QT61XxhXV6BGFHxYncN+C1uGf2f5 +ElFGfuJUtjQOV6PLP6pvQB/kmBprPjwHOF5/XM6rQYhcq1nefvhrFxXx28lwx1Yc03Y Ooo4cFhX1g5lVRTwmddg5qKgoQwhHLLDghdwrMKbZ/ndYLYKbKX89lQWkanIlMLlVxXW cw8GmBxY1zI7QKzP4dgpGeusQ88/sarhceIzjWuZmqfqoU0XP5+AQJcY2sTQkvoOLfEX gKIr7X2BkrpXLHT0VDXYJdHsP2avY9BOkOPRySzezHqgc8fVeXm5XRAY173gRSxoZLoJ QNjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:date:message-id:from :references:cc:to:subject:arc-authentication-results; bh=35TuHpWoUO0HwOSqVvE0RbQa3U1cIfbNfx+92r8uHkI=; b=0dVZCwTvfhdKs0ZzGpQa7O0V7sNxRd7SqzPzkTOzDlFSmb6NJmzeOZpkxumi1z+YR8 th2m0T/cD7rmb0ZVNUcj5eDaN9om6HczCNrDI+xKJJ6YTLO4iVJ/fW89RF2CAu8FJrnV /aicMFuWxySQVK0Fkc2i/4/YVwEuKaUK+wdiH9XCYbfIH9NdTxbvPlTGy+IaH2jvnd3G RF6G8qhaqB+CjSnu2keeyFNYWhuhpEhjbMevl7Qh9p0uEGyiEgSc3CCPR8YbOPqnmvG1 Czp/oz4fEQQP3OIDGM4bR8xBYSbjnAKeILfFCe3R2JvUPKbGELdcJpACsBw2IkC8PazF ko7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n2si4571111pgq.169.2018.01.17.14.21.27; Wed, 17 Jan 2018 14:21:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753107AbeAQWVE (ORCPT + 99 others); Wed, 17 Jan 2018 17:21:04 -0500 Received: from mx2.mailbox.org ([80.241.60.215]:47298 "EHLO mx2.mailbox.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750816AbeAQWVD (ORCPT ); Wed, 17 Jan 2018 17:21:03 -0500 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 5AB0840F9F; Wed, 17 Jan 2018 23:21:01 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id FbDx0e2z8YVh; Wed, 17 Jan 2018 23:20:56 +0100 (CET) Subject: Re: ipv6 redefinition build issue with 4.15-rc8 To: Neil MacLeod , Jonas Bonn Cc: Daniel Wagner , connman@lists.01.org, "linux-kernel@vger.kernel.org" , "David S. Miller" References: <794202f5-e993-444f-f3fd-891276795926@monom.org> From: Hauke Mehrtens Message-ID: <0d51f6a6-0edc-1c18-3412-5a37cdc83873@hauke-m.de> Date: Wed, 17 Jan 2018 23:20:54 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/17/2018 08:31 PM, Neil MacLeod wrote: > All > > Further to my previous reply (reproduced below having been bounced by > linux-kernel) I have successfully built LibreELEC when using the > ConnMan patch from Jonas - there were no other failures. > > I have also built a number of network related packages (iftop, iperf, > ngrp, nmap, sshfs, tcpdump, udpxy, wireless-tools), again without > issue, so this particular 4.15-rc8 kernel change is only affecting > ConnMan as far as I can tell. Thanks for testing. > Regards > Neil > >> All >> >> Many thanks for the replies. >> >> To ensure my build environment is sane I tested again without reverting the kernel commit, and reproduced the connman build failure. >> >> Next I tested the change suggested by Hauke (kernel patch: http://ix.io/Eh5) and connman fails to build, however it fails with a different error this time: http://ix.io/Eh2 >> >> I then tested the change suggested by Jonas (connman patch: http://ix.io/Eh6) and connman builds successfully, no failure, so this might be a potential fix. You should import the libc header files first and then the Linux header files in user space applications, this is the supported order. Can you try this patch please: --- a/src/tethering.c +++ b/src/tethering.c @@ -31,11 +31,11 @@ #include #include #include -#include #include #include -#include #include +#include +#include #include #include "connman.h" Do we want to do any changes to the kernel header files? I do not know of any clean workaround to make this work, we can probably hack something for connman, but I think it is not worth the trouble. Hauke >> I'll now try a clean build with Jonas' patch and see if any other packages fail to build for the same reason as connman (I'm building a complete embedded distro with about 700 packages). >> >> I'll post again later with an update. >> >> Thanks >> Neil > > On 17 January 2018 at 15:25, Neil MacLeod wrote: >> All >> >> Many thanks for the replies. >> >> To ensure my build environment is sane I tested again without reverting the >> kernel commit, and reproduced the connman build failure. >> >> Next I tested the change suggested by Hauke (kernel patch: http://ix.io/Eh5) >> and connman fails to build, however it fails with a different error this >> time: http://ix.io/Eh2 >> >> I then tested the change suggested by Jonas (connman patch: >> http://ix.io/Eh6) and connman builds successfully, no failure, so this might >> be a potential fix. >> >> I'll now try a clean build with Jonas' patch and see if any other packages >> fail to build for the same reason as connman (I'm building a complete >> embedded distro with about 700 packages). >> >> I'll post again later with an update. >> >> Thanks >> Neil >> >> On 17 January 2018 at 09:03, Jonas Bonn wrote: >>> >>> On 01/17/2018 08:59 AM, Daniel Wagner wrote: >>>> >>>> Hi Neil, >>>> >>>> On 01/16/2018 07:51 PM, Neil MacLeod wrote: >>>>> >>>>> Since this commit in 4.15-rc8: >>>>> >>>>> >>>>> https://github.com/torvalds/linux/commit/6926e041a8920c8ec27e4e155efa760aa01551fd >>>>> >>>>> building connman 1.35 with glibc 2.26 now fails as follows: >>>>> >>>>> http://ix.io/EbP >>>>> >>>>> I'm not sure if this is a kernel issue, a glibc issue, or a connman >>>>> issue. >>>>> >>>>> Reverting the kernel commit resolves the issue, but isn't ideal (unless >>>>> it's the correct solution, of course). >>>>> >>>>> Does anyone have any better ideas? >>> >>> >>> Try switching the order of these headers around (src/tethering.c)... >>> netinet/in.h seems to depend on linux/in.h being included _first_ and it's >>> presumably being pulled in via linux/if_bridge.h now as a result of the >>> kernel patch (couldn't immediately see why, though... I suspect the >>> inclusion of libc-compat.h is the culprit.) >>> >>> #include >>> #include >>> >>> Yes, this is a hack and only masks the issue... nonetheless. >>> >>> /Jonas >>> >>> >>>> >>>> Since ConnMan does not redefine 'struct in6_addr' and friends I would say >>>> it is kernel/glibc header include problem. But I might be wrong here. >>>> >>>> @Hauke: Do you happen to know what is going on? >>>> >>>> Thanks, >>>> Daniel >>>> _______________________________________________ >>>> connman mailing list >>>> connman@lists.01.org >>>> https://lists.01.org/mailman/listinfo/connman >>> >>> >>