[Buildroot] [PATCH 1/2] package/hostapd: disable build with static zlib-ng

Sergey Matyukevich geomatsi at gmail.com
Sun Sep 4 20:14:28 UTC 2022


Static linking fails because both hostapd and zlib-ng define functions
with the same name 'crc32'. For now do not allow to select zlib-ng as
zlib provider for hostapd in the case if static libraries are enabled.

Fixes: http://autobuild.buildroot.net/results/9901df820d3afa4cde78e8ad6d62cb8ce7e69fdb/

Signed-off-by: Sergey Matyukevich <geomatsi at gmail.com>
---
 package/hostapd/Config.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/hostapd/Config.in b/package/hostapd/Config.in
index f4206ceea5..3a88a9d276 100644
--- a/package/hostapd/Config.in
+++ b/package/hostapd/Config.in
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_HOSTAPD
 	bool "hostapd"
 	depends on BR2_USE_MMU # fork()
+	depends on !(BR2_PACKAGE_ZLIB_NG && BR2_STATIC_LIBS)
 	select BR2_PACKAGE_LIBOPENSSL_ENABLE_DES if BR2_PACKAGE_LIBOPENSSL
 	select BR2_PACKAGE_LIBOPENSSL_ENABLE_MD4 if BR2_PACKAGE_LIBOPENSSL
 	help
@@ -12,6 +13,9 @@ config BR2_PACKAGE_HOSTAPD
 
 	  http://w1.fi/hostapd/
 
+comment "hostapd fails to build with static zlib-ng"
+	depends on BR2_PACKAGE_ZLIB_NG && BR2_STATIC_LIBS
+
 if BR2_PACKAGE_HOSTAPD
 
 config BR2_PACKAGE_HOSTAPD_DRIVER_HOSTAP
-- 
2.37.1




More information about the buildroot mailing list