LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   make menuconfig errors (https://www.linuxquestions.org/questions/linux-general-1/make-menuconfig-errors-171902/)

Abe_the_Man 04-18-2004 11:47 PM

make menuconfig errors
 
i'm trying a new distro called Cobind desktop, it is based on fedora core one. I have compiled my own kernel dozens of times, but when i do 'make menuconfig' in this distro, i get the following message:

[root@localhost linux]# make menuconfig
rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
make -C scripts/lxdialog all
make[1]: Entering directory `/usr/src/linux-2.4.25/scripts/lxdialog'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE -DCURSES_LOC="<curses.h>" -c -o checklist.o checklist.c
In file included from checklist.c:24:
dialog.h:29:20: curses.h: No such file or directory
In file included from checklist.c:24:
dialog.h:127: error: syntax error before "use_colors"
dialog.h:127: warning: type defaults to `int' in declaration of `use_colors'
dialog.h:127: warning: data definition has no type or storage class
dialog.h:128: error: syntax error before "use_shadow"
dialog.h:128: warning: type defaults to `int' in declaration of `use_shadow'
dialog.h:128: warning: data definition has no type or storage class
dialog.h:130: error: syntax error before "attributes"
dialog.h:130: warning: type defaults to `int' in declaration of `attributes'
dialog.h:130: warning: data definition has no type or storage class
dialog.h:143: error: syntax error before '*' token
dialog.h:143: warning: function declaration isn't a prototype
dialog.h:146: error: syntax error before '*' token
dialog.h:146: warning: function declaration isn't a prototype
dialog.h:147: error: syntax error before '*' token
dialog.h:147: warning: function declaration isn't a prototype
dialog.h:148: error: syntax error before '*' token
dialog.h:149: warning: function declaration isn't a prototype
dialog.h:150: error: syntax error before '*' token
dialog.h:150: warning: function declaration isn't a prototype
checklist.c:32: error: syntax error before '*' token
checklist.c:34: warning: function declaration isn't a prototype
checklist.c: In function `print_item':
checklist.c:38: warning: implicit declaration of function `wattrset'
checklist.c:38: error: `win' undeclared (first use in this function)
checklist.c:38: error: (Each undeclared identifier is reported only once
checklist.c:38: error: for each function it appears in.)
checklist.c:39: warning: implicit declaration of function `wmove'
checklist.c:39: error: `choice' undeclared (first use in this function)
checklist.c:41: warning: implicit declaration of function `waddch'
checklist.c:44: error: `selected' undeclared (first use in this function)
checklist.c:46: warning: implicit declaration of function `wprintw'
checklist.c:46: error: `status' undeclared (first use in this function)
checklist.c:51: warning: implicit declaration of function `mvwaddch'
checklist.c:51: error: `item' undeclared (first use in this function)
checklist.c:53: warning: implicit declaration of function `waddstr'
checklist.c:56: warning: implicit declaration of function `wrefresh'
checklist.c: At top level:
checklist.c:64: error: syntax error before '*' token
checklist.c:66: warning: function declaration isn't a prototype
checklist.c: In function `print_arrows':
checklist.c:67: error: `win' undeclared (first use in this function)
checklist.c:67: error: `y' undeclared (first use in this function)
checklist.c:67: error: `x' undeclared (first use in this function)
checklist.c:69: error: `scroll' undeclared (first use in this function)
checklist.c:82: error: `height' undeclared (first use in this function)
checklist.c:85: error: `item_no' undeclared (first use in this function)
checklist.c:85: error: `choice' undeclared (first use in this function)
checklist.c: At top level:
checklist.c:103: error: syntax error before '*' token
checklist.c:104: warning: function declaration isn't a prototype
checklist.c: In function `print_buttons':
checklist.c:105: error: `width' undeclared (first use in this function)
checklist.c:106: error: `height' undeclared (first use in this function)
checklist.c:108: error: `dialog' undeclared (first use in this function)
checklist.c:108: error: `selected' undeclared (first use in this function)
checklist.c: In function `dialog_checklist':
checklist.c:126: error: `WINDOW' undeclared (first use in this function)
checklist.c:126: error: `dialog' undeclared (first use in this function)
checklist.c:126: error: `list' undeclared (first use in this function)
checklist.c:126: warning: left-hand operand of comma expression has no effect
checklist.c:132: warning: implicit declaration of function `endwin'
checklist.c:133: warning: implicit declaration of function `fprintf'
checklist.c:133: error: `stderr' undeclared (first use in this function)
checklist.c:148: error: `COLS' undeclared (first use in this function)
checklist.c:149: error: `LINES' undeclared (first use in this function)
checklist.c:151: error: `stdscr' undeclared (first use in this function)
checklist.c:153: warning: implicit declaration of function `newwin'
checklist.c:154: warning: implicit declaration of function `keypad'
checklist.c:154: error: `TRUE' undeclared (first use in this function)
checklist.c:187: warning: implicit declaration of function `subwin'
checklist.c:219: warning: implicit declaration of function `wnoutrefresh'
checklist.c:221: warning: implicit declaration of function `doupdate'
checklist.c:224: warning: implicit declaration of function `wgetch'
checklist.c:231: error: `KEY_UP' undeclared (first use in this function)
checklist.c:231: error: `KEY_DOWN' undeclared (first use in this function)
checklist.c:241: error: `FALSE' undeclared (first use in this function)
checklist.c:242: warning: implicit declaration of function `scrollok'
checklist.c:243: warning: implicit declaration of function `wscrl'
checklist.c:270: error: called object is not a function
checklist.c:305: warning: implicit declaration of function `delwin'
checklist.c:309: error: `KEY_LEFT' undeclared (first use in this function)
checklist.c:310: error: `KEY_RIGHT' undeclared (first use in this function)
checklist.c: At top level:
dialog.h:130: warning: array `attributes' assumed to have one element
make[1]: *** [checklist.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.25/scripts/lxdialog'
make: *** [menuconfig] Error 2
[root@localhost linux]#

I thought perhaps that my download was corrupt, so i downloaded twice more from kernel.org (i tried kernel 2.4.25 and two 2.6.5 downloads) but i still get the same error. I'm puzzeled as to what is wrong. Any help will be appreciated. Thanks!

trickykid 04-19-2004 12:32 AM

My guess would be you need to update ncurses.

Abe_the_Man 04-19-2004 12:53 AM

i updated ncurses to the lates (5.4, it was 5.3.9), still getting the same error.

motub 04-19-2004 09:02 AM

Have you tried make config, make xconfig, or make gconfig instead? Not that this would necessarily solve your problem with make menuconfig, but it might let you get on with compiling the kernel, which is after all the whole point :) .


All times are GMT -5. The time now is 12:17 AM.