All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergey Matyukevich <geomatsi@gmail.com>
To: buildroot@buildroot.org
Cc: Sergey Matyukevich <geomatsi@gmail.com>,
	Matt Weber <matthew.weber@collins.com>,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Subject: [Buildroot] [PATCH 1/2] package/hostapd: disable build with static zlib-ng
Date: Sun,  4 Sep 2022 23:14:28 +0300	[thread overview]
Message-ID: <20220904201429.1480971-2-geomatsi@gmail.com> (raw)
In-Reply-To: <20220904201429.1480971-1-geomatsi@gmail.com>

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@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

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2022-09-04 20:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-04 20:14 [Buildroot] [PATCH 0/2] hostapd/wpa_s: disable build with static zlib-ng Sergey Matyukevich
2022-09-04 20:14 ` Sergey Matyukevich [this message]
2022-09-05  7:02   ` [Buildroot] [PATCH 1/2] package/hostapd: " Thomas Petazzoni via buildroot
2022-09-05 20:36     ` Sergey Matyukevich
2022-09-04 20:14 ` [Buildroot] [PATCH 2/2] package/wpa_supplicant: " Sergey Matyukevich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220904201429.1480971-2-geomatsi@gmail.com \
    --to=geomatsi@gmail.com \
    --cc=buildroot@buildroot.org \
    --cc=matthew.weber@collins.com \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.