Armadilloフォーラム

Atmark-dist (Armadillo-210.Base) ビルドエラー

lockandfire

2014年12月3日 2時05分

いつもお世話になります。ウ ミンです。

softwareマニュアルの手順に沿ってatmark-distのビルドを試しました。手元のArmadillo-210のDVDの中のversion 20121211でビルドが順調したが、同じ手順で http://download.atmark-techno.com/dist/ でダウンロードした新しいもの(ver 20131018 , ver 20141128など)をビルドする時、エラーが出ています。

make config 選択したものは:

Vendor : AtmarkTechno
Target: Armadillo-210.Base
Cross-dev: default
Libc Versoin: none
Default all setting : Y

makeをするとエラーが出た。

In file included from include/libiptc/libiptc.h:7,
                 from include/iptables.h:5,
                 from iptables.c:41:
include/linux/netfilter_ipv4/ip_tables.h:150: error: ‘NF_INET_NUMHOOKS’ undeclared here (not in a function)
iptables.c: In function ‘print_firewall’:
iptables.c:1506: warning: implicit declaration of function ‘XT_MATCH_ITERATE’
iptables.c:1506: error: expected expression before ‘struct’
make[2]: *** [iptables.o] Error 1

原因は、ip_tables.hの変数NF_INET_NUMHOOKSは未宣言です。

grep "NF_INET_NUMHOOKS" *
ip_tables.h:    unsigned int hook_entry[NF_INET_NUMHOOKS];
ip_tables.h:    unsigned int underflow[NF_INET_NUMHOOKS];
ip_tables.h:    unsigned int hook_entry[NF_INET_NUMHOOKS];
ip_tables.h:    unsigned int underflow[NF_INET_NUMHOOKS];

これエラーの解決方法を教えてください。

では、よろしくお願いいたします。

コメント

y.nakamura

2014年12月5日 23時58分

中村です。

> softwareマニュアルの手順に沿ってatmark-distのビルドを試しました。手元のArmadillo-210のDVDの中のversion 20121211でビルドが順調したが、同じ手順で http://download.atmark-techno.com/dist/ でダウンロードした新しいもの(ver 20131018 , ver 20141128など)をビルドする時、エラーが出ています。

http://download.atmark-techno.com/dist/ には
Armadilloの全てのシリーズのatmark-distが
全部おいてあるようですが、シリーズによって
使えるバージョンの上限があります。
新しいバージョンのものは古い200などでは
たしか使えなかった(非対応だった)と思います。

210でしたら、
http://download.atmark-techno.com/armadillo-210/source/dist/
からgetするべきのようです。
このフォルダの最新は atmark-dist-20120222.tar.gz で、
210の商品紹介のページ
http://armadillo.atmark-techno.com/armadillo-210
のダウンロード
http://armadillo.atmark-techno.com/armadillo-210/downloads
の[製品ソフトウェア]->[ソースファイル]->[ユーザーランド (Atmark Dist)]
はv20120222になっていて、上に書いた atmark-dist-20120222.tar.gz を
さしています。

「Armadillo-210のDVDの中のversion 20121211」とのことですが、
このバージョンのdist、全シリーズまとめておいてある
http://download.atmark-techno.com/dist/
に見当たらないですねぇ・・・
400シリーズでも、DVDにあるのにダウンロードサイトには存在しない
バージョンがあったような・・・(あやふやな記憶ですが)

210用の更新履歴
http://download.atmark-techno.com/armadillo-210/history.txt
をみると、最後の210対応の修正は
| --- 2012/02/24 ---
| ◎ 更新ファイル
| image/romfs-a210-base-1.12.img.gz
| image/romfs-a210-recover-1.12.img.gz
| sourace/dist/atmark-dist-20120222.tar.gz
となってます。

// ただし・・・この更新履歴ファイルは、最新かどうかは、
// あまりあてにならないようです。
// たとえばA420の
// http://download.atmark-techno.com/armadillo-420/history.txt
// を見ると、最後は
// --- 2012/08/03 ---
// なっていて、そのあとの履歴が追加されてません。
// 410や8x0には、history.txtファイルがないです。
// でも、200シリーズに限っては、あってるような気がします。

製品付属のDVDのイメージなのかな?よくわかりませんが、
ISOで置いてある
http://download.atmark-techno.com/armadillo-210/iso/
の最新は、a210_20110326.iso です。

--
なかむら