WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Is the ncurses-dev inclomplete?  (Read 5224 times)

Offline agrypa1

  • Newbie
  • *
  • Posts: 6
Is the ncurses-dev inclomplete?
« on: September 19, 2010, 09:46:28 AM »
Hi,
I am having doubts on whether the ncurses-dev package is complete in TC repo as it is in the upstream. I am not an expert though.
My attempts to start "make menuconfig" from within a coreboot directory (taken via subversion) results in an error saying:
dialog.h file not found.

the coreboot team suggests ncurses-devel package for the make menuconfig functionality.
 Requirements

    * gcc / g++
    * make
    * ncurses-dev (for make menuconfig)



Perhaps some other package within TC provides dialog.h. I checked dialog utility but it isn't it.

any hints?
Agryppa

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10965
Re: Is the ncurses-dev inclomplete?
« Reply #1 on: September 19, 2010, 09:56:38 AM »
dialog.h is not a part of ncurses, it is a part of the kernel build system. It should be shipped with coreboot, like it is shipped with other projects using it (kernel, busybox, uclibc...)
The only barriers that can stop you are the ones you create yourself.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Is the ncurses-dev inclomplete?
« Reply #2 on: September 19, 2010, 10:13:11 AM »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline agrypa1

  • Newbie
  • *
  • Posts: 6
Re: Is the ncurses-dev inclomplete?
« Reply #3 on: September 19, 2010, 10:45:14 AM »
dialog.h is not a part of ncurses, it is a part of the kernel build system. It should be shipped with coreboot, like it is shipped with other projects using it (kernel, busybox, uclibc...)

Sorry for may mistake. The actual error appears as so:

In file included from /home/tc/coreboot/util/kconfig/mconf.c:23:
/home/tc/coreboot/util/kconfig/lxdialog/dialog.h:38:20: error: curses.h: No such file or directory
In file included from /home/tc/coreboot/util/kconfig/mconf.c:23:
/home/tc/coreboot/util/kconfig/lxdialog/dialog.h:103: error: expected specifier-qualifier-list before 'chtype'
/home/tc/coreboot/util/kconfig/lxdialog/dialog.h:193: error: expected ')' before '*' token
/home/tc/coreboot/util/kconfig/lxdialog/dialog.h:199: error: expected ')' before '*' token
/home/tc/coreboot/util/kconfig/lxdialog/dialog.h:201: error: expected ')' before '*' token
/home/tc/coreboot/util/kconfig/lxdialog/dialog.h:202: error: expected ')' before '*' token
/home/tc/coreboot/util/kconfig/lxdialog/dialog.h:203: error: expected ')' before '*' token
/home/tc/coreboot/util/kconfig/lxdialog/dialog.h:204: error: expected ')' before '*' token
/home/tc/coreboot/util/kconfig/lxdialog/dialog.h:206: error: expected ')' before '*' token
/home/tc/coreboot/util/kconfig/mconf.c: In function 'conf':
/home/tc/coreboot/util/kconfig/mconf.c:616: error: 'KEY_MAX' undeclared (first use in this function)
/home/tc/coreboot/util/kconfig/mconf.c:616: error: (Each undeclared identifier is reported only once
/home/tc/coreboot/util/kconfig/mconf.c:616: error: for each function it appears in.)
/home/tc/coreboot/util/kconfig/mconf.c: In function 'conf_choice':
/home/tc/coreboot/util/kconfig/mconf.c:767: error: 'KEY_MAX' undeclared (first use in this function)
/home/tc/coreboot/util/kconfig/mconf.c: In function 'main':
/home/tc/coreboot/util/kconfig/mconf.c:886: error: 'stdscr' undeclared (first use in this function)
make: *** [build/util/kconfig/mconf.o] Error 1

What gives?


ncurses and ncurses-dev are listed as already installed with tce-load -i.

Agryppa

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10965
Re: Is the ncurses-dev inclomplete?
« Reply #4 on: September 19, 2010, 11:01:27 AM »
That again..

Try this as a workaround:

cd /usr/local/include
sudo mv ncurses/* .
The only barriers that can stop you are the ones you create yourself.