|
发表于 2003-9-23 08:00:12
|
显示全部楼层
我在 ML1.1 下 编译 2.6.0-test5, make bzImage 成功, 但是 make modules 时, 和上面的朋友得到的错误几乎一样!
我搜索了一下有关站点, 得到如下的提示:
================================================================
Sympton: The kernel compiles ok producing bzImage but 'make modules' fails.
Solution: This one is very peculiar of Redhat distribution but may happen to other distributions. There are some "left over" files which are hanging and causing problems. The remedy is to do 'make mrproper' and 'make clean' and then do 'make modules'. But you may want to copy the saved config file as shown below:
bash# cd /usr/src/linux
bash# mkdir /usr/src/kernelconfigs ;
bash# cp /usr/src/linux/.config /usr/src/kernelconfigs/.config.save;
bash# cp /usr/src/linux/.config /usr/src/linux/configs/.config.save # ExtraSafe
bash# cp /boot/config* /usr/src/linux/configs/ # ExtraSafe
bash# make clean
bash# make mrproper # "MUST DO THIS mrproper", otherwise you will face hell lot of problems !!
bash# make clean
bash# cp /usr/src/kernelconfigs/.config.save .config # In case you want to reuse the config file ??
=====================================================================
然而, 当我做 'make mrproper' and 'make clean' 时, 辛苦编译的 kernel 都被删掉了. 哪位兄弟摸索一下看看.
以下是我 make modules 时得到的错误信息:
...... ......
drivers/video/console/mdacon.c: In function `mdacon_init':
drivers/video/console/mdacon.c:374: warning: `MOD_INC_USE_COUNT' is deprecated (declared at include/linux/module.h:482)
drivers/video/console/mdacon.c: In function `mdacon_deinit':
drivers/video/console/mdacon.c:384: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at include/linux/module.h:494)
CC [M] drivers/video/matrox/matroxfb_base.o
drivers/video/matrox/matroxfb_base.c:1250: warning: `inverse' defined but not used
CC [M] drivers/video/matrox/matroxfb_accel.o
CC [M] drivers/video/matrox/matroxfb_DAC1064.o
CC [M] drivers/video/matrox/matroxfb_Ti3026.o
CC [M] drivers/video/matrox/matroxfb_misc.o
CC [M] drivers/video/matrox/g450_pll.o
CC [M] drivers/video/matrox/i2c-matroxfb.o
CC [M] drivers/video/matrox/matroxfb_maven.o
drivers/video/matrox/matroxfb_maven.c: In function `maven_compute_bwlevel':
drivers/video/matrox/matroxfb_maven.c:347: warning: duplicate `const'
drivers/video/matrox/matroxfb_maven.c:348: warning: duplicate `const'
CC [M] drivers/video/matrox/matroxfb_crtc2.o
CC [M] sound/usb/usbaudio.o
CC [M] sound/usb/usbmixer.o
CC [M] sound/usb/usbmidi.o
LD [M] sound/usb/snd-usb-audio.o
CC [M] net/8021q/vlan.o
CC [M] net/8021q/vlan_dev.o
CC [M] net/8021q/vlanproc.o
LD [M] net/8021q/8021q.o
CC [M] net/atm/br2684.o
net/atm/br2684.c: In function `br2684_seq_show':
net/atm/br2684.c:735: `pos' undeclared (first use in this function)
net/atm/br2684.c:735: (Each undeclared identifier is reported only once
net/atm/br2684.c:735: for each function it appears in.)
net/atm/br2684.c:736: `buf' undeclared (first use in this function)
make[2]: *** [net/atm/br2684.o] Error 1
make[1]: *** [net/atm] Error 2
make: *** [net] Error 2 |
|