LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1485|回复: 22

编译kernel2.6.9是出错 !痛苦 请大家帮忙看看是什么问题

[复制链接]
发表于 2006-5-31 23:37:51 | 显示全部楼层 |阅读模式
老大:我用的是kernel2.6.9,今天我升级了iptables 1.3.5并打了patch-o-matic-ng 重新编译内核时,出现错误,我是个初雪者 看不懂是那出了问题请各位帮忙给分析一下 谢谢啦!
make menuconfig
HOSTCC scripts/lxdialog/checklist.o
In file included from scripts/lxdialog/checklist.c:24:
scripts/lxdialog/dialog.h:29:20: curses.h: No such file or directory
In file included from scripts/lxdialog/checklist.c:24:
scripts/lxdialog/dialog.h:127: warning: type defaults to `int' in declaration of
`use_colors'
scripts/lxdialog/dialog.h:127: warning: data definition has no type or storage c
lass
scripts/lxdialog/dialog.h:128: error: syntax error before "use_shadow"
scripts/lxdialog/dialog.h:128: warning: type defaults to `int' in declaration of
`use_shadow'
scripts/lxdialog/dialog.h:128: warning: data definition has no type or storage c
lass
scripts/lxdialog/dialog.h:130: error: syntax error before "attributes"
scripts/lxdialog/dialog.h:130: warning: type defaults to `int' in declaration of
`attributes'
scripts/lxdialog/dialog.h:130: warning: data definition has no type or storage c
lass
scripts/lxdialog/dialog.h:143: error: syntax error before '*' token
scripts/lxdialog/dialog.h:143: warning: function declaration isn't a prototype
scripts/lxdialog/dialog.h:146: error: syntax error before '*' token
scripts/lxdialog/dialog.h:146: warning: function declaration isn't a prototype
scripts/lxdialog/dialog.h:147: error: syntax error before '*' token
scripts/lxdialog/dialog.h:147: warning: function declaration isn't a prototype
scripts/lxdialog/dialog.h:148: error: syntax error before '*' token
scripts/lxdialog/dialog.h:149: warning: function declaration isn't a prototype
scripts/lxdialog/dialog.h:150: error: syntax error before '*' token
scripts/lxdialog/dialog.h:150: warning: function declaration isn't a prototype
scripts/lxdialog/checklist.c:32: error: syntax error before '*' token
scripts/lxdialog/checklist.c:34: warning: function declaration isn't a prototype
scripts/lxdialog/checklist.c: In function `print_item':
scripts/lxdialog/checklist.c:38: warning: implicit declaration of function `watt
rset'
scripts/lxdialog/checklist.c:38: error: `win' undeclared (first use in this func
tion)
scripts/lxdialog/checklist.c:38: error: (Each undeclared identifier is reported
only once
scripts/lxdialog/checklist.c:38: error: for each function it appears in.)
scripts/lxdialog/checklist.c:39: warning: implicit declaration of function `wmov
e'
scripts/lxdialog/checklist.c:39: error: `choice' undeclared (first use in this f
unction)
scripts/lxdialog/checklist.c:41: warning: implicit declaration of function `wadd
ch'
scripts/lxdialog/checklist.c:44: error: `selected' undeclared (first use in this
........
发表于 2006-5-31 23:54:19 | 显示全部楼层
你从哪里下的kernel ? 如何打的patch ? 你不说明白没人会理你的!
回复 支持 反对

使用道具 举报

发表于 2006-6-1 00:02:03 | 显示全部楼层
编译似乎还未开始,貌似 ncurses 还未装的样子
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-1 00:08:26 | 显示全部楼层

!!

patch 是patch-o-matic-ng 自带的runme文件 提示要 kernel 和iptables的路径
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-1 00:16:44 | 显示全部楼层
我用的是kerel.org上的内核,打了iptabels 并发数控制的补丁patch-o-matic-ng-20060419 其中的runme批处理 文件要求提供kernel 和iptables解包文件路径就可以了
刚来论坛 不太懂发贴方法 ,不好意思了
回复 支持 反对

使用道具 举报

发表于 2006-6-1 00:21:32 | 显示全部楼层
make menuconfig
HOSTCC scripts/lxdialog/checklist.o
In file included from scripts/lxdialog/checklist.c:24:
scripts/lxdialog/dialog.h:29:20: [color="Red"]curses.h: No such file or directory
In file included from scripts/lxdialog/checklist.c:24:
scripts/lxdialog/dialog.h:127: warning: type defaults to `int' in declaration of
`use_colors'
ncurses 装了没?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-1 00:23:33 | 显示全部楼层
装了呀 ncurses-5.4-13
回复 支持 反对

使用道具 举报

发表于 2006-6-1 00:25:55 | 显示全部楼层
用什麽发行版?

估计要把开发包也装上才行
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-1 00:26:25 | 显示全部楼层
我在make menuconfig 前 make mrproper了 是不是有影响?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-1 00:28:05 | 显示全部楼层
我用的是as4 没有用发行版自带的kernel  这个有影响吗 谢谢
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表