Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: <mingli.yu@windriver.com>
To: <openembedded-devel@lists.openembedded.org>
Subject: [PATCH 3/4] minifi-cpp: Fix build with gcc 16
Date: Mon, 8 Jun 2026 23:57:11 -0700	[thread overview]
Message-ID: <20260609065712.2888126-3-mingli.yu@windriver.com> (raw)
In-Reply-To: <20260609065712.2888126-1-mingli.yu@windriver.com>

From: Mingli Yu <mingli.yu@windriver.com>

Fixes:
  extensions/systemd/libwrapper/LibWrapper.h:38:31: error: 'uint64_t' has not been declared
  38 | virtual int getRealtimeUsec(uint64_t* usec_out) noexcept = 0;
  | ^~~~~~~~

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 .../files/0001-Fix-build-with-gcc-16.patch    | 49 +++++++++++++++++++
 .../minifi-cpp/minifi-cpp_0.99.2.bb           |  1 +
 2 files changed, 50 insertions(+)
 create mode 100644 meta-oe/recipes-extended/minifi-cpp/files/0001-Fix-build-with-gcc-16.patch

diff --git a/meta-oe/recipes-extended/minifi-cpp/files/0001-Fix-build-with-gcc-16.patch b/meta-oe/recipes-extended/minifi-cpp/files/0001-Fix-build-with-gcc-16.patch
new file mode 100644
index 0000000000..f1d83760b2
--- /dev/null
+++ b/meta-oe/recipes-extended/minifi-cpp/files/0001-Fix-build-with-gcc-16.patch
@@ -0,0 +1,49 @@
+From 950aea28ffefd88f230d6bd25fa0352e9ca157c9 Mon Sep 17 00:00:00 2001
+From: Mingli Yu <mingli.yu@windriver.com>
+Date: Wed, 3 Jun 2026 02:12:01 -0700
+Subject: [PATCH] Fix build with gcc 16
+
+Fixes:
+  extensions/systemd/libwrapper/LibWrapper.h:38:31: error: 'uint64_t' has not been declared
+   38 |   virtual int getRealtimeUsec(uint64_t* usec_out) noexcept = 0;
+      |                               ^~~~~~~~
+
+  libminifi/include/core/RepositoryMetricsSource.h:29:5: error: 'uint64_t' does not name a type
+  |    29 |     uint64_t table_readers_size{};
+  |       |     ^~~~~~~~
+
+Upstream-Status: Submitted [https://github.com/apache/nifi-minifi-cpp/pull/2194]
+
+Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
+---
+ extensions/systemd/libwrapper/LibWrapper.h       | 1 +
+ libminifi/include/core/RepositoryMetricsSource.h | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/extensions/systemd/libwrapper/LibWrapper.h b/extensions/systemd/libwrapper/LibWrapper.h
+index d7e7b7c..c8af00e 100644
+--- a/extensions/systemd/libwrapper/LibWrapper.h
++++ b/extensions/systemd/libwrapper/LibWrapper.h
+@@ -19,6 +19,7 @@
+ #pragma once
+ 
+ #include <memory>
++#include <cstdint>
+ 
+ #include "../Common.h"
+ #include "utils/gsl.h"
+diff --git a/libminifi/include/core/RepositoryMetricsSource.h b/libminifi/include/core/RepositoryMetricsSource.h
+index 6c933b7..f39fccf 100644
+--- a/libminifi/include/core/RepositoryMetricsSource.h
++++ b/libminifi/include/core/RepositoryMetricsSource.h
+@@ -20,6 +20,7 @@
+ 
+ #include <string>
+ #include <optional>
++#include <cstdint>
+ 
+ namespace org::apache::nifi::minifi::core {
+ 
+-- 
+2.49.0
+
diff --git a/meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.99.2.bb b/meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.99.2.bb
index 4ac5b87ba9..6c64046161 100644
--- a/meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.99.2.bb
+++ b/meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.99.2.bb
@@ -29,6 +29,7 @@ SRC_URI = "git://github.com/apache/nifi-minifi-cpp.git;protocol=https;branch=mai
            file://0007-libsodium-aarch64-set-compiler-attributes-after-including-arm_.patch \
            file://0001-Add-missing-include-for-malloc-free.patch;patchdir=thirdparty/fmt-src \
            file://0001-generateVersion.sh-set-BUILD_DATE-to-SOURCE_DATE_EPO.patch \
+           file://0001-Fix-build-with-gcc-16.patch \
            file://systemd-volatile.conf \
            file://sysvinit-volatile.conf \
           "
-- 
2.49.0



  parent reply	other threads:[~2026-06-09  6:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-09  6:57 [PATCH 1/4] xfce4-cpufreq-plugin: Fix aggregate init failure with gcc16 mingli.yu
2026-06-09  6:57 ` [PATCH 2/4] xfce4-sensors-plugin: " mingli.yu
2026-06-09  6:57 ` mingli.yu [this message]
2026-06-09  6:57 ` [PATCH 4/4] freeradius: Fix do_patch fuzz QA Issue mingli.yu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260609065712.2888126-3-mingli.yu@windriver.com \
    --to=mingli.yu@windriver.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox