From patchwork Sat Sep 5 12:35:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1357992 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.137; helo=fraxinus.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=IWk9GqyO; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BkDXk0fg1z9sPB for ; Sat, 5 Sep 2020 22:35:34 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 95588869F6; Sat, 5 Sep 2020 12:35: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 vs922jNRxJJf; Sat, 5 Sep 2020 12:35:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 56B5B85FD6; Sat, 5 Sep 2020 12:35:28 +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 972941BF3A3 for ; Sat, 5 Sep 2020 12:35:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9412A85FD6 for ; Sat, 5 Sep 2020 12:35:26 +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 eYDYY4ya6Dn5 for ; Sat, 5 Sep 2020 12:35:25 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 90DC485CF2 for ; Sat, 5 Sep 2020 12:35:25 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id z1so10086497wrt.3 for ; Sat, 05 Sep 2020 05:35:25 -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=gwRwJFf7j8UgmWvzERt38kjGjjzeWtWQe9zRdMw4Xxk=; b=IWk9GqyOC5YKQY+TvOJh6pZKkLrw0Mx53ZWMf71fgxm28yT6DRf/ZdPd79TcBoagiN X6tTdD6x/eCOrJq4OzZICRdhTja3E4BAwU3wHsH5kvMQ6VxS8gzoJ7hLFuv9UuQQkBCf Xqwzw5+ZZEp7BkYXcPWJjCseFy6iTssjyUW+4GErsIsVU/YIaFutNKfDUWJbFeiTgygZ B6+qwdzjbHGJ8NadVXSgYAQLgxfHAeA+hIVmlogwD+say97zClb72NR+J4Vo/0Hpo185 T9K8MOYLpoqfxwnTH/NANjtyrtHS/QgQTKALRESFLW2X46grbkF4qmXP9RJnFPrndUGt Q5Bw== 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=gwRwJFf7j8UgmWvzERt38kjGjjzeWtWQe9zRdMw4Xxk=; b=CJrCccZFrgRQP8kSKsWXCkC2DtHb0tC2vFVKj001Hj7faZWb9bYSVDen3vPEtbXbYg ONEwffi2XU7XhMjkyTzKObzG0UNh4MPUvDma9ajTPON3HZnmoJu5r3dQwbW06ovd808r luey2felpQ3mVu7VEo87FDlJl+vye8Veq6iYjHxpyTrjRpl2rTRxk+EBDFulS8j/jtYt pmRbKs9acUIq6hrVVPGcD0QuN2Rre0uf2CgY4hsBwfIG0yGwxQLOYWUeDrOqFMONvDXW PhFPG6UR3RlZ5IeMOUTSQlwiLjdZK9nWVKvugHSJwLTQH/pC1TbnVwJ2ErpQn0Dlp86R aXeQ== X-Gm-Message-State: AOAM531me9S0xmYVZD+/w73ksEYPQEt7Q32bIN1NRirD7fqb1wwn7mQm YhKxKlDM4mp3jtfT8siKS2ruEIN6wTE= X-Google-Smtp-Source: ABdhPJyyLNrQc3UIeptI6+6DOTQcujT+xwrtMnkudFyFAhb0Hfmuibgj7Gn4MOz5Zt+HtCLE3jntGQ== X-Received: by 2002:adf:bb44:: with SMTP id x4mr11993089wrg.76.1599309323696; Sat, 05 Sep 2020 05:35:23 -0700 (PDT) Received: from kali.home (2a01cb0881b76d0062c55ff6bf2a37aa.ipv6.abo.wanadoo.fr. [2a01:cb08:81b7:6d00:62c5:5ff6:bf2a:37aa]) by smtp.gmail.com with ESMTPSA id t1sm15886923wmi.16.2020.09.05.05.35.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Sep 2020 05:35:22 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Sat, 5 Sep 2020 14:35:18 +0200 Message-Id: <20200905123518.530182-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/netperf: fix build with gcc 10 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" Fixes: - http://autobuild.buildroot.org/results/547d9a803375cce93b8e3e7a59243190b71c7688 Signed-off-by: Fabrice Fontaine --- ...st_omni.c-fix-compilation-with-GCC10.patch | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 package/netperf/0001-src-nettest_omni.c-fix-compilation-with-GCC10.patch diff --git a/package/netperf/0001-src-nettest_omni.c-fix-compilation-with-GCC10.patch b/package/netperf/0001-src-nettest_omni.c-fix-compilation-with-GCC10.patch new file mode 100644 index 0000000000..261dfe9a0e --- /dev/null +++ b/package/netperf/0001-src-nettest_omni.c-fix-compilation-with-GCC10.patch @@ -0,0 +1,42 @@ +From b2fd0f324002d0cf52ae905b2a469bf1067f182a Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine +Date: Sat, 5 Sep 2020 14:30:20 +0200 +Subject: [PATCH] src/nettest_omni.c: fix compilation with GCC10 + +GCC10 defaults to -fno-common, which breaks compilation when there are +multiple definitions of implicit "extern" variables. Remove the extra +definitions. + +Fix #42 + +Signed-off-by: Tony Ambardar +[Retrieved from: +https://github.com/openwrt/packages/blob/master/net/netperf/patches/010-gcc10_multiple_definition_fix.patch] +Signed-off-by: Fabrice Fontaine +[Upstream status: https://github.com/HewlettPackard/netperf/pull/48] +--- + src/nettest_omni.c | 8 -------- + 1 file changed, 8 deletions(-) + +diff --git a/src/nettest_omni.c b/src/nettest_omni.c +index 852eeb1..862088a 100644 +--- a/src/nettest_omni.c ++++ b/src/nettest_omni.c +@@ -458,14 +458,6 @@ static int client_port_max = 65535; + + /* different options for the sockets */ + +-int +- loc_nodelay, /* don't/do use NODELAY locally */ +- rem_nodelay, /* don't/do use NODELAY remotely */ +- loc_sndavoid, /* avoid send copies locally */ +- loc_rcvavoid, /* avoid recv copies locally */ +- rem_sndavoid, /* avoid send copies remotely */ +- rem_rcvavoid; /* avoid recv_copies remotely */ +- + extern int + loc_tcpcork, + rem_tcpcork, +-- +2.28.0 +