[uClibc] [PATCH]:Buildroot compilation error with GCC4.0
kraj at mvista.com
Thu Jul 21 13:42:37 MDT 2005
While doing make menuconfig I stumbled over this error.
mconf.c:104: error: static declaration of 'current_menu' follows
lkc.h:63: error: previous declaration of 'current_menu' was here
Looking at the source it seems that the current_menu is declared static
and exported at same time.
as a simple fix I removed the static declaration and made is global.
Make menuconfig succeeded after that
Is this ok?
--- package/config/mconf.c (revision 10888)
+++ package/config/mconf.c (working copy)
@@ -101,7 +101,7 @@
static int indent = 0;
static struct termios ios_org;
static int rows, cols;
-static struct menu *current_menu;
+struct menu *current_menu;
static int child_count;
static int single_menu_mode;
More information about the uClibc