Reputation: 3423
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.
Upvotes: 1
Views: 3621
Reputation: 3065
Here is the answer just get rid of 'static' keyword from 'static struct menu *current_ment' line in scripts/kconfig/mconf.c
Upvotes: 4
Reputation: 239
‘current_menu’ is declared static in mconf.c:91 but not in lkc.h:63, this may not be accepted by gcc of current version,gcc-2.95.3 is recommended according to README in 2.6.0 source,so try to downgrade your gcc version if you REALLY want to compile 2.6.0.
Upvotes: 1