简体   繁体   中英

errors while compiling kernel on ubuntu

i am using ubuntu 12.04 on vmware installed in a windows 7 pc...i was trying to compile linux-2.6.0 source file(downloaded from kernel.org)...i followed the steps as told on the web but there were problems...

so i searched a bit and came across this ...i followed the way told in the answer but still after executing the 2nd step, when i move on to execute the 3rd step(make menuconfig) i get the following errors..

make[1]: `scripts/fixdep' is up to date.
HOSTCC  scripts/kconfig/mconf.o
scripts/kconfig/mconf.c:91:21: error: static declaration of ‘current_menu’ follows
non-static declaration
scripts/kconfig/lkc.h:63:21: note: previous declaration of ‘current_menu’ was here
scripts/kconfig/mconf.c: In function ‘show_textbox’:
scripts/kconfig/mconf.c:553:7: warning: ignoring return value of ‘write’, declared with
attribute warn_unused_result [-Wunused-result]
scripts/kconfig/mconf.c: In function ‘exec_conf’:
scripts/kconfig/mconf.c:225:6: warning: ignoring return value of ‘pipe’, declared with
attribute warn_unused_result [-Wunused-result]
make[1]: *** [scripts/kconfig/mconf.o] Error 1
make: *** [menuconfig] Error 2

same errors happened when i used make xconfig...please tell me what should be done? thanks in advance.

这是从scripts / kconfig / mconf.c中的“ static struct menu * current_ment”行摆脱“ static”关键字的答案

'current_menu'在mconf.c:91中声明为静态,但在lkc.h:63中声明为静态,当前版本的gcc可能不接受,根据2.6.0源中的README建议使用gcc-2.95.3,因此请尝试如果您确实要编译2.6.0,请降级您的gcc版本。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM