I’d guess you don’t have the
curses (or maybe ncurses) libraries installed. Under RedHat EL4 this would be
ncurses-5.4-13 and ncurses-devel-5.4-13.
CC
From: Harry Lee
[mailto:harrylee2807@xxxxxxxxx]
Sent: Thursday, 12 January 2006
4:13 AM
To: xen-users@xxxxxxxxxxxxxxxxxxx;
xen-users-request@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Problem with
xentop.c when compiling xen-unstable
Hi, I have a problem when compiling current xen-unstable tree,
everything is fine till this:
gcc -Wdeclaration-after-statement -m32 -march=i686 -DGCC_PRINTF
-Wall -Werror -I../../../tools/xenstat/libxenstat/src -c -o xentop.o xentop.c
xentop.c:21:20: error: curses.h: No such file or directory
cc1: warnings being treated as errors
xentop.c: In function 'cleanup':
xentop.c:198: warning: implicit declaration of function 'isendwin'
xentop.c:199: warning: implicit declaration of function 'endwin'
xentop.c: In function 'current_row':
xentop.c:221: warning: implicit declaration of function 'getyx'
xentop.c:221: error: 'stdscr' undeclared (first use in this function)
xentop.c:221: error: (Each undeclared identifier is reported only once
xentop.c:221: error: for each function it appears in.)
xentop.c: In function 'lines':
xentop.c:229: warning: implicit declaration of function 'getmaxyx'
xentop.c:229: error: 'stdscr' undeclared (first use in this function)
xentop.c: In function 'print':
xentop.c:237: error: 'va_list' undeclared (first use in this function)
xentop.c:237: error: syntax error before 'args'
xentop.c:240: warning: implicit declaration of function 'va_start'
xentop.c:240: error: 'args' undeclared (first use in this function)
xentop.c:241: warning: implicit declaration of function 'vw_printw'
xentop.c:241: error: 'stdscr' undeclared (first use in this function)
xentop.c:242: warning: implicit declaration of function 'va_end'
xentop.c: In function 'attr_addstr':
xentop.c:249: warning: implicit declaration of function 'attron'
xentop.c:250: warning: implicit declaration of function 'addstr'
xentop.c:251: warning: implicit declaration of function 'attroff'
xentop.c: In function 'handle_key':
xentop.c:291: error: 'KEY_DOWN' undeclared (first use in this function)
xentop.c:294: error: 'KEY_UP' undeclared (first use in this function)
xentop.c:314: error: 'KEY_BACKSPACE' undeclared (first use in this function)
xentop.c: In function 'compare_net_tx':
xentop.c:527: error: 'FALSE' undeclared (first use in this function)
xentop.c: In function 'print_net_tx':
xentop.c:534: error: 'FALSE' undeclared (first use in this function)
xentop.c: In function 'compare_net_rx':
xentop.c:541: error: 'TRUE' undeclared (first use in this function)
xentop.c: In function 'print_net_rx':
xentop.c:548: error: 'TRUE' undeclared (first use in this function)
xentop.c: In function 'do_header':
xentop.c:643: error: 'A_REVERSE' undeclared (first use in this function)
xentop.c:649: error: 'A_BOLD' undeclared (first use in this function)
xentop.c: In function 'do_bottom_line':
xentop.c:661: warning: implicit declaration of function 'move'
xentop.c:664: warning: implicit declaration of function 'printw'
xentop.c:666: warning: implicit declaration of function 'addch'
xentop.c:666: error: 'A_REVERSE' undeclared (first use in this function)
xentop.c:670: warning: implicit declaration of function 'COLOR_PAIR'
xentop.c: In function 'do_domain':
xentop.c:698: error: 'A_BOLD' undeclared (first use in this function)
xentop.c: In function 'main':
xentop.c:812: error: 'ERR' undeclared (first use in this function)
xentop.c:859: warning: implicit declaration of function 'initscr'
xentop.c:860: warning: implicit declaration of function 'start_color'
xentop.c:861: warning: implicit declaration of function 'cbreak'
xentop.c:862: warning: implicit declaration of function 'noecho'
xentop.c:863: warning: implicit declaration of function 'nonl'
xentop.c:864: warning: implicit declaration of function 'keypad'
xentop.c:864: error: 'stdscr' undeclared (first use in this function)
xentop.c:864: error: 'TRUE' undeclared (first use in this function)
xentop.c:865: warning: implicit declaration of function 'halfdelay'
xentop.c:866: warning: implicit declaration of function 'use_default_colors'
xentop.c:867: warning: implicit declaration of function 'init_pair'
xentop.c:867: error: 'COLOR_YELLOW' undeclared (first use in this function)
xentop.c:872: warning: implicit declaration of function 'clear'
xentop.c:875: warning: implicit declaration of function 'refresh'
xentop.c:877: warning: implicit declaration of function 'getch'
make[4]: *** [xentop.o] Error 1
make[4]: Leaving directory `/root/Desktop/xen-unstable.hg/tools/xenstat/xentop'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/root/Desktop/xen-unstable.hg/tools/xenstat'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/root/Desktop/xen-unstable.hg/tools'
make[1]: *** [install-tools] Error 2
make[1]: Leaving directory `/root/Desktop/xen-unstable.hg'
make: *** [world] Error 2
I can still build the xen kernels despite this, but all the tools do not work
properly. Any suggestion would be appreciated.
Harry