From patchwork Mon Aug 24 18:21:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1350598 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=WXSEXERb; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Bb0nd4MjCz9sTC for ; Tue, 25 Aug 2020 04:21:41 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id DC6E72154F; Mon, 24 Aug 2020 18:21:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O6hZyavIU4mz; Mon, 24 Aug 2020 18:21:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id CC1E821552; Mon, 24 Aug 2020 18:21:32 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id B2BF61BF2B7 for ; Mon, 24 Aug 2020 18:21:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id AD95B85F33 for ; Mon, 24 Aug 2020 18:21:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id etGOcS8VP8ws for ; Mon, 24 Aug 2020 18:21:31 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by fraxinus.osuosl.org (Postfix) with ESMTPS id E46DC85F31 for ; Mon, 24 Aug 2020 18:21:30 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id z9so356097wmk.1 for ; Mon, 24 Aug 2020 11:21:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1YH0CBxk9eHac1R3X91E26pxvPteM7rj+jaCvYAFMp4=; b=WXSEXERb+OIaNXqBUamIg6bEikis879+GaZzxa8JvfAFPkcwZVWhonndgiikmsVHO8 ZQRBlFJ3M4oiHG30y9k3jA+fU0eA63bq3J+3WxAoJBBK0VlG1QxJ7+4VQArlo0KgCCoT FJG8pv2vffntsH9AxKAZG6ZLfEOmYdWL7llXSeUpZObJeW6DfO8j5O8JPSU0glM8s+Tz 5YHuSgfRGUvTll7ZJuLlpWTXgae18AN5oC966s8JaYZpvv2TiJICQyx5I3vjX7+c7Uns 5iOy11TCAquVKJ0DXwR041SOJRY2GhyIXLDnjixAH4F59C9WpgFv/mHkUTmUAee/o0DC RQbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1YH0CBxk9eHac1R3X91E26pxvPteM7rj+jaCvYAFMp4=; b=UKtgHnGBJkgLo33wJ/J7WiJdLp+z88NMKB0VaKMvlZ+LTtDXpccpxCK/XrM33GTHUo g8xszIT6TtLJlJpUuFeA2kq108pfj5TDM/RSTswdqI3c8GfaTTMPODC2h+0DYFJ2kkan Sd6qoS7lwXobLMNgS1ITRvqTVP81gBChk6dPB+oO/DJwtivUznn2MA15CY17BIBX4K50 P/LnQq1gGDFDinBDI0sLobWu+g7rcGH6JsTbevFuru6LR9CRDRiWysrlAzgNHUgsVFSZ EZrd7eMHbV6iOai7Ft3TFpeavBBlo/jH2P3LPut6marfpWAninOIWB37XxLCloGdjdRU tkFg== X-Gm-Message-State: AOAM531tFivr/NNI0iIQtsoPGsab3qL8Sj3m2Dj3IrSrXyGtgjKppHWi t7/mB+2VoS77PBc+17sLiJa2V30GNCs= X-Google-Smtp-Source: ABdhPJyKDiKEd0FPwWg5n2I4oAkCipsYWrfPUmxkAMc4dkorr8e55SoZh55PlLmEdBoeGaBQ2ECiQw== X-Received: by 2002:a1c:105:: with SMTP id 5mr511758wmb.83.1598293289014; Mon, 24 Aug 2020 11:21:29 -0700 (PDT) Received: from kali.home (2a01cb0881b76d00c2afd0dfa851d2b9.ipv6.abo.wanadoo.fr. [2a01:cb08:81b7:6d00:c2af:d0df:a851:d2b9]) by smtp.gmail.com with ESMTPSA id r16sm28090095wrv.33.2020.08.24.11.21.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 11:21:28 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Mon, 24 Aug 2020 20:21:21 +0200 Message-Id: <20200824182121.1929324-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2, 1/1] package/kismet: fix build with gcc >= 9 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" kismet fails to build with gcc >= 9 on: In file included from /home/buildroot/autobuild/instance-3/output-1/host/xtensa-buildroot-linux-uclibc/sysroot/usr/include/sys/socket.h:39, from ipc_remote.h:61, from ipc_remote.cc:34: /home/buildroot/autobuild/instance-3/output-1/host/xtensa-buildroot-linux-uclibc/sysroot/usr/include/bits/socket.h:289:33: error: flexible array member 'cmsghdr::__cmsg_data' not at end of 'struct' 289 | __extension__ unsigned char __cmsg_data __flexarr; /* Ancillary data. */ | ^~~~~~~~~~~ Adding -std=c++11 fix the build and can be removed as soon as kismet is bumped to latest version as the offending code has been removed. It should be noted that kismet builds fine with gcc 8 so it remains unclear why this build failure is raised only with gcc >= 9 (build failure confirmed with gcc 9 and 10) Fixes: - http://autobuild.buildroot.org/results/85f7c746ae1cc19f8839f892f0c280dcb0444ea9 Signed-off-by: Fabrice Fontaine --- Changes v1 -> v2 (after review of Thomas Petazzoni): - Drop incorrect patch and use -std=c++11 package/kismet/kismet.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/kismet/kismet.mk b/package/kismet/kismet.mk index d3946d65f3..49ec6d1467 100644 --- a/package/kismet/kismet.mk +++ b/package/kismet/kismet.mk @@ -17,6 +17,11 @@ KISMET_AUTORECONF = YES KISMET_CXXFLAGS = $(TARGET_CXXFLAGS) +# flexible array member 'cmsghdr::__cmsg_data' not at end of 'struct' +ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_9),y) +KISMET_CXXFLAGS += -std=c++11 +endif + ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y) KISMET_CXXFLAGS += -O0 endif