[Armadillo:04840] iputilsのmakeエラー

T.Kawabata email@hidden
2009年 12月 21日 (月) 14:07:50 JST


いつもお世話になっております
かわばたと申します。

訳あって、Busyboxではない、iputilsのping/ping6をビルドしたいのですが、
以下のようなエラーが出ます。
__u32、__u16、__u8のような基本的な定義ができてないようなのですが、
どのように対処すればよろしいでしょうか?
よろしくお願いします。

(1)menuconfigの設定
・BusyBox無効化
[ ]ping、[ ]ping6
・Network Applicaiton有効化
[*]iputils apps、[*]ping、[*]ping6

(2)makeでエラー
> make[2]: ディレクトリ `/home/atmark/atmark-dist-20090318/user/iputils' に入ります
> arm-linux-gcc  -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g
-I/home/atmark/atmark-dist-20090318/include -I../include  -DSOL_IPV6=41
-DSOL_ICMPV6=58   -c -o ping.o ping.c
> In file included from ping_common.h:22,
>                  from ping.c:61:
> /home/atmark/atmark-dist-20090318/include/linux/errqueue.h:6: error: expected
specifier-qualifier-list before ‘__u32’
> In file included from ping.c:61:
> ping_common.h:112: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘acked’
> ping_common.h: In function ‘in_flight’:
> ping_common.h:163: error: ‘__u16’ undeclared (first use in this function)
> ping_common.h:163: error: (Each undeclared identifier is reported only once
> ping_common.h:163: error: for each function it appears in.)
> ping_common.h:163: error: expected ‘;’ before ‘diff’
> ping_common.h:164: error: ‘diff’ undeclared (first use in this function)
> ping_common.h: At top level:
> ping_common.h:167: error: expected ‘)’ before ‘seq’
> ping_common.h: In function ‘advance_ntransmitted’:
> ping_common.h:183: error: ‘__u16’ undeclared (first use in this function)
> ping_common.h:183: error: expected ‘)’ before ‘ntransmitted’
> ping_common.h:184: error: ‘acked’ undeclared (first use in this function)
> ping_common.h:184: error: expected ‘;’ before ‘ntransmitted’
> ping_common.h: At top level:
> ping_common.h:196: error: expected declaration specifiers or ‘...’ before ‘__u8’
> ping_common.h:200: error: expected ‘)’ before ‘*’ token
> ping.c:75: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘route’
> ping.c:88: warning: parameter names (without types) in function declaration
> ping.c:93: error: expected ‘)’ before ‘type’
> ping.c: In function ‘main’:
> ping.c:172: error: ‘__u8’ undeclared (first use in this function)
> ping.c:172: error: ‘ptr’ undeclared (first use in this function)
> ping.c:173: error: expected expression before ‘)’ token
> ping.c:246: error: ‘route’ undeclared (first use in this function)
> ping.c:310: warning: pointer targets in passing argument 3 of ‘getsockname’
differ in signedness
> ping.c:369: error: storage size of ‘filt’ isn’t known
・・・
以下省略



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