Xenのビルド2

# make dist > build_log.txt
__ __ _____ ___ _____ ___
\ \/ /___ _ __ |___ / / _ \ |___ / / _ \
\ // _ \ '_ \ |_ \| | | | |_ \ __| | | |
/ \ __/ | | | ___) | |_| | ___) |__| |_| |
/_/\_\___|_| |_| |____(_)___(_)____/ \___/

include/asm/byteorder.h:5:28: error: linux/compiler.h: そのようなファイルやディレクトリはありません
include/asm/byteorder.h:5:28: error: linux/compiler.h: そのようなファイルやディレクトリはありません
xentop.c:21:20: error: curses.h: そのようなファイルやディレクトリはありません
cc1: warnings being treated as errors
xentop.c: In function ‘cleanup’:
xentop.c:225: 警告: implicit declaration of function ‘isendwin’
xentop.c:226: 警告: implicit declaration of function ‘endwin’
xentop.c: In function ‘current_row’:
xentop.c:248: 警告: implicit declaration of function ‘getyx’
xentop.c:248: error: ‘stdscr’ undeclared (first use in this function)
xentop.c:248: error: (Each undeclared identifier is reported only once
xentop.c:248: error: for each function it appears in.)
xentop.c: In function ‘lines’:
xentop.c:256: 警告: implicit declaration of function ‘getmaxyx’
xentop.c:256: error: ‘stdscr’ undeclared (first use in this function)
xentop.c: In function ‘print’:
xentop.c:264: error: ‘va_list’ undeclared (first use in this function)
xentop.c:264: error: expected ‘;’ before ‘args’
xentop.c:268: 警告: implicit declaration of function ‘va_start’
xentop.c:268: error: ‘args’ undeclared (first use in this function)
xentop.c:269: 警告: implicit declaration of function ‘vw_printw’
xentop.c:269: error: ‘stdscr’ undeclared (first use in this function)
xentop.c:270: 警告: implicit declaration of function ‘va_end’
xentop.c: In function ‘attr_addstr’:
xentop.c:282: 警告: implicit declaration of function ‘attron’
xentop.c:283: 警告: implicit declaration of function ‘addstr’
xentop.c:284: 警告: implicit declaration of function ‘attroff’
xentop.c: In function ‘handle_key’:
xentop.c:327: error: ‘KEY_DOWN’ undeclared (first use in this function)
xentop.c:330: error: ‘KEY_UP’ undeclared (first use in this function)
xentop.c:350: error: ‘KEY_BACKSPACE’ undeclared (first use in this function)
xentop.c: In function ‘compare_net_tx’:
xentop.c:563: error: ‘FALSE’ undeclared (first use in this function)
xentop.c: In function ‘print_net_tx’:
xentop.c:570: error: ‘FALSE’ undeclared (first use in this function)
xentop.c: In function ‘compare_net_rx’:
xentop.c:577: error: ‘TRUE’ undeclared (first use in this function)
xentop.c: In function ‘print_net_rx’:
xentop.c:584: error: ‘TRUE’ undeclared (first use in this function)
xentop.c: In function ‘do_header’:
xentop.c:769: error: ‘A_REVERSE’ undeclared (first use in this function)
xentop.c:775: error: ‘A_BOLD’ undeclared (first use in this function)
xentop.c: In function ‘do_bottom_line’:
xentop.c:787: 警告: implicit declaration of function ‘move’
xentop.c:790: 警告: implicit declaration of function ‘printw’
xentop.c:792: 警告: implicit declaration of function ‘addch’
xentop.c:792: error: ‘A_REVERSE’ undeclared (first use in this function)
xentop.c:796: 警告: implicit declaration of function ‘COLOR_PAIR’
xentop.c: In function ‘do_domain’:
xentop.c:831: error: ‘A_BOLD’ undeclared (first use in this function)
xentop.c: In function ‘main’:
xentop.c:970: error: ‘ERR’ undeclared (first use in this function)
xentop.c:1031: 警告: implicit declaration of function ‘initscr’
xentop.c:1032: 警告: implicit declaration of function ‘start_color’
xentop.c:1033: 警告: implicit declaration of function ‘cbreak’
xentop.c:1034: 警告: implicit declaration of function ‘noecho’
xentop.c:1035: 警告: implicit declaration of function ‘nonl’
xentop.c:1036: 警告: implicit declaration of function ‘keypad’
xentop.c:1036: error: ‘stdscr’ undeclared (first use in this function)
xentop.c:1036: error: ‘TRUE’ undeclared (first use in this function)
xentop.c:1037: 警告: implicit declaration of function ‘halfdelay’
xentop.c:1038: 警告: implicit declaration of function ‘use_default_colors’
xentop.c:1039: 警告: implicit declaration of function ‘init_pair’
xentop.c:1039: error: ‘COLOR_YELLOW’ undeclared (first use in this function)
xentop.c:1044: 警告: implicit declaration of function ‘clear’
xentop.c:1047: 警告: implicit declaration of function ‘refresh’
xentop.c:1051: 警告: implicit declaration of function ‘getch’
make[3]: *** [xentop] エラー 1
make[2]: *** [install] エラー 2
make[1]: *** [install] エラー 2
make: *** [install-tools] エラー 2


うえうえwwww。カーネルソースでも持ってこないといかんのかな。


#追記
ビルド時に持ってくるカーネル内のヘッダと、ビルド環境の/usr/include/以下のヘッダが違っているせいみたい。


んー。持ってくるカーネルのバージョンを一致するように指定してやればいいのかな。


それか、gccに持ってきてるやつのヘッダ群を指定するか。
#Makefile見るの大変。。