Skip to contentSkip to conversation

package/libdbi: needs dynamic library

PATCH In review Fabrice Fontaine 4 participants 6 messages Oct 14, 2021 – Jan 25, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libdbi: needs dynamic library

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

---
 package/libdbi-drivers/Config.in | 4 ++++
 package/libdbi/Config.in         | 4 ++++
 2 files changed, 8 insertions(+)
package/libdbi-drivers/Config.in +4 -0
index 087e6aaf0e..7c505340c1 100644
@@ -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
package/libdbi/Config.in +4 -0
index ded2bc6e53..13ac344f82 100644
@@ -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
Signature · 6 lines
2.33.0

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

Hi,

Quoted 40 lines · On Thu, 14 Oct 2021 18:08:24 +0200 Fabrice Fontaine…

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

---
 package/libdbi-drivers/Config.in | 4 ++++
 package/libdbi/Config.in         | 4 ++++
 2 files changed, 8 insertions(+)
package/libdbi-drivers/Config.in +4 -0
index 087e6aaf0e..7c505340c1 100644
@@ -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
package/libdbi/Config.in +0 -0
index ded2bc6e53..13ac344f82 100644
@@ -1,7 +1,11 @@
 config BR2_PACKAGE_LIBDBI

package/libdbi/Config.in line 11

Quoted 10 lines
package/libdbi/Config.in +4 -0
 	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

Indeed,

Also in collectd Config.in, "depends on" needs to be added and its related comment.

---- 8< ----
config BR2_PACKAGE_COLLECTD_DBI
bool "dbi"
depends on !BR2_STATIC_LIBS # libdbi select BR2_PACKAGE_LIBDBI
help
Executes SQL statements on various databases and interprets the returned data.

comment "dbi needs a toolchain w/ dynamic library"
depends on BR2_STATIC_LIBS
---- 8< ----

Hervé

Signature · 7 lines
Hervé Codina, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Hi,

Quoted 60 lines · Herve Codina

Hi,

Quoted 40 lines · On Thu, 14 Oct 2021 18:08:24 +0200 Fabrice Fontaine…

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

---
 package/libdbi-drivers/Config.in | 4 ++++
 package/libdbi/Config.in         | 4 ++++
 2 files changed, 8 insertions(+)
package/libdbi-drivers/Config.in +4 -0
index 087e6aaf0e..7c505340c1 100644
@@ -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
package/libdbi/Config.in +0 -0
index ded2bc6e53..13ac344f82 100644
@@ -1,7 +1,11 @@
 config BR2_PACKAGE_LIBDBI

package/libdbi/Config.in line 11

Quoted 10 lines
package/libdbi/Config.in +4 -0
      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

Indeed,

Quoted 2 lines

Also in collectd Config.in, "depends on" needs to be added and its related comment.

Nope, collectd already depends on dynamic library since commit 9960b957a63e8fdd197d9cef6ea55b1b05c40ec3 so it's not needed to add this dependency a second time.
I'll send a patch to drop it from BR2_PACKAGE_COLLECTD_NOTIFY_EMAIL.

Quoted 14 lines

---- 8< ----
config BR2_PACKAGE_COLLECTD_DBI
bool "dbi"
depends on !BR2_STATIC_LIBS # libdbi select BR2_PACKAGE_LIBDBI
help
Executes SQL statements on various databases and interprets the returned data.

comment "dbi needs a toolchain w/ dynamic library"
depends on BR2_STATIC_LIBS
---- 8< ----

Quoted 6 lines

Hervé

--
Hervé Codina, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

Best Regards,

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

#3 lore raw
Quoted 6 lines · On Thu, 14 Oct 2021 18:51:55 +0200 Fabrice Fontaine…
Quoted 2 lines

Also in collectd Config.in, "depends on" needs to be added and its related comment.

Nope, collectd already depends on dynamic library since commit 9960b957a63e8fdd197d9cef6ea55b1b05c40ec3 so it's not needed to add this dependency a second time.
I'll send a patch to drop it from BR2_PACKAGE_COLLECTD_NOTIFY_EMAIL.

Ok.

Best regards,
Hervé

Signature · 7 lines
Hervé Codina, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw
In reply to Fabrice Fontaine
Quoted 8 lines · On Thu, 14 Oct 2021 18:08:24 +0200 Fabrice Fontaine…

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

      |  ^~~~~
Quoted 8 lines

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

---
 package/libdbi-drivers/Config.in | 4 ++++
 package/libdbi/Config.in         | 4 ++++
 2 files changed, 8 insertions(+)

Applied to master, but after adding the !BR2_STATIC_LIBS dependency to collectd, as suggested by Hervé. Indeed, we prefer to duplicate those dependencies, if they turn out to change at the top-level BR2_PACKAGE_COLLECTD option.

Best regards,

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw
Quoted 22 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Quoted 8 lines · On Thu, 14 Oct 2021 18:08:24 +0200 Fabrice Fontaine…

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
| ^~~~~

Quoted 8 lines

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

---
package/libdbi-drivers/Config.in | 4 ++++
package/libdbi/Config.in | 4 ++++

2 files changed, 8 insertions(+)
Quoted 4 lines

Applied to master, but after adding the !BR2_STATIC_LIBS dependency to collectd, as suggested by Hervé. Indeed, we prefer to duplicate those dependencies, if they turn out to change at the top-level BR2_PACKAGE_COLLECTD option.

Committed to 2021.11.x, thanks.

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