On 04/26/2010 11:11 AM, MOHIT SHARMA wrote:
> Hi . i was trying out manual installation of powertop and i found these
> error's . Can somebody help me in this matter.
>
>
>
> tro...@trojan-desktop:~/
> powertop-1.9$ make
> cc -Os -g -Wall  -W -Wshadow   -c -o display.o display.c
> display.c:32:21: error: ncurses.h: No such file or directory
> display.c:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
> before ‘*’ token
> display.c:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
> before ‘*’ token
> display.c:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
> before ‘*’ token
> display.c:41: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
> before ‘*’ token
> display.c:42: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
> before ‘*’ token
> display.c:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
> before ‘*’ token
> display.c:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
> before ‘*’ token
> display.c: In function ‘cleanup_curses’:
> display.c:50: warning: implicit declaration of function ‘endwin’
> display.c: In function ‘zap_windows’:
> display.c:55: error: ‘title_bar_window’ undeclared (first use in this
> function)
> display.c:55: error: (Each undeclared identifier is reported only once
> display.c:55: error: for each function it appears in.)
> display.c:56: warning: implicit declaration of function ‘delwin’
> display.c:59: error: ‘cstate_window’ undeclared (first use in this function)
> display.c:63: error: ‘wakeup_window’ undeclared (first use in this function)
> display.c:67: error: ‘acpi_power_window’ undeclared (first use in this
> function)
> display.c:71: error: ‘timerstat_window’ undeclared (first use in this
> function)
> display.c:75: error: ‘suggestion_window’ undeclared (first use in this
> function)
> display.c:79: error: ‘status_bar_window’ undeclared (first use in this
> function)
> display.c: In function ‘setup_windows’:
> display.c:93: warning: implicit declaration of function ‘getmaxyx’
> display.c:93: error: ‘stdscr’ undeclared (first use in this function)
> display.c:97: error: ‘title_bar_window’ undeclared (first use in this
> function)
> display.c:97: warning: implicit declaration of function ‘subwin’
> display.c:98: error: ‘cstate_window’ undeclared (first use in this function)
> display.c:99: error: ‘wakeup_window’ undeclared (first use in this function)
> display.c:100: error: ‘acpi_power_window’ undeclared (first use in this
> function)
> display.c:101: error: ‘timerstat_window’ undeclared (first use in this
> function)
> display.c:104: error: ‘suggestion_window’ undeclared (first use in this
> function)
> display.c:105: error: ‘status_bar_window’ undeclared (first use in this
> function)
> display.c:110: warning: implicit declaration of function ‘werase’
> display.c:111: warning: implicit declaration of function ‘refresh’
> display.c: In function ‘initialize_curses’:
> display.c:116: warning: implicit declaration of function ‘initscr’
> display.c:117: warning: implicit declaration of function ‘start_color’
> display.c:118: warning: implicit declaration of function ‘keypad’
> display.c:118: error: ‘stdscr’ undeclared (first use in this function)
> display.c:118: error: ‘TRUE’ undeclared (first use in this function)
> display.c:119: warning: implicit declaration of function ‘nonl’
> display.c:120: warning: implicit declaration of function ‘cbreak’
> display.c:121: warning: implicit declaration of function ‘noecho’
> display.c:122: warning: implicit declaration of function ‘curs_set’
> display.c:123: warning: implicit declaration of function
> ‘use_default_colors’
> display.c:125: warning: implicit declaration of function ‘init_pair’
> display.c:125: error: ‘COLOR_WHITE’ undeclared (first use in this function)
> display.c:125: error: ‘COLOR_BLACK’ undeclared (first use in this function)
> display.c:127: error: ‘COLOR_RED’ undeclared (first use in this function)
> display.c:129: error: ‘COLOR_YELLOW’ undeclared (first use in this function)
> display.c:130: error: ‘COLOR_GREEN’ undeclared (first use in this function)
> display.c: In function ‘show_title_bar’:
> display.c:140: warning: implicit declaration of function ‘wattrset’
> display.c:140: error: ‘title_bar_window’ undeclared (first use in this
> function)
> display.c:140: warning: implicit declaration of function ‘COLOR_PAIR’
> display.c:141: warning: implicit declaration of function ‘wbkgd’
> display.c:144: warning: implicit declaration of function ‘mvwprintw’
> display.c:146: warning: implicit declaration of function ‘wrefresh’
> display.c:148: error: ‘status_bar_window’ undeclared (first use in this
> function)
> display.c:154: warning: implicit declaration of function ‘wattron’
> display.c:154: error: ‘A_REVERSE’ undeclared (first use in this function)
> display.c:156: warning: implicit declaration of function ‘wattroff’
> display.c: In function ‘show_cstates’:
> display.c:165: error: ‘cstate_window’ undeclared (first use in this
> function)
> display.c:169: error: ‘A_BOLD’ undeclared (first use in this function)
> display.c: In function ‘show_acpi_power_line’:
> display.c:193: error: ‘acpi_power_window’ undeclared (first use in this
> function)
> display.c: In function ‘show_wakeups’:
> display.c:211: error: ‘wakeup_window’ undeclared (first use in this
> function)
> display.c:219: error: ‘A_BOLD’ undeclared (first use in this function)
> display.c: In function ‘show_timerstats’:
> display.c:227: error: ‘timerstat_window’ undeclared (first use in this
> function)
> display.c:235: error: ‘A_BOLD’ undeclared (first use in this function)
> display.c: In function ‘show_suggestion’:
> display.c:258: error: ‘suggestion_window’ undeclared (first use in this
> function)
> make: *** [display.o] Error 1
>
>
>
> _______________________________________________
> Power mailing list
> [email protected]
> http://www.bughost.org/mailman/listinfo/power


you need: libncurses-dev headers installed
display.c:32:21: error: ncurses.h: No such file or directory

Justin P. Mattock

_______________________________________________
Power mailing list
[email protected]
http://www.bughost.org/mailman/listinfo/power

Reply via email to