Compile error including asm/uaccess.h
<snip>
In file included from /usr/include/linux/sched.h:14,
from /usr/include/asm/uaccess.h:8,
from test.cpp:1:/usr/include/linux/timex.h:173: field `time' has incomplete type In file included from /usr/include/linux/sched.h:17,
from /usr/include/asm/uaccess.h:8,
from test.cpp:1:/usr/include/asm/system.h:238: parse error before new' /usr/include/asm/system.h: In function long unsigned int __cmpxchg(...)':/usr/include/asm/system.h:241: `size' undeclared (first use this function)/usr/include/asm/system.h:241: (Each undeclared identifier is reported only
once for each function it appears in.)/usr/include/asm/system.h:245: parse error before )' token /usr/include/asm/system.h:251: parse error before )' token /usr/include/asm/system.h:257: parse error before )' token /usr/include/asm/system.h:261: old' undeclared (first use this function)
</snip>
Dont include kernel headers in userspace OR define the needed variables to make your userspace application compile.
Nice report btw
/ismail
Quoted 5 lines
Dont include kernel headers in userspace OR define the needed variables to make your userspace application compile.
Nice report btw
/ismail
How then do you wrote an application to utilize kernel features? I am working on a real-time operating system (KURT - www.ittc.ku.edu/kurt) and need to include a header that exists in the kernel. The header is installed in the /usr/src/linux/include/linux/ but not in /usr/include/linux.
Thanks about the report. I got the idea from a library I help work on called ACE+TAO (www.cs.wustl.edu/~schmidt/ACE.html).
Stephen
Signature · 1 line
Stephen Torri <[email protected]>
Quoted 6 lines · Stephen Torri
How then do you wrote an application to utilize kernel features? I am working on a real-time operating system (KURT - www.ittc.ku.edu/kurt) and need to include a header that exists in the kernel. The header is installed in the
/usr/src/linux/include/linux/but not in/usr/include/linux.
See what definitions missing and typedef them in your own source code. That way you wont need other kernel headers.
Signature · 1 line
Brain fried -- Core dumped