I have a question about Kernel compilation! -- Linux general technology-Linux programming and kernel information. The following is a detailed description. When I was writing the driver today, I encountered a problem during compilation and compilation. I would like to ask you:
The program contains several common header files, such as module. h, version. h types. h, fs. h, and mm. h,
Use gcc-o2-DMODULE-D_KERNEL _-I/usr/src/linux-2.4.20-8/include-c a. c for compilation,
However, many parese errors are reported. My gcc version is 3.2.2. The errors are as follows:
/Usr/src/linux-2.4.20-8/include/linux/pid. h: 36: parse error before '('token
There are also the following errors:
/Usr/src/linux-2.4.20-8/linux/pid. h: 19: fileld "task_list" has incomplete type
/Usr/src/linux-2.4.20-8/linux/pid. h: 19: fileld "hash_chain" has incomplete type
/Usr/src/linux-2.4.20-8/linux/pid. h: 19: fileld "pid_chain" has incomplete type
What is going on here? Hope you can give me some advice !!!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service