From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 31 May 2021 15:31:37 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1lni13-0004rt-7K for lore@lore.pengutronix.de; Mon, 31 May 2021 15:31:37 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1lni12-0005tq-PD; Mon, 31 May 2021 15:31:36 +0200 Received: from mail.benfm.de ([81.169.149.46] helo=h2734822.stratoserver.net) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lnhzK-0005Ts-Ex for ptxdist@pengutronix.de; Mon, 31 May 2021 15:29:50 +0200 Received: from flix.benfm.de (unknown [10.1.0.21]) by h2734822.stratoserver.net (Postfix) with SMTP id 8745A1E4539E; Mon, 31 May 2021 15:29:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benfm.de; s=2020; t=1622467789; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gaGd7ueqOObBnOylNG0SP+zhyLYsAY8J6Eq87Vg7bkY=; b=YU5an8OryY1OPnpFNcXe6HpLxt9IG/adQZiOf2gz+HFkWWXSBit85FDJsiNWHJgAu737pw QQWmZgbci1K23pfVsjFR4vZLSjkSPXt+Z9IhIFaXfPw73TmuFI83vGbZcQSvFbURHq0uQt E/1KunFHtc0OLsrIExy1ssJxdZ5l9dBeW4janT9turSvwTP75C8lHC/ahD5BoBpMPUPF9a OTSG1GniQmhBLxrjsd/DYXFN9eQzULwhry4H9fjN/MjhXDhKlUO4LCw2KjPwMgtVtZ7x3N WSUF/GI9KVeBjTMIK0SaT+xXfAz1xlNIJ6pCvPHBBB/Byb2rj/dMCeDKFW/BBQ== Received: (nullmailer pid 220332 invoked by uid 1000); Mon, 31 May 2021 13:29:49 -0000 From: Felix Mellmann To: ptxdist@pengutronix.de Date: Mon, 31 May 2021 15:29:47 +0200 Message-Id: <20210531132947.220277-2-flix.ptxdist@benfm.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210531132947.220277-1-flix.ptxdist@benfm.de> References: <20210531132947.220277-1-flix.ptxdist@benfm.de> MIME-Version: 1.0 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH 2/2] ifplugd: Added new patch to fix a linker error with GCC10 X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Felix Mellmann Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Added a new patch to the ifplugd package which resolves a linker error when using GCC10. Signed-off-by: Felix Mellmann --- ...02-Fix-linker-error-when-using-GCC10.patch | 28 +++++++++++++++++++ patches/ifplugd-0.28/series | 3 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 patches/ifplugd-0.28/0002-Fix-linker-error-when-using-GCC10.patch diff --git a/patches/ifplugd-0.28/0002-Fix-linker-error-when-using-GCC10.patch b/patches/ifplugd-0.28/0002-Fix-linker-error-when-using-GCC10.patch new file mode 100644 index 000000000..b1800d7c6 --- /dev/null +++ b/patches/ifplugd-0.28/0002-Fix-linker-error-when-using-GCC10.patch @@ -0,0 +1,28 @@ +From: Felix Mellmann +Date: Mon, 31 May 2021 15:05:14 +0200 +Subject: [PATCH] Fix linker error when using GCC10 + +This patch fixes a linker error when using GCC10. Two +variables need to be marked as external to avoid multiple +definition. + +Signed-off-by: Felix Mellmann +--- + src/interface.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/interface.h b/src/interface.h +index d223b1f5fabc..fd4a5f4cea63 100644 +--- a/src/interface.h ++++ b/src/interface.h +@@ -21,8 +21,8 @@ + * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + */ + +-int interface_auto_up; +-int interface_do_message; ++extern int interface_auto_up; ++extern int interface_do_message; + + typedef enum { IFSTATUS_UP, IFSTATUS_DOWN, IFSTATUS_ERR } interface_status_t; + diff --git a/patches/ifplugd-0.28/series b/patches/ifplugd-0.28/series index a564ff7dd..1f8bb67d0 100644 --- a/patches/ifplugd-0.28/series +++ b/patches/ifplugd-0.28/series @@ -1,4 +1,5 @@ # generated by git-ptx-patches #tag:base --start-number 1 0001-Compilation-fails-because-of-kernel-header-inclusion.patch -# bbf895f48ef5cf6b103f60be48b437c9 - git-ptx-patches magic +0002-Fix-linker-error-when-using-GCC10.patch +# 5f6a3e3cf4117f7c3e207f9b9c45eb10 - git-ptx-patches magic -- 2.25.1 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de