[Armadillo:03881] Re: Armadillo-500 の top コマンド

西 智哉 email@hidden
2009年 1月 7日 (水) 13:24:53 JST


utq_nishi です。

make menuconfig の設定を変更して make すると
エラーメッセージが出ます。途中をコピー&ペースト
します。make menuconfig の設定は御指示のものだけで
十分でしょうか?

> arm-linux-gcc  -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -O2 -s         -c -o top.o top.c
> top.c:28:20: error: curses.h: そのようなファイルやディレクトリはありません
> top.c:38:18: error: term.h: そのようなファイルやディレクトリはありません
> top.c:72: error: ‘COLOR_RED’ undeclared here (not in a function)
> top.c:72: error: ‘COLOR_YELLOW’ undeclared here (not in a function)
> top.c:72: error: ‘COLOR_CYAN’ undeclared here (not in a function)
> top.c:72: error: ‘COLOR_WHITE’ undeclared here (not in a function)
> top.c:72: error: ‘COLOR_MAGENTA’ undeclared here (not in a function)
> top.c:72: error: ‘COLOR_BLUE’ undeclared here (not in a function)
> top.c:72: error: ‘COLOR_GREEN’ undeclared here (not in a function)
> top.c:72: warning: missing initializer
> top.c:72: warning: (near initialization for ‘Rc.win’)
> top.c: In function ‘tg2’:
> top.c:316: warning: implicit declaration of function ‘tgoto’
> top.c:316: error: ‘cursor_address’ undeclared (first use in this function)
> top.c:316: error: (Each undeclared identifier is reported only once
> top.c:316: error: for each function it appears in.)
> top.c:316: warning: pointer/integer type mismatch in conditional expression
> top.c: In function ‘bye_bye’:
> top.c:328: warning: implicit declaration of function ‘putp’
> top.c: In function ‘capsmk’:
> top.c:503: error: ‘clr_eol’ undeclared (first use in this function)
> top.c:504: error: ‘clr_eos’ undeclared (first use in this function)
> top.c:505: error: ‘clear_screen’ undeclared (first use in this function)
> top.c:507: error: ‘eat_newline_glitch’ undeclared (first use in this function)
> top.c:508: error: ‘exit_am_mode’ undeclared (first use in this function)
> top.c:509: error: ‘enter_am_mode’ undeclared (first use in this function)
> top.c:513: error: ‘auto_right_margin’ undeclared (first use in this function)
> top.c:519: error: ‘cursor_visible’ undeclared (first use in this function)
> top.c:520: error: ‘cursor_normal’ undeclared (first use in this function)
> top.c:521: error: ‘cursor_home’ undeclared (first use in this function)
> top.c:522: error: ‘exit_attribute_mode’ undeclared (first use in this function)
> top.c:523: error: ‘enter_reverse_mode’ undeclared (first use in this function)
> top.c:525: error: ‘orig_pair’ undeclared (first use in this function)
> top.c:526: error: ‘cursor_address’ undeclared (first use in this function)
> top.c:532: error: ‘enter_bold_mode’ undeclared (first use in this function)
> top.c:533: error: ‘max_colors’ undeclared (first use in this function)
> top.c:534: warning: implicit declaration of function ‘tparm’
> top.c:534: error: ‘set_a_foreground’ undeclared (first use in this function)
> top.c:534: warning: passing argument 2 of ‘strcpy’ makes pointer from integer without a cast
> top.c:536: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
> top.c:536: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
> top.c:538: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
> top.c:538: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
> top.c:540: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
> top.c:540: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
> top.c:542: warning: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
> top.c:542: warning: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
> top.c: In function ‘show_special’:
> top.c:682: warning: assignment discards qualifiers from pointer target type
> top.c: In function ‘good_uid’:
> top.c:845: warning: comparison between signed and unsigned
> top.c:846: warning: comparison between signed and unsigned
> top.c:847: warning: comparison between signed and unsigned
> top.c:850: warning: comparison between signed and unsigned
> top.c: In function ‘prochlp’:
> top.c:1066: warning: passing argument 5 of ‘bsearch’ from incompatible pointer type
> top.c: In function ‘configs_read’:
> top.c:1714: warning: missing initializer
> top.c:1714: warning: (near initialization for ‘def_rcf.win’)
> top.c: In function ‘whack_terminal’:
> top.c:1928: warning: implicit declaration of function ‘setupterm’
> top.c: In function ‘wins_colors’:
> top.c:2251: error: ‘max_colors’ undeclared (first use in this function)
> top.c: In function ‘wins_resize’:
> top.c:2379: error: ‘columns’ undeclared (first use in this function)
> top.c:2380: error: ‘lines’ undeclared (first use in this function)
> top.c: In function ‘summary_show’:
> top.c:2950: warning: passing argument 5 of ‘select’ discards qualifiers from pointer target type
> top.c: In function ‘task_show’:
> top.c:3170: warning: assignment discards qualifiers from pointer target type
> top.c: In function ‘window_show’:
> top.c:3196: warning: assignment discards qualifiers from pointer target type
> top.c: In function ‘main’:
> top.c:3370: warning: passing argument 5 of ‘select’ discards qualifiers from pointer target type
> top.c:3389: warning: passing argument 5 of ‘select’ discards qualifiers from pointer target type



On Wed, 07 Jan 2009 11:49:19 +0900
西 智哉 <email@hidden> wrote:

> Takenoshita-san
> 
> utq_nishi です。迅速な回答を頂きまして
> 有り難うございました。
> 
> busyboxのコマンドだからなんですね。
> 
> PC用のコンパイルは、別途、トライしてみます。
> 
> 
> On Wed, 07 Jan 2009 10:50:38 +0900
> Takenoshita Koyo <email@hidden> wrote:
> 
> > > Armadillo-500 で top コマンドを実行したときの表示について。
> > 
> > > Armadillo-500 の方が簡素な表記になってます。PCと同じように
> > > 表示させることはできますか?
> > 
> > Armadilloシリーズでは、基本的なコマンドはbusybox[*1][*2]
> > のものを使用するようにしています。
> > topもデフォルトでは、busyboxになっています。
> > 
> > PCと同じような「普通の」topコマンドを使う場合には、
> > ソースからコンパイルする必要があります。
> > 幸い、atmark-distにはtopを含むprocpsのソースコードも含まれています。
> > make menuconfigで、以下のように設定してください。
> > Userland Configuration
> >   Miscellaneous Applications  --->
> >     [*] top                        <- チェックを入れる
> >   BusyBox  --->
> >     [ ] top                        <- チェックを外す
> > 
> > *1: BUSYBOX
> > http://www.busybox.net/
> > 
> > *2: 組み込みLinuxで際立つ「BusyBox」の魅力
> > http://monoist.atmarkit.co.jp/fembedded/articles/busybox/busyboxa.html
> > 
> > -- 
> > Koyo Takenoshita
> > _______________________________________________
> > armadillo mailing list
> > email@hidden
> > http://lists.atmark-techno.com/cgi-bin/mailman/listinfo/armadillo
> 
> 
> _______________________________________________
> armadillo mailing list
> email@hidden
> http://lists.atmark-techno.com/cgi-bin/mailman/listinfo/armadillo





armadillo メーリングリストの案内