Received: by 10.223.148.5 with SMTP id 5csp6494852wrq; Wed, 17 Jan 2018 14:35:26 -0800 (PST) X-Google-Smtp-Source: ACJfBovareCc1Lk+wa6/z6Tf2x9kb1Tld6C/zTtrqhjVu8G+KjxuyunVmNo0InsNL427yLoog5G6 X-Received: by 10.84.214.15 with SMTP id h15mr1984641pli.75.1516228525976; Wed, 17 Jan 2018 14:35:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516228525; cv=none; d=google.com; s=arc-20160816; b=Rtt+1i9MV9aXedgazc3xpSUT3kyes8zi51L54FRnfAawqpYQejXZmdbh5HPjvvfCzU 6j+sYwkPwZBm2lKRpIcPhK0LrgdyVts2cu+HpV3UuB6pBtwablN/QxG5nckpFqaX3wEd V6zPVmO01YhvuV8xFB7iE89WLDUFroNdjNPTMI/6HVaoMlgrgT4ZE/8S8yKSiO5FsS6F NoVvXTvkgMSaSN812Q5TePCtqtW6/ysvInOGJlOvQ+I22Sl88YQik0KJhQRq24GDRNfi N8YNHSTa4URXHuq3E18u5YKb+KSnnLeTyrzcwNTECFSd34P63lA476FAqkCE6yfBeCYN yoUw== 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:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=5X/hiELN0aqseluSEMdIKEBf4itV3Te+rIGfiVxqCxc=; b=OTZDeOm5C0/uaPZQgDCeg+JMmyUmfoJYLrLb44ak6qTpV50nUhYCyjMm/I9G9HTFgQ V4GuOpyc+eiMQDFlHcznkC2hTg7v3b97HAkz03S4fygPvr2YToWYfHScRa9ANtSW6kwH xOebncRW8bYAegVzHi1SSL2Y4DKdDmRHGnyL/tsi+yeeAlYQ0w2wBm5TEXMcq2pOrZsy peTkIcTne7IhwcH7Fl57Db0qur/0n/nhNrd/DSbv5BSxTLpZKQjbW2DuqzlWXyV2DzQq LJdEFVgMWOzNhsNB2SRQkO1E+UJCzHloPFnPQvEyaI29fCWWpEF/wKXMtlhskGVS73B0 vAHw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=monom.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m5si5303775plt.642.2018.01.17.14.35.11; Wed, 17 Jan 2018 14:35:25 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=monom.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753533AbeAQWer (ORCPT + 99 others); Wed, 17 Jan 2018 17:34:47 -0500 Received: from mail.monom.org ([188.138.9.77]:52724 "EHLO mail.monom.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752901AbeAQWeq (ORCPT ); Wed, 17 Jan 2018 17:34:46 -0500 Received: from mail.monom.org (localhost [127.0.0.1]) by filter.mynetwork.local (Postfix) with ESMTP id 9F816500944; Wed, 17 Jan 2018 23:34:41 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail.monom.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 Received: from helium.monom.org (ppp-93-104-166-50.dynamic.mnet-online.de [93.104.166.50]) by mail.monom.org (Postfix) with ESMTPSA id EF7F450057B; Wed, 17 Jan 2018 23:34:37 +0100 (CET) Subject: Re: ipv6 redefinition build issue with 4.15-rc8 To: Hauke Mehrtens , Neil MacLeod , Jonas Bonn Cc: connman@lists.01.org, "linux-kernel@vger.kernel.org" , "David S. Miller" References: <794202f5-e993-444f-f3fd-891276795926@monom.org> <0d51f6a6-0edc-1c18-3412-5a37cdc83873@hauke-m.de> From: Daniel Wagner Message-ID: Date: Wed, 17 Jan 2018 23:34:37 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <0d51f6a6-0edc-1c18-3412-5a37cdc83873@hauke-m.de> Content-Type: text/plain; charset=utf-8; format=flowed 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 11:20 PM, Hauke Mehrtens wrote: > 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. Nah, don't worry, we just fix this in ConnMan. Thanks a lot for the excellent input! I'll cook a patch for this. Thanks, Daniel