AnsweredAssumed Answered

some errors during compilation of a new kernel for BF537 -stamp

Question asked by feucom on Mar 12, 2012
Latest reply on Jun 27, 2012 by Rishi

Hello blackfin-uclinux community,


I try to compile a new kernel for my bf537-stamp board and followed the instruction “Basic Compilation”. Everything worked perfect and I have now the uClinux-dist directory.

However after entering:


$ make menuconfig


I got some errors:


feucom@feucom-laptop:~/blackfin-linux-dist$ make menuconfig

find vendors -mindepth 2 '(' -name .svn -prune ')' -o -type f -name Kconfig -print | sed 's:^:source ../:' > vendors/Kconfig

config/mkconfig > Kconfig

CC=cc CXX=c++ make -C /home/feucom/blackfin-linux-dist/config/kconfig mconf

make[1]: Entering directory `/home/feucom/blackfin-linux-dist/config/kconfig'

cc -DCURSES_LOC="<curses.h>"   -c -o mconf.o mconf.c

In file included from mconf.c:27:

lxdialog/dialog.h:32:20: error: curses.h: No such file or directory

In file included from mconf.c:27:

lxdialog/dialog.h:97: error: expected specifier-qualifier-list before ‘chtype’

lxdialog/dialog.h:187: error: expected ‘)’ before ‘*’ token

lxdialog/dialog.h:193: error: expected ‘)’ before ‘*’ token

lxdialog/dialog.h:195: error: expected ‘)’ before ‘*’ token

lxdialog/dialog.h:196: error: expected ‘)’ before ‘*’ token

lxdialog/dialog.h:197: error: expected ‘)’ before ‘*’ token

lxdialog/dialog.h:198: error: expected ‘)’ before ‘*’ token

lxdialog/dialog.h:200: error: expected ‘)’ before ‘*’ token

mconf.c: In function ‘conf’:

mconf.c:610: error: ‘KEY_MAX’ undeclared (first use in this function)

mconf.c:610: error: (Each undeclared identifier is reported only once

mconf.c:610: error: for each function it appears in.)

mconf.c: In function ‘conf_choice’:

mconf.c:761: error: ‘KEY_MAX’ undeclared (first use in this function)

make[1]: *** [mconf.o] Error 1

make[1]: Leaving directory `/home/feucom/blackfin-linux-dist/config/kconfig'

make: *** [/home/feucom/blackfin-linux-dist/config/kconfig/mconf] Error 2



most properly I missed something, but what … ?


could you please tell me what I should do. Since there are more than one errors, I assume, that just adding "<curses.h>   to `/home/feucom/blackfin-linux-dist/config/kconfig will not solve the issue.


(bfin toolchain is installed already)


Thanks in advance