From patchwork Thu May 8 22:35:14 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 62639 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 911F0C3ABC5 for ; Thu, 8 May 2025 22:35:39 +0000 (UTC) Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by mx.groups.io with SMTP id smtpd.web11.1630.1746743731329735071 for ; Thu, 08 May 2025 15:35:31 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google header.b=ekKmvEWV; spf=pass (domain: smile.fr, ip: 209.85.128.48, mailfrom: yoann.congal@smile.fr) Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-43ce71582e9so11210235e9.1 for ; Thu, 08 May 2025 15:35:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1746743729; x=1747348529; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Hsm7UJXGpAQkZTwSf6LNzfg9qBMczXG1ELP/kpwPWIw=; b=ekKmvEWVU6TxEx+Slu7otR+wqp/xFVD6qBf0T7seQekRwiSXj5htB/j0su9mIJgMGS T9EiGACUAymIfv1NtqX24RQA7EB+RqlR+SfgPrSb+iTeEneLyZG9R3dlprQ/TOAzYtTo PgNBA205eCQeIkUMygA0Bc7Svqdg047wLJVbE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746743729; x=1747348529; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-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S4owR3EUBWLXq4ABdlXil4BiKMMskQ== X-Received: by 2002:a05:600c:8106:b0:43d:7de:16e3 with SMTP id 5b1f17b1804b1-442d6dc564amr8402055e9.24.1746743729492; Thu, 08 May 2025 15:35:29 -0700 (PDT) Received: from P-ASN-ECS-830T8C3.home (2a01cb001331aa0087b736f9b546e683.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:87b7:36f9:b546:e683]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-442cd34bd79sm50511715e9.23.2025.05.08.15.35.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 May 2025 15:35:29 -0700 (PDT) From: Yoann Congal To: openembedded-devel@lists.openembedded.org Cc: Yoann Congal Subject: [meta-webserver]][PATCH 2/2] hiawatha: use -std=gnu17 for compilation Date: Fri, 9 May 2025 00:35:14 +0200 Message-Id: <20250508223514.999569-2-yoann.congal@smile.fr> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250508223514.999569-1-yoann.congal@smile.fr> References: <20250508223514.999569-1-yoann.congal@smile.fr> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 08 May 2025 22:35:39 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/117371 From: Yoann Congal hiawatha does not build under -std=gnu23 which is the default of gcc15. Forcing -std=gnu17 fixes these build errors: | .../tmp/work/core2-64-poky-linux/hiawatha/11.2/hiawatha-11.2/src/hiawatha.c:814:25: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] | 814 | signal(SIGHUP, HUP_handler); | | ^~~~~~~~~~~ | | | | | void (*)(void) | .../tmp/work/core2-64-poky-linux/hiawatha/11.2/recipe-sysroot/usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' | 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | | ~~~~~~~~~~~~~~~^~~~~~~~~ | .../tmp/work/core2-64-poky-linux/hiawatha/11.2/hiawatha-11.2/src/hiawatha.c:294:6: note: 'HUP_handler' declared here | 294 | void HUP_handler() { | | ^~~~~~~~~~~ | .../tmp/work/core2-64-poky-linux/hiawatha/11.2/recipe-sysroot/usr/include/signal.h:72:16: note: '__sighandler_t' declared here | 72 | typedef void (*__sighandler_t) (int); | | ^~~~~~~~~~~~~~ Note: Upstream project has no published way to upstream patches. Signed-off-by: Yoann Congal --- meta-webserver/recipes-httpd/hiawatha/hiawatha_11.2.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-webserver/recipes-httpd/hiawatha/hiawatha_11.2.bb b/meta-webserver/recipes-httpd/hiawatha/hiawatha_11.2.bb index 169e385da6..098c07e954 100644 --- a/meta-webserver/recipes-httpd/hiawatha/hiawatha_11.2.bb +++ b/meta-webserver/recipes-httpd/hiawatha/hiawatha_11.2.bb @@ -19,6 +19,8 @@ SYSTEMD_SERVICE:${PN} = "hiawatha.service" inherit cmake update-rc.d systemd +CFLAGS += "-std=gnu17" + EXTRA_OECMAKE = " -DENABLE_IPV6=OFF \ -DENABLE_CACHE=OFF \ -DENABLE_DEBUG=OFF \