big106 发表于 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: *** Error

big106 发表于 2003-7-1 09:56:50

系统为redhat9,升级到2.4.21,安装oracle时gcc的版本改成了2。1,会不会跟这个有关系?

Dragonfly 发表于 2003-7-1 10:07:02

2.1 is too old. can u try 3.2?

big106 发表于 2003-7-1 10:11:37

我很菜啊,如果升级了,我的oracle还能用吗?

Dragonfly 发表于 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.

big106 发表于 2003-7-1 11:22:05

我用的是oracle817,安装必须要gcc2。1,不然装不上。
ps:怎么保持2个gcc?

Dragonfly 发表于 2003-7-1 21:10:18

if install oracle need gcc 2.1 does it need even after installing?

big106 发表于 2003-7-1 21:55:47

我很菜啊,对linux和oracle都不是很懂。。呵呵
怎么样在机器上保持2个gcc?
怎么查看gcc的版本,是这个:rpm -e gcc 吗?

Dragonfly 发表于 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.

big106 发表于 2003-7-2 09:12:00

我看了一下,gcc的版本是3。2。2-5

Dragonfly 发表于 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.

big106 发表于 2003-7-2 23:14:02

同一台机器上装着redhat72,全新完全安装,成功编译内核2.4.21,看来跟安装oracle817有很大关系,又打补丁又降级的。。
页: [1]
查看完整版本: 编译错误