[BusyBox] asm/posix_types.h (for arm) causing problems in loop.c
Deacon, Keith
kdeacon at ti.com
Mon Feb 9 21:59:43 UTC 2004
Greetings,
Trying to get busybox compiled for ARM with 2.6 headers. I have working
compiler built with 2.6 headers for ARM with uClibc. While compiling
loop.c, I got the error about __kernel_old_dev_t not being defined. Looking
into the busybox CVS tree, I saw a patch that looked like it would fix the
problem. I pulled it in, but it didn't work. After tracing it out, it
appears that the #include <stdio.h> is eventually including
bits/kernel_types.h from the toolchain - which has the following info in the
header:
/* Note that we use the exact same include guard #define names
* as asm/posix_types.h. This will avoid gratuitous conflicts
* with the posix_types.h kernel header, and will ensure that
* our private content, and not the kernel header, will win.
* -Erik
*/
However, bits/kernel_types.h doesn't define __kernel_old_dev_t and is
included before asm/posix_types.h. Because of the include guard, the
asm/posix_types.h is basically ignored. May be a problem with how the
uClibc tool chain goes together or how busybox tries to find the proper
definition. I coded around it for the moment and will revisit it later when
I get a chance. Anyone else hit this?
Thanks
...Keith
More information about the busybox
mailing list