From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 16 Jun 2021 12:35:16 +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 1ltStA-0005MP-AU for lore@lore.pengutronix.de; Wed, 16 Jun 2021 12:35:16 +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 1ltSt9-0006Kz-EU; Wed, 16 Jun 2021 12:35:15 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltSsy-0006C2-A2; Wed, 16 Jun 2021 12:35:04 +0200 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1ltSsx-00020Q-Qh; Wed, 16 Jun 2021 12:35:03 +0200 Received: from mol by dude03.red.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1ltSsx-008N6O-P1; Wed, 16 Jun 2021 12:35:03 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Wed, 16 Jun 2021 12:35:03 +0200 Message-Id: <20210616103503.1995369-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210531132947.220277-2-flix.ptxdist@benfm.de> References: <20210531132947.220277-2-flix.ptxdist@benfm.de> MIME-Version: 1.0 Subject: Re: [ptxdist] [APPLIED] 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 Thanks, applied as 1e5fab0e2e79dd79d16385abcd3c9e6ec22a7917. Michael [sent from post-receive hook] On Wed, 16 Jun 2021 12:35:03 +0200, Felix Mellmann wrote: > Added a new patch to the ifplugd package which resolves a > linker error when using GCC10. > > Signed-off-by: Felix Mellmann > Message-Id: <20210531132947.220277-2-flix.ptxdist@benfm.de> > Signed-off-by: Michael Olbrich > > 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 000000000000..b1800d7c6517 > --- /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 a564ff7ddc85..1f8bb67d00ed 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 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de