[Buildroot] [git commit branch/2021.11.x] package/libdbi: needs dynamic library

Peter Korsgaard peter at korsgaard.com
Tue Jan 25 19:22:45 UTC 2022


commit: https://git.buildroot.net/buildroot/commit/?id=2d4a00623ebc44f197b08e039fe533bba82290b5
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2021.11.x

libdbi needs dynamic library to avoid the following build failure raised
since the addition of the package in commit
c6aac6ebdbbd3873110a9e19de1957e49cb9344e:

dbi_main.c:84:2: error: #error no dynamic loading support
   84 | #error no dynamic loading support
      |  ^~~~~

Fixes:
 - http://autobuild.buildroot.org/results/9cd56a625cbd52b0c070e2d462e02f5161d9631d

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit a24f0e8eeebbd6a77775a5eb5dbe830417fc9d22)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/collectd/Config.in       | 4 ++++
 package/libdbi-drivers/Config.in | 4 ++++
 package/libdbi/Config.in         | 4 ++++
 3 files changed, 12 insertions(+)

diff --git a/package/collectd/Config.in b/package/collectd/Config.in
index 9c38d87bcb..05fb577345 100644
--- a/package/collectd/Config.in
+++ b/package/collectd/Config.in
@@ -214,11 +214,15 @@ config BR2_PACKAGE_COLLECTD_CURL_XML
 
 config BR2_PACKAGE_COLLECTD_DBI
 	bool "dbi"
+	depends on !BR2_STATIC_LIBS
 	select BR2_PACKAGE_LIBDBI
 	help
 	  Executes SQL statements on various databases and
 	  interprets the returned data.
 
+comment "dbi support needs a toolchain w/ dynamic library"
+	depends on BR2_STATIC_LIBS
+
 config BR2_PACKAGE_COLLECTD_DF
 	bool "df"
 	help
diff --git a/package/libdbi-drivers/Config.in b/package/libdbi-drivers/Config.in
index 087e6aaf0e..7c505340c1 100644
--- a/package/libdbi-drivers/Config.in
+++ b/package/libdbi-drivers/Config.in
@@ -1,8 +1,12 @@
 config BR2_PACKAGE_LIBDBI_DRIVERS
 	bool "libdbi-drivers"
+	depends on !BR2_STATIC_LIBS # libdbi
 	select BR2_PACKAGE_LIBDBI
 	help
 	  The libdbi-drivers project provides the
 	  database-specific drivers for the libdbi framework.
 
 	  http://libdbi-drivers.sourceforge.net
+
+comment "libdbi-drivers needs a toolchain w/ dynamic library"
+	depends on BR2_STATIC_LIBS
diff --git a/package/libdbi/Config.in b/package/libdbi/Config.in
index ded2bc6e53..13ac344f82 100644
--- a/package/libdbi/Config.in
+++ b/package/libdbi/Config.in
@@ -1,7 +1,11 @@
 config BR2_PACKAGE_LIBDBI
 	bool "lidbi"
+	depends on !BR2_STATIC_LIBS
 	help
 	  libdbi implements a database-independent abstraction layer
 	  in C, similar to the DBI/DBD layer in Perl.
 
 	  http://libdbi.sourceforge.net
+
+comment "libdbi needs a toolchain w/ dynamic library"
+	depends on BR2_STATIC_LIBS



More information about the buildroot mailing list