* Should disabling features in glibc also disable the corresponding headers?
@ 2015-04-14 17:25 Tanu Kaskinen
2015-04-14 17:40 ` Khem Raj
0 siblings, 1 reply; 3+ messages in thread
From: Tanu Kaskinen @ 2015-04-14 17:25 UTC (permalink / raw)
To: openembedded-core
Hello,
oe-core's version of glibc allows configuring out some libc features.
Currently, if a feature is disabled in glibc, glibc still installs the
header for that feature. This means that applications using glibc can't
rely on checking just the header presence in their configure scripts,
they also need to check whether the function implementation is present.
Is there some good reason why glibc works that way, or should glibc be
fixed so that disabling a feature disables the header too?
At least alsa-lib requires patching[1] for this reason, and I wouldn't
be surprised if there were many other similar cases in other packages.
[1]
http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-multimedia/alsa/alsa-lib/Check-if-wordexp-function-is-supported.patch
--
Tanu
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Should disabling features in glibc also disable the corresponding headers?
2015-04-14 17:25 Should disabling features in glibc also disable the corresponding headers? Tanu Kaskinen
@ 2015-04-14 17:40 ` Khem Raj
2015-04-14 19:18 ` Tanu Kaskinen
0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2015-04-14 17:40 UTC (permalink / raw)
To: Tanu Kaskinen; +Cc: openembedded-core
> On Apr 14, 2015, at 1:25 PM, Tanu Kaskinen <tanu.kaskinen@linux.intel.com> wrote:
>
> Hello,
>
> oe-core's version of glibc allows configuring out some libc features. Currently, if a feature is disabled in glibc, glibc still installs the header for that feature. This means that applications using glibc can't rely on checking just the header presence in their configure scripts, they also need to check whether the function implementation is present. Is there some good reason why glibc works that way, or should glibc be fixed so that disabling a feature disables the header too?
>
> At least alsa-lib requires patching[1] for this reason, and I wouldn't be surprised if there were many other similar cases in other packages.
>
> [1] http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-multimedia/alsa/alsa-lib/Check-if-wordexp-function-is-supported.patch
>
checking for functions is the right thing. And it would fail to link if you passed configure check.
> --
> Tanu
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Should disabling features in glibc also disable the corresponding headers?
2015-04-14 17:40 ` Khem Raj
@ 2015-04-14 19:18 ` Tanu Kaskinen
0 siblings, 0 replies; 3+ messages in thread
From: Tanu Kaskinen @ 2015-04-14 19:18 UTC (permalink / raw)
To: Khem Raj; +Cc: openembedded-core
On Tue, 2015-04-14 at 13:40 -0400, Khem Raj wrote:
> > On Apr 14, 2015, at 1:25 PM, Tanu Kaskinen <tanu.kaskinen@linux.intel.com> wrote:
> >
> > Hello,
> >
> > oe-core's version of glibc allows configuring out some libc
> features. Currently, if a feature is disabled in glibc, glibc still
> installs the header for that feature. This means that applications
> using glibc can't rely on checking just the header presence in their
> configure scripts, they also need to check whether the function
> implementation is present. Is there some good reason why glibc works
> that way, or should glibc be fixed so that disabling a feature
> disables the header too?
> >
> > At least alsa-lib requires patching[1] for this reason, and I
> wouldn't be surprised if there were many other similar cases in other
> packages.
> >
> > [1] http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-multimedia/alsa/alsa-lib/Check-if-wordexp-function-is-supported.patch
> >
>
> checking for functions is the right thing. And it would fail to link
> if you passed configure check.
Thanks for the quick reply. Could you elaborate why checking for
functions is the right thing? If that's the right thing, then I should
send that alsa-lib patch to upstream, and I want to be able to explain
why the patch is not a workaround for oe-core's glibc brokenness.
--
Tanu
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-04-14 19:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-14 17:25 Should disabling features in glibc also disable the corresponding headers? Tanu Kaskinen
2015-04-14 17:40 ` Khem Raj
2015-04-14 19:18 ` Tanu Kaskinen
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.