From patchwork Fri Aug 21 19:18:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1349499 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.138; helo=whitealder.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=o4dIPbj2; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BYBJQ4nhVz9sPB for ; Sat, 22 Aug 2020 05:23:34 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 52A0388656; Fri, 21 Aug 2020 19:23:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0fD2Bspu3mRA; Fri, 21 Aug 2020 19:23:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id E8C248857C; Fri, 21 Aug 2020 19:23:27 +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 A0A9D1BF5DF for ; Fri, 21 Aug 2020 19:23:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 8508D22654 for ; Fri, 21 Aug 2020 19:23:26 +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 45R3t7cZ408D for ; Fri, 21 Aug 2020 19:23:17 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by silver.osuosl.org (Postfix) with ESMTPS id CC43B23426 for ; Fri, 21 Aug 2020 19:19:14 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id b17so2138740wru.2 for ; Fri, 21 Aug 2020 12:19:14 -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=FDVdFXBciaFYwSggx1NR5VtzcFctMDs1ZHsIqHWeAps=; b=o4dIPbj2JoudNZOAV+8YSiGreWuhYlJMnTe6oj6AV3jA0gIDrKOifOiJDCsXVcv861 zIyJC2VrrUI1T1+z6DLtTsdIjjVVROGlk3cOTrEHml2HNMOWmfHTCnD7lGDrsFjxxMa7 AEfSGROYaKF2bhXFUujdpzhcnJxbF5O5EaaUdF51MabhFy+F/zNPYsntaxPkJrOXho/o 50H4WoKtL4D4s+mBii3mDbw2HMKRXAnSz+DxgwlzVCNOQ6Mrep5DWUParqxTLcY3b3n/ cbezvWAkiFf8yMvcNDam340yHwQsoL9xgclL1FaANjOPfMlVi1/Xzpv5TqWP5ne0trHV 2QvQ== 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=FDVdFXBciaFYwSggx1NR5VtzcFctMDs1ZHsIqHWeAps=; b=OphcD/w4aPXfhJ6/oOhtSX2XRIcXMfdzeDrP5IO37bgosOk5mnEVJ60SO8Fnfw1wEX s0el9tCAQS7aKzowKejTB4a3S7Ki0rt99VM1vopxwRxNuy6mldAhlbe7DI90yUOXoNHu X7GVvIL48AlIhrhDvAtCZsnOl+4Tw0q+RlEwXP25qPEsBQkvCgIW4HmL+NzzKvuzuwdQ FfQWdcTlUmFghwWyYbcImL5OewKDvuL9/S4lq0Mc0FBUrMEepVUTXW2QCNnik0+27rbc r8mOJv8y5GeZOWxp18iHDjbmUCmrikMMr8UvD8I6ohNfqP/bQx75W9E9AvijPaZesjC9 K4/w== X-Gm-Message-State: AOAM530p9wtnZDdNiq2hWml5ORKP5Rh7r2iUSPbbFPNxtesE/wyfNrmi AYMpKJ61a+lHITxG7IRZ7/rHZXoLxUDTrQ== X-Google-Smtp-Source: ABdhPJxqJTJJPFqAPDDWNaPc0YJ5npm3YOJUU8V0aIHUZmGUofWDqeumoEbCSnV2c5zza4zc9ZEPYw== X-Received: by 2002:adf:f207:: with SMTP id p7mr4350153wro.292.1598037552814; Fri, 21 Aug 2020 12:19:12 -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 j5sm8310259wma.45.2020.08.21.12.19.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Aug 2020 12:19:11 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Fri, 21 Aug 2020 21:18:42 +0200 Message-Id: <20200821191842.3237320-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/ncftp: 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/78822bc0e0039e8f8949011a256cac022863276f Signed-off-by: Fabrice Fontaine --- package/ncftp/0001-fix-gcc-10.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 package/ncftp/0001-fix-gcc-10.patch diff --git a/package/ncftp/0001-fix-gcc-10.patch b/package/ncftp/0001-fix-gcc-10.patch new file mode 100644 index 0000000000..8ff9c44c50 --- /dev/null +++ b/package/ncftp/0001-fix-gcc-10.patch @@ -0,0 +1,24 @@ +Fix build with gcc 10 + +Add missing extern to gBm to fix the following build failure with +-fno-common which is enabled by default with gcc 10: + +/usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: bookmark.o:(.bss+0x10): multiple definition of `gBm'; gpshare.o:(.bss+0x24): first defined here + +Fixes: + - http://autobuild.buildroot.org/results/78822bc0e0039e8f8949011a256cac022863276f + +Signed-off-by: Fabrice Fontaine + +diff -Nura ncftp-3.2.6-orig/sh_util/gpshare.c ncftp-3.2.6/sh_util/gpshare.c +--- ncftp-3.2.6-orig/sh_util/gpshare.c 2020-08-21 10:46:34.173816750 +0200 ++++ ncftp-3.2.6/sh_util/gpshare.c 2020-08-21 10:52:25.407976319 +0200 +@@ -28,7 +28,7 @@ + + static int gIsAtty1 = 1, gIsAtty2 = 1; + extern int gLoadedBm, gBookmarkMatchMode; +-Bookmark gBm; ++extern Bookmark gBm; + + double + FileSize(double size, const char **uStr0, double *uMult0)