Received: by 10.223.148.5 with SMTP id 5csp6271446wrq; Wed, 17 Jan 2018 11:32:11 -0800 (PST) X-Google-Smtp-Source: ACJfBosy4pW1HhyEpDDy/6KQKB5frXCyZ1Bn9Sw4jpcHHKrr6RlDFX6EQBgGkqgV85YibkOjws79 X-Received: by 10.84.149.168 with SMTP id m37mr42502638pla.353.1516217531627; Wed, 17 Jan 2018 11:32:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516217531; cv=none; d=google.com; s=arc-20160816; b=CnTPxe+/RCp7Jm8soAwsFPcju6njVMo3ldHQ1mPpPofhexG30kFSM3o/utK3Lqze4W 6nRFZ5xPcwLMI2/nZxbapi1NCFARvVInWzdAGg1FdcpAM98PKdXpcZ2+BTMXkRe0rSsi FiAzwQnY4NRcwdcnCq1YkdUA4TXHRchPoyrdR3XA3eL50pDqC/E16PRL/usU0mv5q+CH vNVK22jPfkUCVoJv1VG9XbXjsj89+c76bzo+Bahd5L7rB6Cppj7tWUdGMG6/K0ILeCka +29BiA0huHukajQ7oIzi74P6XsAlvMix/NzQgt/Hr3CDw1Wc32eadXWW3ccBaDDz3Yda 9Vzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=uKxCeO8VO9ztJn1YsT5jTuKD+Yg9yGlkPgR7ugpHkzA=; b=t2tFm1t1NcASw/42AaJEZAU9LUs4Jx/nRBXHWsikIBURM/BfyjXbIQd/MMEwwUPNkd keMBGcEm0hXtG131QSLB2ATCtACD/HgYU8ZV1/p5Ryy+gwZAIib7D2Se7vyNpUWQ9mZj kEgnYLavrwvMDSVjkaVqcML49HQCVCzprV37HGCPSgYb6qKlyiQbv32CTbLX7dRjlX2C stP7dJARGwNowvlLXJlb5lsj5JZicd7DGTb6TA9sy4VQ5bG26iwLuYo5i6ASO4LuY+1f Z9QSXY8NcFrF2DuFHkTI1iS5yLtp8FbOnIzGGlGfQaeFVmJFBY7cXqLETTLzdRvyEjM6 0Xjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nmacleod-com.20150623.gappssmtp.com header.s=20150623 header.b=f+DbCghH; 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 y64si4305732pgy.247.2018.01.17.11.31.57; Wed, 17 Jan 2018 11:32:11 -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; dkim=pass header.i=@nmacleod-com.20150623.gappssmtp.com header.s=20150623 header.b=f+DbCghH; 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 S1754482AbeAQTbI (ORCPT + 99 others); Wed, 17 Jan 2018 14:31:08 -0500 Received: from mail-it0-f67.google.com ([209.85.214.67]:46397 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754221AbeAQTbF (ORCPT ); Wed, 17 Jan 2018 14:31:05 -0500 Received: by mail-it0-f67.google.com with SMTP id c16so10546843itc.5 for ; Wed, 17 Jan 2018 11:31:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nmacleod-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=uKxCeO8VO9ztJn1YsT5jTuKD+Yg9yGlkPgR7ugpHkzA=; b=f+DbCghHhLiymhxTK/TnG+KT/AiHaIZrBHao+HTBy7eDgf9g7GgY17ecixEFLNoSzq 2Ax47TSZay0c6KH++/elsva6NzMoKOVLk3SdiG97tcA+27FLuZguuPVVexSRpH6eeqkJ JOUJU/+0U2SQ5X1ZS1+KktLzLzjUXVlSbjoARblUQOQ9F39FBDhlaGmIo+rSPqI4RP7e QFlDEhqFyQPA4Z9B0laxzw6S74EvYkuHwBiS5fQzNbRSaYXY+wogighnrvkYfMfJWJ2O Kzbel7O9FbNfW9REIiz4fFIKcJ/1rDjpvyNa0QKCdAVzlTtBC7Ho3CRbu20jAGyvyuyY tR1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=uKxCeO8VO9ztJn1YsT5jTuKD+Yg9yGlkPgR7ugpHkzA=; b=j1DXiS+5pH8ZDgp6LLwHEM2FsWkLSFcML+iWCgRbpGKahjyEbj5f1NIob0hKNWbFLH AlBfrsGpI2EShNyQdM1wEJUbCpA9bhneZUs4xjIy002hMyr5UuWT/pGu4sjs7sa/1rsO JqZL8tXu+5hVgqEinDOYoQY6rtT5Xds4FrH2vTW0/T+uLLhhm+QFO5FjTAnFJwdaHUKD Iy0GFxkaM8s5DbA9X7y1LgIObsv5XYuyShJKxTe3NHdfR0r9i6A/uOcZhJ9sYZ5/pUZ1 fujJtWerEMnhFuZSuZkCtKXnNya4znUvDm2QVYGvwv9NJpuaGay9yL6vlOrKPnpTaXoh DdFg== X-Gm-Message-State: AKwxytcdhXeBj7bHNCq+abmYwn4+hJ/tKBpZR5SbtzR0fNhKMoxB1mOu O5Pg5PQS7haZy0azSXDASfq1nWnPvq+SxNbwLJxygg== X-Received: by 10.36.110.85 with SMTP id w82mr24920693itc.118.1516217464982; Wed, 17 Jan 2018 11:31:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.2.59.95 with HTTP; Wed, 17 Jan 2018 11:31:04 -0800 (PST) X-Originating-IP: [86.186.94.69] In-Reply-To: References: <794202f5-e993-444f-f3fd-891276795926@monom.org> From: Neil MacLeod Date: Wed, 17 Jan 2018 19:31:04 +0000 Message-ID: Subject: Re: ipv6 redefinition build issue with 4.15-rc8 To: Jonas Bonn Cc: Daniel Wagner , Hauke Mehrtens , connman@lists.01.org, "linux-kernel@vger.kernel.org" , "David S. Miller" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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. > > 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 >> >> >