编译内核过程中, make xconfig出现的找不到文件errno.h的问题

张志龙 2006-02-13 12:42:13
本人内核源代码解压缩于/usr/src/linux/linux-2.6.15.4,原来linux版本为FC4,在vmware下编译。。

已经按照这一步做了:
将/usr/include/asm、/usr/inlude/linux、/usr/include/scsi链接到/usr/src/linux/linux-2.6.15.4/include目录下的对应目录中。
# cd /usr/include
  # rm -Rf asm linux
  # ln -s /usr/src/linux/linux-2.6.15.4/include/asm-i386 asm
# ln -s /usr/src/linux/linux-2.6.15.4/include/linux linux
# ln -s /usr/src/linux/linux-2.6.15.4/include/scsi scsi


# cd /usr/src/linux-2.4
# make mrproper
2、启动内核配置程序
# cd /usr/src/linux-2.4
# make xconfig
(这一步出现问题:
/usr/include/asm/errno.h:4:31:error:asm-generic/errno.h:没有这个文件或目录)
...全文
534 13 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
bitzilla 2006-02-17
  • 打赏
  • 举报
回复
make xconfig是采用qt环境的,可能你没有装qt的环境,所以会出错。

张志龙 2006-02-14
  • 打赏
  • 举报
回复
呵呵,不容易。升级成功了。前前后后花了有4天时间。。。。。
张志龙 2006-02-13
  • 打赏
  • 举报
回复
晕, 那已经做了链接,现在怎么办?要将它们删掉吗?
fierygnu 2006-02-13
  • 打赏
  • 举报
回复
不要做那些链接,直接make xconfig
fierygnu 2006-02-13
  • 打赏
  • 举报
回复
安装了吗?make install会自动在grub.conf里添加新内核选项。
张志龙 2006-02-13
  • 打赏
  • 举报
回复
没有选择界面啊
fierygnu 2006-02-13
  • 打赏
  • 举报
回复
有选择界面吗?或者修改grub.conf就可以。
张志龙 2006-02-13
  • 打赏
  • 举报
回复
呵,谢谢。
终于编译好了。不过还有一个问题请教:
好像我的grub.conf已经自动修改过了。但是,启动之后还是以原来的内核启动了。如何才能进入选择界面?或者改为默认启动的内核?
fierygnu 2006-02-13
  • 打赏
  • 举报
回复
make menuconfig,别用xconfig
张志龙 2006-02-13
  • 打赏
  • 举报
回复
我备份了。:)
不过,我还原了原来的asm,linux文件夹之后,再make xconfig之后,发现 CHECK qt时错误,不能找到QT安装?
-----
晕死了,fc4这么难搞啊?
想换redhat7.2
不过找不到该下载。。。。郁闷。。。
张志龙 2006-02-13
  • 打赏
  • 举报
回复
就是这个错误。。。。why?
]# make xconfig
HOSTCC scripts/basic/split-include
In file included from /usr/include/linux/errno.h:4,
from /usr/include/bits/errno.h:25,
from /usr/include/errno.h:36,
from scripts/basic/split-include.c:26:
/usr/include/asm/errno.h:4:31: asm-generic/errno.h: No such file or directory
make[1]: *** [scripts/basic/split-include] Error 1
make: *** [scripts_basic] Error 2
fierygnu 2006-02-13
  • 打赏
  • 举报
回复
那就把asm-generic也做连接试试。
你已经rm -rf了,恢复不了了。
张志龙 2006-02-13
  • 打赏
  • 举报
回复
删除了也没用。
这次少了很多文件。。。
还有一些错误。。。:(

4,465

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 内核源代码研究区
社区管理员
  • 内核源代码研究区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧