* [Buildroot] [PATCH 0/2] hostapd/wpa_s: disable build with static zlib-ng
@ 2022-09-04 20:14 Sergey Matyukevich
2022-09-04 20:14 ` [Buildroot] [PATCH 1/2] package/hostapd: " Sergey Matyukevich
2022-09-04 20:14 ` [Buildroot] [PATCH 2/2] package/wpa_supplicant: " Sergey Matyukevich
0 siblings, 2 replies; 5+ messages in thread
From: Sergey Matyukevich @ 2022-09-04 20:14 UTC (permalink / raw)
To: buildroot; +Cc: Sergey Matyukevich, Matt Weber, Thomas Petazzoni
Hi all,
Both zlib-ng and hostapd/wpa_supplicant utils define functions with the
same name 'crc32'. For now do not allow to select zlib-ng as zlib
provider for hostapd or wpa_supplicant in the case of BR2_STATIC_LIBS
is selected. This change can be reverted if either project rename
that function.
Regards,
Sergey
Sergey Matyukevich (2):
package/hostapd: disable build with static zlib-ng
package/wpa_supplicant: disable build with static zlib-ng
package/hostapd/Config.in | 4 ++++
package/wpa_supplicant/Config.in | 4 ++++
2 files changed, 8 insertions(+)
--
2.37.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 1/2] package/hostapd: disable build with static zlib-ng
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
2022-09-05 7:02 ` Thomas Petazzoni via buildroot
2022-09-04 20:14 ` [Buildroot] [PATCH 2/2] package/wpa_supplicant: " Sergey Matyukevich
1 sibling, 1 reply; 5+ messages in thread
From: Sergey Matyukevich @ 2022-09-04 20:14 UTC (permalink / raw)
To: buildroot; +Cc: Sergey Matyukevich, Matt Weber, Thomas Petazzoni
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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 2/2] package/wpa_supplicant: disable build with static zlib-ng
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 ` [Buildroot] [PATCH 1/2] package/hostapd: " Sergey Matyukevich
@ 2022-09-04 20:14 ` Sergey Matyukevich
1 sibling, 0 replies; 5+ messages in thread
From: Sergey Matyukevich @ 2022-09-04 20:14 UTC (permalink / raw)
To: buildroot; +Cc: Sergey Matyukevich, Matt Weber, Thomas Petazzoni
Static linking fails because both wpa_supplicant and zlib-ng define
functions with the same name 'crc32'. For now do not allow to select
zlib-ng as zlib provider for wpa_supplicant in the case if static
libraries are enabled.
Fixes: http://autobuild.buildroot.net/results/ac19975f0bf77f4a8ca574c374092ba81cd5a332/
Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
---
package/wpa_supplicant/Config.in | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/wpa_supplicant/Config.in b/package/wpa_supplicant/Config.in
index 92953f69f0..b44d3e2d07 100644
--- a/package/wpa_supplicant/Config.in
+++ b/package/wpa_supplicant/Config.in
@@ -1,6 +1,7 @@
menuconfig BR2_PACKAGE_WPA_SUPPLICANT
bool "wpa_supplicant"
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
@@ -8,6 +9,9 @@ menuconfig BR2_PACKAGE_WPA_SUPPLICANT
http://w1.fi/wpa_supplicant/
+comment "wpa_supplicant fails to build with static zlib-ng"
+ depends on BR2_PACKAGE_ZLIB_NG && BR2_STATIC_LIBS
+
if BR2_PACKAGE_WPA_SUPPLICANT
config BR2_PACKAGE_WPA_SUPPLICANT_NL80211
--
2.37.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Buildroot] [PATCH 1/2] package/hostapd: disable build with static zlib-ng
2022-09-04 20:14 ` [Buildroot] [PATCH 1/2] package/hostapd: " Sergey Matyukevich
@ 2022-09-05 7:02 ` Thomas Petazzoni via buildroot
2022-09-05 20:36 ` Sergey Matyukevich
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-09-05 7:02 UTC (permalink / raw)
To: Sergey Matyukevich; +Cc: Matt Weber, buildroot
On Sun, 4 Sep 2022 23:14:28 +0300
Sergey Matyukevich <geomatsi@gmail.com> wrote:
> 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)
Thanks for your patch. However, we generally don't like to add such
weird dependencies. Instead, we prefer to fix the actual problem:
hostapd/wpa_supplicant should probably not define a crc32() function,
but use some other naming for it.
Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Buildroot] [PATCH 1/2] package/hostapd: disable build with static zlib-ng
2022-09-05 7:02 ` Thomas Petazzoni via buildroot
@ 2022-09-05 20:36 ` Sergey Matyukevich
0 siblings, 0 replies; 5+ messages in thread
From: Sergey Matyukevich @ 2022-09-05 20:36 UTC (permalink / raw)
To: Thomas Petazzoni; +Cc: Matt Weber, buildroot
> > 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)
>
> Thanks for your patch. However, we generally don't like to add such
> weird dependencies. Instead, we prefer to fix the actual problem:
> hostapd/wpa_supplicant should probably not define a crc32() function,
> but use some other naming for it.
Indeed, suggested dependency is too weird. I sent a patch to hostapd
mailing list fixing too generic name for its IEEE 802.11 CRC-32:
http://lists.infradead.org/pipermail/hostap/2022-September/040752.html
If it is ok with hostapd maintainer, then I will split/adapt this patch
for hostapd/wpa_s v2.10 and send v2 here.
Regards,
Sergey
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-09-05 20:36 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [Buildroot] [PATCH 1/2] package/hostapd: " Sergey Matyukevich
2022-09-05 7:02 ` 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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox