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

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

  reply	other threads:[~2022-09-05 20:36 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 ` [Buildroot] [PATCH 1/2] package/hostapd: " Sergey Matyukevich
2022-09-05  7:02   ` Thomas Petazzoni via buildroot
2022-09-05 20:36     ` Sergey Matyukevich [this message]
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=YxZd0han6H9rPaax@curiosity \
    --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.