2012-05-31 54 views
0

我在安裝在windows 7 pc上的vmware上使用ubuntu 12.04 ...我試圖編譯linux-2.6.0源文件(從kernel.org下載)...我跟着步驟在網絡上告訴,但有問題...在編譯ubuntu上的內核時出現錯誤

所以我搜查了一下,碰到this ...我遵循的方式告訴答案,但仍然執行第二步後,當我繼續前進執行第三步(make menuconfig進行)我得到以下錯誤..

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 

同樣的錯誤發生了,當我用化妝xconfig的......請告訴我應該怎麼做?提前致謝。

+0

什麼是對使用Linux 2.6.0,這是〜9歲的原因? –

+0

我正在學習操作系統,並希望從更早的版本開始,因此簡單版本 – avinash

+1

Linux 2.6.0和Linux 3.2之間的區別並不會那麼重要。 –

回答

1

'current_menu'在mconf.c:91中聲明爲靜態,但不在lkc.h:63中,這可能不被當前版本的gcc接受,根據2.6.0中的README推薦使用gcc-2.95.3源,所以如果你真的想要編譯2.6.0,請嘗試降級你的gcc版本。

2

Here is the answer 剛剛擺脫從「靜態」關鍵字的「靜態結構菜單* current_ment」在腳本行/ kconfig命令/ mconf.c