Skip to contentSkip to conversation

package/nvme: needs dynamic library

PATCH In review Bernd Kuhls 2 participants 2 messages Nov 5, 2025 – Nov 12, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/nvme: needs dynamic library

Buildroot commit f75faf43506e5090857eb4a9d876d430ff34a972 bumped nvme from 1.12 to 2.15 which depends on dynamic library:

../libnvme-wrap.c:8:10: fatal error: dlfcn.h: No such file or directory

    8 | #include <dlfcn.h>

Fixes:
https://autobuild.buildroot.net/results/5bc/5bccbbd7ad4ce4a6898f6bcfd0a92c09e61324ca/

---
 package/nvme/Config.in      | 5 +++++
 package/petitboot/Config.in | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)
package/nvme/Config.in +5 -0
index 16b8726144..a27ddf50a9 100644
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_NVME
 	bool "nvme"
+	depends on !BR2_STATIC_LIBS # dlfcn.h
 	depends on BR2_USE_MMU # libnvme
 	select BR2_PACKAGE_LIBNVME
 	help
@@ -7,3 +8,7 @@ config BR2_PACKAGE_NVME
 	  Express (optimized PCI Express SSD interface) devices.
 
 	  https://github.com/linux-nvme/nvme-cli
+
+comment "nvme needs a toolchain w/ dynamic library"
+	depends on BR2_STATIC_LIBS
+	depends on BR2_USE_MMU
package/petitboot/Config.in +1 -1
index 50d5a4da70..76cbbe9c6d 100644
@@ -3,7 +3,7 @@ config BR2_PACKAGE_PETITBOOT
 	depends on BR2_PACKAGE_KEXEC_ARCH_SUPPORTS || BR2_PACKAGE_KEXEC_LITE_ARCH_SUPPORTS
 	depends on BR2_USE_MMU # lvm2, agetty
 	depends on BR2_USE_WCHAR # elfutils, kexec-lite
-	depends on !BR2_STATIC_LIBS # elfutils, kexec-lite, lvm2
+	depends on !BR2_STATIC_LIBS # elfutils, kexec-lite, lvm2, nvme
 	depends on BR2_TOOLCHAIN_HAS_THREADS # elfutils, kexec-lite, lvm2
 	depends on BR2_PACKAGE_HAS_UDEV
 	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 || !BR2_PACKAGE_KEXEC_ARCH_SUPPORTS # kexec
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernd" == Bernd Kuhls <[email protected]> writes:

Buildroot commit f75faf43506e5090857eb4a9d876d430ff34a972 bumped nvme from 1.12 to 2.15 which depends on dynamic library:

Quoted 7 lines

../libnvme-wrap.c:8:10: fatal error: dlfcn.h: No such file or directory

    8 | #include <dlfcn.h>

Fixes:
https://autobuild.buildroot.net/results/5bc/5bccbbd7ad4ce4a6898f6bcfd0a92c09e61324ca/

Committed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot