Skip to contentSkip to conversation

package/fluent-bit: fix missing object runtime error

PATCH Applied Thomas Devoogdt 3 participants 3 messages Apr 18, 2025 – May 2, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/fluent-bit: fix missing object runtime error

From: Thomas Devoogdt <[email protected]>

$ 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.

---
 package/fluent-bit/fluent-bit.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/fluent-bit/fluent-bit.mk +5 -0
index 013d8d3b37f..768dff7f804 100644
@@ -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 += \
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 11 lines · Thomas Devoogdt

From: Thomas Devoogdt <[email protected]>

$ 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.

Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
In reply to Thomas Devoogdt
Quoted 11 lines · Thomas Devoogdt

From: Thomas Devoogdt <[email protected]>

$ 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.

Applied to 2025.02.x, thanks.

Regards,
Arnout

Quoted 10 lines
---
  package/fluent-bit/fluent-bit.mk | 5 +++++
  1 file changed, 5 insertions(+)
package/fluent-bit/fluent-bit.mk +0 -0
index 013d8d3b37f..768dff7f804 100644
@@ -68,6 +68,11 @@ else
  FLUENT_BIT_CONF_OPTS += -DFLB_LUAJIT=No

package/fluent-bit/fluent-bit.mk else · line 78

Quoted 10 lines
package/fluent-bit/fluent-bit.mk +5 -0
  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 += \

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot