From patchwork Wed Dec 15 13:54:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andreas Ziegler X-Patchwork-Id: 1568253 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=buildroot.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JDcFl3MW9z9sXS for ; Thu, 16 Dec 2021 00:55:22 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 1562281C81; Wed, 15 Dec 2021 13:55:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id leK4lk1PVP6v; Wed, 15 Dec 2021 13:55:19 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 7E12B817B5; Wed, 15 Dec 2021 13:55:18 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id B603B1BF2A7 for ; Wed, 15 Dec 2021 13:55:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id A26648143A for ; Wed, 15 Dec 2021 13:55:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tXrESPrfJnyL for ; Wed, 15 Dec 2021 13:55:15 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from serv15.avernis.de (serv15.avernis.de [176.9.89.163]) by smtp1.osuosl.org (Postfix) with ESMTPS id 503F5817B5 for ; Wed, 15 Dec 2021 13:55:15 +0000 (UTC) Received: from iago.. (unknown [151.35.205.56]) by serv15.avernis.de (Postfix) with ESMTPSA id 588F4BE6B730; Wed, 15 Dec 2021 14:55:11 +0100 (CET) From: Andreas Ziegler To: buildroot@buildroot.org Date: Wed, 15 Dec 2021 14:54:21 +0100 Message-Id: <20211215135421.1168030-1-br015@umbiko.net> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.3 at serv15.avernis.de X-Virus-Status: Clean Subject: [Buildroot] [PATCH 1/1] package/lighttpd: add missing static_assert macro X-BeenThere: buildroot@buildroot.org 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: Andreas Ziegler , Matt Weber Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Fixes build failure in toolchains using uClibc: In file included from ../src/algo_xxhash.c:48: ../src/algo_xxhash.h: In function ‘XXH32_canonicalFromHash’: ../src/algo_xxhash.h:1566:54: warning: implicit declaration of function ‘static_assert’ [-Wimplicit-function-declaration] 1566 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { static_assert((c),m); } while(0) | ^~~~~~~~~~~~~ ../src/algo_xxhash.h:1572:32: note: in expansion of macro ‘XXH_STATIC_ASSERT_WITH_MESSAGE’ 1572 | # define XXH_STATIC_ASSERT(c) XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/algo_xxhash.h:2282:5: note: in expansion of macro ‘XXH_STATIC_ASSERT’ 2282 | XXH_STATIC_ASSERT(sizeof(XXH32_canonical_t) == sizeof(XXH32_hash_t)); | ^~~~~~~~~~~~~~~~~ ... and later: ../src/algo_xxhash.h:2282: undefined reference to `static_assert' Signed-off-by: Andreas Ziegler --- ...lgo_xxhash-add-missing-static_assert-macro.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 package/lighttpd/0002-algo_xxhash-add-missing-static_assert-macro.patch diff --git a/package/lighttpd/0002-algo_xxhash-add-missing-static_assert-macro.patch b/package/lighttpd/0002-algo_xxhash-add-missing-static_assert-macro.patch new file mode 100644 index 0000000000..1fc8ca3afe --- /dev/null +++ b/package/lighttpd/0002-algo_xxhash-add-missing-static_assert-macro.patch @@ -0,0 +1,13 @@ +--- lighttpd-1.4.63/src/algo_xxhash.h 2021-12-04 15:40:24.000000000 +0100 ++++ lighttpd-1.4.64/src/algo_xxhash.h 2021-12-15 10:50:17.801155007 +0100 +@@ -1563,6 +1563,10 @@ + #ifndef XXH_STATIC_ASSERT + # if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */ + # include ++/* uClibc does not define static_assert */ ++# ifndef static_assert ++# define static_assert _Static_assert ++# endif + # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { static_assert((c),m); } while(0) + # elif defined(__cplusplus) && (__cplusplus >= 201103L) /* C++11 */ + # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { static_assert((c),m); } while(0)