* [gentoo-dev] broken kernel headers
@ 2006-05-02 19:25 Dick
2006-05-03 0:26 ` Mike Frysinger
0 siblings, 1 reply; 2+ messages in thread
From: Dick @ 2006-05-02 19:25 UTC (permalink / raw
To: gentoo-dev
Hi all,
I'm compiling some software created for Fedora/Red Hat and discovered some of
the gentoo kernel-headers are broken.
For example ethtool.h, which uses the u32 typedef defined in asm/types.h. This
typedef has been disabled outside the kernel "to avoid name space clashes" which
I think is a Good Thing.
Inspired by this header I dug into sys-apps/ethtool and found this package used
a copy of an old ethtool.h and a ethtool_util.h which typedef'ed the missing
types.
I don't think this is a bad choice but it makes ethtool.h obsolete and still
broken.
I thought it might be better to remove the broken headers completely or fix them
up and/ or patch ebuild's like ethtool to use the real kernel-headers.
Red Hat / Fedora provide heavily modified kernel headers (glibc-kernheaders)
maybe we can borrow some patches from them...
What would be the best way to deal with these broken kernel headers? (plasmaroo?)
Greetings,
Dick
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gentoo-dev] broken kernel headers
2006-05-02 19:25 [gentoo-dev] broken kernel headers Dick
@ 2006-05-03 0:26 ` Mike Frysinger
0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger @ 2006-05-03 0:26 UTC (permalink / raw
To: gentoo-dev; +Cc: Dick
On Tuesday 02 May 2006 15:25, Dick wrote:
> For example ethtool.h, which uses the u32 typedef defined in asm/types.h.
> This typedef has been disabled outside the kernel "to avoid name space
> clashes" which I think is a Good Thing.
that's because the sed used in kernel-2.eclass is slightly broken ... it
should have been changed to '__u32'
> What would be the best way to deal with these broken kernel headers?
file a bug of course
-mike
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-05-03 2:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-02 19:25 [gentoo-dev] broken kernel headers Dick
2006-05-03 0:26 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox