* 2.4.21 byteorder.h problem with__u64
@ 2003-06-24 23:48 Rick Warner
0 siblings, 0 replies; only message in thread
From: Rick Warner @ 2003-06-24 23:48 UTC (permalink / raw)
To: linux-kernel
Hello all,
I am in the process of building a LFS system using gcc 3.2.3, glibc 2.3.2, and
linux 2.4.21. I have the full system built short of kde. In building the
kdemultimedia package from kde-3.1.2, I get errors regarding __u64 being
undefined in byteorder.h on the swab64 function. This function is dependent
on _GNU_ being defined, while the __u64 type is only defined when _GNU_ is
defined and _STRICT_ANSI_ is not.
I found some references to this from 5/6/03 timeframe for 2.4.21-rc1 with a
patch included, but this patch was not included into 2.4.21! The error is
still there! The messages in the thread were just arguments about userland
progs including kernel headers.... if userland isn't supposed to use kernel
headers.. why are they copied into /usr/include !? It is perfectly normal
for a userland app to include cdrom.h.. which in turn includes the
problematic file......
I have used the patch which removes the swab64 function when _STRICT_ANSI_ is
defined on my byteorder.h... this has resolved my problem....
My real question is why this hasn't been included in the 2.4.21 release.
Having a type be used with _STRICT_ANSI_ defined when the type isn't defined
when _STRICT_ANSI_ is defined is definately wrong. It can't stay the way it
is. If people want to argue about the "correct" solution (either defining
__u64 regardless of _STRICT_ANSI_ or not defining the swab64 function if
_STRICT_ANSI_ is defined), that's fine... as long as SOME solution is put in
place.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-06-24 23:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-24 23:48 2.4.21 byteorder.h problem with__u64 Rick Warner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®