[Buildroot] [PATCH v1] package/fluent-bit: fix missing object runtime error
Thomas Devoogdt
thomas at devoogdt.com
Fri Apr 18 10:29:22 UTC 2025
From: Thomas Devoogdt <thomas.devoogdt at barco.com>
$ fluent-bit
fluent-bit: error while loading shared libraries: libminiz.so.3: cannot open shared object file: No such file or directory
Commit 527deef "package/fluent-bit: bump to 3.2.10",
dropped the BUILD_SHARED_LIBS=OFF off part, because miniz uses
static linking by default now, but runtime execution shows otherwise,
so revert to fix.
Signed-off-by: Thomas Devoogdt <thomas.devoogdt at barco.com>
---
package/fluent-bit/fluent-bit.mk | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/package/fluent-bit/fluent-bit.mk b/package/fluent-bit/fluent-bit.mk
index 013d8d3b37f..768dff7f804 100644
--- a/package/fluent-bit/fluent-bit.mk
+++ b/package/fluent-bit/fluent-bit.mk
@@ -68,6 +68,11 @@ else
FLUENT_BIT_CONF_OPTS += -DFLB_LUAJIT=No
endif
+# Force bundled miniz to be linked statically.
+# https://github.com/fluent/fluent-bit/issues/6711
+FLUENT_BIT_CONF_OPTS += \
+ -DBUILD_SHARED_LIBS=OFF
+
# Move the config files from /usr/etc/ to /etc/.
# https://github.com/fluent/fluent-bit/issues/6619
FLUENT_BIT_CONF_OPTS += \
--
2.43.0
More information about the buildroot
mailing list