LinuxSir.cn,穿越时空的Linuxsir!

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

linux内核的重新编译???

[复制链接]
发表于 2004-7-19 15:42:24 | 显示全部楼层 |阅读模式
我在重新编译内核,在用make bzImage时老是出错:

gcc -D__KERNEL__ -I/admin/kernel-2.4.18/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=i586 -DKBUILD_BASENAME=selection -DEXPORT_SYMTAB -c
selection.c
gcc -D__KERNEL__ -I/admin/kernel-2.4.18/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=i586 -DKBUILD_BASENAME=serial -DEXPORT_SYMTAB -c serial.c
In file included from serial.c:181:
/admin/kernel-2.4.18/include/linux/serialP.h:27: parse error
serial.c:201: parse error
serial.c:204: parse error
serial.c:225: parse error
serial.c:677: parse error
serial.c:1432: parse error
serial.c:1581: parse error
serial.c:2157: parse error
serial.c:2204: parse error
serial.c:2381: parse error
serial.c:2538: parse error
serial.c:2553: parse error
serial.c:3167: parse error
serial.c:3831: parse error
serial.c:3836: linux/symtab_begin.h: No such file or directory
serial.c:3839: linux/symtab_end.h: No such file or directory
serial.c:5386: parse error
serial.c:5389: parse error
serial.c:5424: parse error
serial.c:5427: parse error
serial.c:5438: parse error
serial.c:5445: parse error
serial.c: In function `receive_chars':
serial.c:680: warning: implicit declaration of function
`queue_task_irq_off'
serial.c: In function `rs_write':
serial.c:1876: warning: implicit declaration of function
`copy_from_user'
serial.c: In function `get_serial_info':
serial.c:2074: warning: implicit declaration of function `copy_to_user'
serial.c: At top level:
serial.c:3835: variable `serial_syms' has initializer but incomplete
type
serial.c:3837: warning: implicit declaration of function `X'
serial.c:3837: warning: excess elements in struct initializer
serial.c:3837: warning: (near initialization for `serial_syms')
serial.c:3838: warning: excess elements in struct initializer
serial.c:3838: warning: (near initialization for `serial_syms')
serial.c:2398: warning: `rs_break' defined but not used
serial.c:3835: warning: `serial_syms' defined but not used
make[3]: *** [serial.o] Error 1
make[3]: Leaving directory `/admin/kernel-2.4.18/drivers/char'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/admin/kernel-2.4.18/drivers/char'
make[1]: *** [_subdir_char] Error 2
make[1]: Leaving directory `/admin/kernel-2.4.18/drivers'
make: *** [_dir_drivers] Error 2


不知道是不是用make menuconfig时漏掉了什么选项没选,盼高手指教???
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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