From patchwork Sat Sep 5 12:17:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1357990 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=ASu4f6k8; 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 4BkD921lktz9sPB for ; Sat, 5 Sep 2020 22:18:30 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 6E0FA203F2; Sat, 5 Sep 2020 12:18:28 +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 c6undj5mkQ0L; Sat, 5 Sep 2020 12:18:12 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 2D30B204A7; Sat, 5 Sep 2020 12:18:10 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 580811BF3A3 for ; Sat, 5 Sep 2020 12:18:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 4D9A220490 for ; Sat, 5 Sep 2020 12:18:08 +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 xLNEMJMMc9IL for ; Sat, 5 Sep 2020 12:18:06 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by silver.osuosl.org (Postfix) with ESMTPS id B65AB2026D for ; Sat, 5 Sep 2020 12:18:05 +0000 (UTC) Received: by mail-wm1-f41.google.com with SMTP id b79so9122775wmb.4 for ; Sat, 05 Sep 2020 05:18:05 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=4oxrofdUG+7AxkHfv65RvxYq8Utv59n0iRsdgpdNE30=; b=ASu4f6k8UslU0eCZug8tmLsLMgCy2xIvSv32/JYTiWniwKbGlY5co3CD5AilPhnkBB BQAhApYSg4JZWXt6QOj6ppUU/EHzJRDX3+bammeWC8fhWDwxCeEFnDyV1Qcs6WQd0a/2 yHNn1ZocRjoH7aHBhaZi5BJMGZfaXzxeNDokuuRni2jFo1roF5+JLnBMdUC6Cp+T6vs+ qYnVcRd4p0lOMBpVe4dTUVIsUpa1WsyFmx822tV2n8mcFkc1wUOZkp70Q0FSYIGn9wVz 1FvPjo7m1eRD6DeJ8pJpcgtWBPP7CFZAQJKvreECUKYc33AI4v2GlFIt1PP3vKdPhE/e zJUQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=4oxrofdUG+7AxkHfv65RvxYq8Utv59n0iRsdgpdNE30=; b=LK0jp8Oep66L8RLd/2LI0loq50aoUZughiFxDM1e530/0Re+cJxMMZrZs0c50u6f5B DJYSmDE9EQ8+7whRTC4fjQw7bxQuxxbe+EY+EN1p+B1+uQsXLOt6tIHnHYnTmn4N6x43 F7zyrJyEZELWFLCmjxhRODqwXnt6KUxpf3tGjyTSHMklWeNTJolW6B3GsqQvz0em2bNL V63dV1xI5aSjxgcfC4TS2ImX+LxjtiY59R17md0BRxuppWYZP616RypbjenREQvCD+RT T8/oz6RB/Wr5+Xjr7PO8vGdeizg5N8WYYd8629kj3IvJnQmevTFSexdfVSMuSWEl2Iqf Pz0w== X-Gm-Message-State: AOAM533mTxeWwTVxrZW3z5vr3wVDzwAMjzjV2iB4DL2wm3MRlyz4moLn NxLiFWajoSxBArnrcpwb2JXKPQPoqEU= X-Google-Smtp-Source: ABdhPJw4d0l30zC5x0i+UHtGX4kcqW3ajCBPCbUrQoZWqhwmKE2aE7lpH5dZ5TWAvNxN8DOJ8fHFDg== X-Received: by 2002:a1c:2983:: with SMTP id p125mr11893163wmp.21.1599308283772; Sat, 05 Sep 2020 05:18:03 -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 y6sm17457811wrt.80.2020.09.05.05.18.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Sep 2020 05:18:03 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Sat, 5 Sep 2020 14:17:53 +0200 Message-Id: <20200905121753.423958-2-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200905121753.423958-1-fontaine.fabrice@gmail.com> References: <20200905121753.423958-1-fontaine.fabrice@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/2] package/lcdproc: 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/67367f43cf8b2cc74e9a4f51f9d685ef058d5745 Signed-off-by: Fabrice Fontaine --- .../0003-Fixcompilation-with-GCC-10-x.patch | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 package/lcdproc/0003-Fixcompilation-with-GCC-10-x.patch diff --git a/package/lcdproc/0003-Fixcompilation-with-GCC-10-x.patch b/package/lcdproc/0003-Fixcompilation-with-GCC-10-x.patch new file mode 100644 index 0000000000..c8a3dc20a3 --- /dev/null +++ b/package/lcdproc/0003-Fixcompilation-with-GCC-10-x.patch @@ -0,0 +1,46 @@ +From 084126b03f29b33ab3e657c66e8c6a439f27f8e1 Mon Sep 17 00:00:00 2001 +From: Harald Geyer +Date: Mon, 10 Feb 2020 13:15:10 +0100 +Subject: [PATCH] Fix compilation with GCC >= 10.x + +Starting with GCC >= 10.x, -fno-common is used as default +instead of -fcommon. This patch fixes the compilation. + +Closes: #148 + +Suggested-by: Conrad Kostecki +Signed-off-by: Harald Geyer + +[Retrieved from: +https://github.com/lcdproc/lcdproc/commit/084126b03f29b33ab3e657c66e8c6a439f27f8e1] +Signed-off-by: Fabrice Fontaine +--- + clients/lcdproc/iface.c | 1 + + clients/lcdproc/iface.h | 2 +- + 2 files changed, 2 insertions(+), 1 deletion(-) + +diff --git a/clients/lcdproc/iface.c b/clients/lcdproc/iface.c +index 40e50cb7..1ac355bd 100644 +--- a/clients/lcdproc/iface.c ++++ b/clients/lcdproc/iface.c +@@ -32,6 +32,7 @@ + #define UNSET_INT -1 + #define UNSET_STR "\01" + ++IfaceInfo iface[MAX_INTERFACES]; + + static int iface_count = 0; /* number of interfaces */ + static char unit_label[10] = "B"; /* default unit label is Bytes */ +diff --git a/clients/lcdproc/iface.h b/clients/lcdproc/iface.h +index cc6dbaaf..c1bd6b5b 100644 +--- a/clients/lcdproc/iface.h ++++ b/clients/lcdproc/iface.h +@@ -18,7 +18,7 @@ + /** max number of interfaces in multi-interface mode */ + #define MAX_INTERFACES 3 + +-IfaceInfo iface[MAX_INTERFACES]; /* interface info */ ++extern IfaceInfo iface[MAX_INTERFACES]; /* interface info */ + + /** Update screen content */ + int iface_screen(int rep, int display, int *flags_ptr);