QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 715|回复: 11

编译错误

[复制链接]
发表于 2003-7-1 09:47:40 | 显示全部楼层 |阅读模式
编译前面都很正常,执行make dep时出现错误:
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep scripts/mkdep.c
scripts/mkdep.c: In function `add_path':
scripts/mkdep.c:221: `PATH_MAX' undeclared (first use in this function)
scripts/mkdep.c:221: (Each undeclared identifier is reported only once
scripts/mkdep.c:221: for each function it appears in.)
scripts/mkdep.c:221: size of array `resolved_path' has non-integer type
make: *** [scripts/mkdep] Error
 楼主| 发表于 2003-7-1 09:56:50 | 显示全部楼层
系统为redhat9,升级到2.4.21,安装oracle时gcc的版本改成了2。1,会不会跟这个有关系?
回复

使用道具 举报

发表于 2003-7-1 10:07:02 | 显示全部楼层
2.1 is too old. can u try 3.2?
回复

使用道具 举报

 楼主| 发表于 2003-7-1 10:11:37 | 显示全部楼层
我很菜啊,如果升级了,我的oracle还能用吗?
回复

使用道具 举报

发表于 2003-7-1 10:32:11 | 显示全部楼层
no idea. but u should be able to keep two gcc on one system i think.

am i wrong?

why oracle need 2.1 gcc. i think oracle can run on rh8 or 9 well.
回复

使用道具 举报

 楼主| 发表于 2003-7-1 11:22:05 | 显示全部楼层
我用的是oracle817,安装必须要gcc2。1,不然装不上。
ps:怎么保持2个gcc?
回复

使用道具 举报

发表于 2003-7-1 21:10:18 | 显示全部楼层
if install oracle need gcc 2.1 does it need even after installing?
回复

使用道具 举报

 楼主| 发表于 2003-7-1 21:55:47 | 显示全部楼层
我很菜啊,对linux和oracle都不是很懂。。呵呵
怎么样在机器上保持2个gcc?
怎么查看gcc的版本,是这个:rpm -e gcc 吗?
回复

使用道具 举报

发表于 2003-7-2 02:25:08 | 显示全部楼层
no, that is delete.
rpm -q i think.

for 2 gcc, u need to check some doc. i use gentoo, which handle this easier. not sure about rh.
回复

使用道具 举报

 楼主| 发表于 2003-7-2 09:12:00 | 显示全部楼层
我看了一下,gcc的版本是3。2。2-5
回复

使用道具 举报

发表于 2003-7-2 21:22:07 | 显示全部楼层
not 2.1? hehe. find that sb has this problem before. check if u have /usr/include/linux/limit.h.
u user space header files are incomplete.
回复

使用道具 举报

 楼主| 发表于 2003-7-2 23:14:02 | 显示全部楼层
同一台机器上装着redhat72,全新完全安装,成功编译内核2.4.21,看来跟安装oracle817有很大关系,又打补丁又降级的。。
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-18 15:49 , Processed in 0.055258 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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