From patchwork Fri Feb 7 15:14:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Ceresoli X-Patchwork-Id: 1235049 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.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=lucaceresoli.net Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48Df4126F6z9sRY for ; Sat, 8 Feb 2020 02:14:57 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9A2B787E99; Fri, 7 Feb 2020 15:14:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tYnIHxo8HLW3; Fri, 7 Feb 2020 15:14:53 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id AC7AF87E94; Fri, 7 Feb 2020 15:14:53 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id C6D1A1BF35C for ; Fri, 7 Feb 2020 15:14:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C1E0186D81 for ; Fri, 7 Feb 2020 15:14:49 +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 Gb4rOton1BXV for ; Fri, 7 Feb 2020 15:14:45 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from hostingweb31-40.netsons.net (hostingweb31-40.netsons.net [89.40.174.40]) by whitealder.osuosl.org (Postfix) with ESMTPS id A1E5B86CC5 for ; Fri, 7 Feb 2020 15:14:45 +0000 (UTC) Received: from 45.11.168.109.cust.ip.kpnqwest.it ([109.168.11.45]:57760 helo=pc-ceresoli.dev.aim) by hostingweb31.netsons.net with esmtpa (Exim 4.92) (envelope-from ) id 1j05L9-00BzQm-9H; Fri, 07 Feb 2020 16:14:43 +0100 From: Luca Ceresoli To: buildroot@buildroot.org Date: Fri, 7 Feb 2020 16:14:27 +0100 Message-Id: <20200207151427.12475-4-luca@lucaceresoli.net> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200207151427.12475-1-luca@lucaceresoli.net> References: <20200207151427.12475-1-luca@lucaceresoli.net> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hostingweb31.netsons.net X-AntiAbuse: Original Domain - buildroot.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lucaceresoli.net X-Get-Message-Sender-Via: hostingweb31.netsons.net: authenticated_id: luca+lucaceresoli.net/only user confirmed/virtual account not confirmed X-Authenticated-Sender: hostingweb31.netsons.net: luca@lucaceresoli.net X-Source: X-Source-Args: X-Source-Dir: Subject: [Buildroot] [PATCH 3/3] package/exim: fix build error during install step 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: Luca Ceresoli , Bernd Kuhls Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" exim builds some files during the 'make install' step, and these fail with an error: lookups/lf_quote.c:49:3: error: 'for' loop initial declarations are only allowed in C99 mode for (int j = 0; j < vlength; j++) ^ Fix by passing the -std=c99 here, as it is already passed in the build step. Signed-off-by: Luca Ceresoli Cc: Bernd Kuhls --- package/exim/exim.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/exim/exim.mk b/package/exim/exim.mk index 0ad9a8de8000..e4b0bfc1b488 100644 --- a/package/exim/exim.mk +++ b/package/exim/exim.mk @@ -135,7 +135,9 @@ endef # something when installing... define EXIM_INSTALL_TARGET_CMDS DESTDIR=$(TARGET_DIR) INSTALL_ARG="-no_chown -no_symlink" build=br \ - $(MAKE1) -C $(@D) $(EXIM_STATIC_FLAGS) install + $(MAKE1) -C $(@D) $(EXIM_STATIC_FLAGS) \ + CFLAGS="-std=c99 $(TARGET_CFLAGS)" \ + install chmod u+s $(TARGET_DIR)/usr/sbin/exim endef