[Armadillo:07271] Re: net-snmp クロスコンパイル方法

Honda Seijiro email@hidden
2011年 5月 25日 (水) 10:32:44 JST


本田です

自己解決致しました。

net-snmpディレクトリ下にTMPディレクトリを作成し、TMPディレクトリ上から
「../configure クロスコンパイル用オプ ション」を実行させると、クロスコ
ンパイラを認識してくれました。

なぜ、net-snmpディレクトリ下ではエラーになるのか、原因は分かっていませ
ん。make cleanは実行していたんですが、それだけでは消えないキャッシュ領域
があったのかもしれません。一番最初にコンフィグを実行した際は、クロスコン
パイ ルオプションを指定していなかったので。

snmpdがArmadillo-420で動作し、PC上のマネージャアプリ(TWSNMP)から標準MIB
をポーリングすることができました。 ひとまず、上記方法で対応していこうと
思います。

以上です。
--
Honda Seijiro wrote :
> 本田と申します。
>
> Armadillo-420に「snmpd」と「AgentX」を実装するため、「armark-dist」にあ
> る「net-snmp」を使いた いと思っております。
>
> しかし、「net-snmp」をコンフィグレーションした際に以下のようなメッセージ
> が出力され、コンフィグレーションができませんでした。オプ ションでクロス
> コンパイラを指定しているのですが、なぜこのようなメッセージが出力されるの
> かが不明です。なお、 「default.configure」を実行しても同様の現象となりま
> した。
>
> クロスコンパイルのために必要な設定等、ご存知の方がいましたらご教授願います。
>
> [実行コマンド]
> /atmark-dist/user/net-snmp$ ./configure
> --with-ar=/usr/bin/arm-linux-gnueabi-ar
> --with-cc=/usr/bin/arm-linux-gnueabi-gcc --build=i686-pc-linux-gnu
> --host=arm-linux --target=arm-linux --with-endianness=little
>
> [出力結果]
> loading cache ./config.cache
> using default enterprise.net-snmp
> using default enterprise sysOID NET-SNMP-MIB::netSnmpAgentOIDs...
> using default notifications NET-SNMP-MIB::netSnmpNotifications
> checking if I need to feed myself to ksh... no
> checking for gcc... (cached) gcc
> checking whether the C compiler (gcc ) works... yes
> checking whether the C compiler (gcc ) is a cross-compiler... no
> checking whether we are using GNU C... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking how to run the C preprocessor... (cached) gcc -E
> :
> :
> :
> checking whether time.h and sys/time.h may both be included... (cached) yes
> checking for socklen_t... yes
> checking for in_addr_t... yes
> checking for correct flags to ps... (cached)
> configure: error: Endianness has been specified, but you are not
> cross-compiling.
>
> [atmark-distのバージョン]
> 20101220
>
> [net-snmpのバージョン]
> 5.0.9
>
> 以上、よろしくお願いいたします。
> --
> _______________________________________________
> armadillo mailing list
> email@hidden
> http://lists.atmark-techno.com/cgi-bin/mailman/listinfo/armadillo
>
>



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