内核编译出错,make menuconfig出错什么原因阿?

为当前最终发行版之前的所有版本提供支持
回复
头像
paladinfly
帖子: 21
注册时间: 2005-09-19 9:51
来自: 南宁
送出感谢: 0
接收感谢: 0

内核编译出错,make menuconfig出错什么原因阿?

#1

帖子 paladinfly » 2005-09-22 1:01

chris@Ubuntu:~/linux-2.6.12$ sudo make menuconfig
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c:105:23: sys/types.h: 没有那个文件或目录
scripts/basic/fixdep.c:106:22: sys/stat.h: 没有那个文件或目录
scripts/basic/fixdep.c:107:22: sys/mman.h: 没有那个文件或目录
scripts/basic/fixdep.c:108:20: unistd.h: 没有那个文件或目录
scripts/basic/fixdep.c:109:19: fcntl.h: 没有那个文件或目录
scripts/basic/fixdep.c:110:20: string.h: 没有那个文件或目录
scripts/basic/fixdep.c:111:20: stdlib.h: 没有那个文件或目录
scripts/basic/fixdep.c:112:19: stdio.h: 没有那个文件或目录
In file included from /usr/lib/gcc/i486-linux-gnu/3.4.5/include/syslimits.h:7,
from /usr/lib/gcc/i486-linux-gnu/3.4.5/include/limits.h:11,
from scripts/basic/fixdep.c:113:
/usr/lib/gcc/i486-linux-gnu/3.4.5/include/limits.h:122:61: limits.h: 没有那个文 件或目录
scripts/basic/fixdep.c:114:19: ctype.h: 没有那个文件或目录
scripts/basic/fixdep.c:115:23: arpa/inet.h: 没有那个文件或目录
scripts/basic/fixdep.c: In function `usage':
scripts/basic/fixdep.c:129: warning: implicit declaration of function `fprintf'
scripts/basic/fixdep.c:129: error: `stderr' undeclared (first use in this functi on)
scripts/basic/fixdep.c:129: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:129: error: for each function it appears in.)
scripts/basic/fixdep.c:130: warning: implicit declaration of function `exit'
scripts/basic/fixdep.c: In function `print_cmdline':
scripts/basic/fixdep.c:135: warning: implicit declaration of function `printf'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:138: error: `NULL' undeclared here (not in a function)
scripts/basic/fixdep.c: In function `grow_config':
scripts/basic/fixdep.c:151: warning: implicit declaration of function `realloc'
scripts/basic/fixdep.c:151: warning: assignment makes pointer from integer witho ut a cast
scripts/basic/fixdep.c:153: warning: implicit declaration of function `perror'
scripts/basic/fixdep.c: In function `is_defined_config':
scripts/basic/fixdep.c:169: warning: implicit declaration of function `memcmp'
scripts/basic/fixdep.c: In function `define_config':
scripts/basic/fixdep.c:182: warning: implicit declaration of function `memcpy'
scripts/basic/fixdep.c: In function `use_config':
scripts/basic/fixdep.c:201: error: `PATH_MAX' undeclared (first use in this func tion)
scripts/basic/fixdep.c:215: warning: implicit declaration of function `tolower'
scripts/basic/fixdep.c:201: warning: unused variable `s'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:220: error: parse error before "size_t"
scripts/basic/fixdep.c:221: warning: function declaration isn't a prototype
scripts/basic/fixdep.c: In function `parse_config_file':
scripts/basic/fixdep.c:222: error: `map' undeclared (first use in this function)
scripts/basic/fixdep.c:222: error: `len' undeclared (first use in this function)
scripts/basic/fixdep.c:228: warning: implicit declaration of function `ntohl'
scripts/basic/fixdep.c:239: warning: implicit declaration of function `isalnum'
scripts/basic/fixdep.c: In function `strrcmp':
scripts/basic/fixdep.c:252: warning: implicit declaration of function `strlen'
scripts/basic/fixdep.c: In function `do_config_file':
scripts/basic/fixdep.c:263: error: storage size of 'st' isn't known
scripts/basic/fixdep.c:267: warning: implicit declaration of function `open'
scripts/basic/fixdep.c:267: error: `O_RDONLY' undeclared (first use in this func tion)
scripts/basic/fixdep.c:269: error: `stderr' undeclared (first use in this functi on)
scripts/basic/fixdep.c:273: warning: implicit declaration of function `fstat'
scripts/basic/fixdep.c:275: warning: implicit declaration of function `close'
scripts/basic/fixdep.c:278: warning: implicit declaration of function `mmap'
scripts/basic/fixdep.c:278: error: `PROT_READ' undeclared (first use in this fun ction)
scripts/basic/fixdep.c:278: error: `MAP_PRIVATE' undeclared (first use in this f unction)
scripts/basic/fixdep.c:278: warning: assignment makes pointer from integer witho ut a cast
scripts/basic/fixdep.c:287: warning: implicit declaration of function `munmap'
scripts/basic/fixdep.c:263: warning: unused variable `st'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:292: error: parse error before "size_t"
scripts/basic/fixdep.c:293: warning: function declaration isn't a prototype
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:294: error: `map' undeclared (first use in this function)
scripts/basic/fixdep.c:295: error: `len' undeclared (first use in this function)
scripts/basic/fixdep.c:297: error: `PATH_MAX' undeclared (first use in this func tion)
scripts/basic/fixdep.c:299: warning: implicit declaration of function `strchr'
scripts/basic/fixdep.c:301: error: `stderr' undeclared (first use in this functi on)
scripts/basic/fixdep.c:297: warning: unused variable `s'
scripts/basic/fixdep.c: In function `print_deps':
scripts/basic/fixdep.c:334: error: storage size of 'st' isn't known
scripts/basic/fixdep.c:338: error: `O_RDONLY' undeclared (first use in this func tion)
scripts/basic/fixdep.c:340: error: `stderr' undeclared (first use in this functi on)
scripts/basic/fixdep.c:350: error: `PROT_READ' undeclared (first use in this fun ction)
scripts/basic/fixdep.c:350: error: `MAP_PRIVATE' undeclared (first use in this f unction)
scripts/basic/fixdep.c:350: warning: assignment makes pointer from integer witho ut a cast
scripts/basic/fixdep.c:334: warning: unused variable `st'
scripts/basic/fixdep.c: In function `traps':
scripts/basic/fixdep.c:369: error: `stderr' undeclared (first use in this functi on)
make[1]: *** [scripts/basic/fixdep] 错误 1
make: *** [scripts_basic] 错误 2
Barton 2500+ + 1G RAM + Epox 8RDA3+ + MSI9550R + 160G+ 30G
Ubuntu + WinXP XP2 + Turbolinux 7.1
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#2

帖子 eexpress » 2005-09-22 1:13

sys/types.h: 没有那个文件或目录
就是基本的编译库和头文件都没有。可能要先装gcc的其他库。
● 鸣学
头像
paladinfly
帖子: 21
注册时间: 2005-09-19 9:51
来自: 南宁
送出感谢: 0
接收感谢: 0

#3

帖子 paladinfly » 2005-09-22 21:34

请问要装什么库哦。我装gcc
std库装了,还有什么库哦
Barton 2500+ + 1G RAM + Epox 8RDA3+ + MSI9550R + 160G+ 30G
Ubuntu + WinXP XP2 + Turbolinux 7.1
头像
oneleaf
论坛管理员
帖子: 10208
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04
送出感谢: 7 次
接收感谢: 99 次

#4

帖子 oneleaf » 2005-09-22 21:59

头像
paladinfly
帖子: 21
注册时间: 2005-09-19 9:51
来自: 南宁
送出感谢: 0
接收感谢: 0

#5

帖子 paladinfly » 2005-09-23 1:29

谢谢叶兄,搞定了。
Barton 2500+ + 1G RAM + Epox 8RDA3+ + MSI9550R + 160G+ 30G
Ubuntu + WinXP XP2 + Turbolinux 7.1
hjp9371
帖子: 1
注册时间: 2008-05-10 21:42
送出感谢: 0
接收感谢: 0

#6

帖子 hjp9371 » 2008-05-10 21:43

请问楼主的问题具体是怎么搞定的啊>>???我也遇到这个问题了.谢谢!
头像
oneleaf
论坛管理员
帖子: 10208
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04
送出感谢: 7 次
接收感谢: 99 次

Re: 内核编译出错,make menuconfig出错什么原因阿?

#7

帖子 oneleaf » 2009-02-04 20:05

回复

回到 “老旧版本支持”