[Armadillo:03330] net-snmpのビルドについて
山本 慎二郎
email@hidden
2008年 8月 27日 (水) 15:08:26 JST
いつもお世話になっております。
山本@北都システムです。
現在、Armadillo-500にてnet-snmpを使用しようとしているのですが、
以下のように設定を変更するとsnmpdのビルドで
コンパイルエラーになってしまいます。
■環境(クロスコンパイル環境)
・ATDE2 v20071018
・atmark-dist-20080617
・linux-2.6.18-at8
■変更内容
atmark-dist-20080617/user/net-snmp/default.configure
L45:以下をコメントアウト
set_option "--enable-mini-agent"
※エージェントの使用が最小限使用設定になっているのを解除
■ビルド設定
「Userland Configuration」の「Network Applications」で
以下のように設定
[*] net-snmp
[*] snmpd
[*] snmptrap
■エラー内容
<中略>
arm-linux-gcc -I../../include -I../../include -I. -I../.. -I. -I./../.. -I./../../snmplib -I./.. -I.. -I/home/atmark/atmark-dist-20080617 -I/home/atmark/atmark-dist-20080617/linux-2.6.x/include -O2 -I/usr/arm-linux/include -I/usr/lib/gcc/arm-linux-gnu/4.1.2//include -Dlinux -D__linux__ -Dunix -DEMBED -Wall -fno-common -I/home/atmark/atmark-dist-20080617 -Dlinux -c mibII/at.c -fPIC -DPIC -o mibII/.libs/at.lo
In file included from /home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/netdevice.h:28,
from /home/atmark/atmark-dist-20080617/linux-2.6.x/include/net/dst.h:11,
from /home/atmark/atmark-dist-20080617/linux-2.6.x/include/net/route.h:27,
from mibII/at.c:74:
/home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/if.h:26:1: warning: "IFNAMSIZ" redefined
In file included from mibII/at.c:42:
/usr/arm-linux-gnu/include/net/if.h:128:1: warning: this is the location of the previous definition
In file included from /home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/netdevice.h:28,
from /home/atmark/atmark-dist-20080617/linux-2.6.x/include/net/dst.h:11,
from /home/atmark/atmark-dist-20080617/linux-2.6.x/include/net/route.h:27,
from mibII/at.c:74:
/home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/if.h:30:1: warning: "IFF_UP" redefined
<中略>
/home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/if.h:47:1: warning: "IFF_AUTOMEDIA" redefined
In file included from mibII/at.c:42:
/usr/arm-linux-gnu/include/net/if.h:79:1: warning: this is the location of the previous definition
In file included from /home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/netdevice.h:28,
from /home/atmark/atmark-dist-20080617/linux-2.6.x/include/net/dst.h:11,
from /home/atmark/atmark-dist-20080617/linux-2.6.x/include/net/route.h:27,
from mibII/at.c:74:
/home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/if.h:118: error: redefinition of 'struct ifmap'
/home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/if.h:154: error: redefinition of 'struct ifreq'
/home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/if.h:204: error: redefinition of 'struct ifconf'
In file included from /home/atmark/atmark-dist-20080617/linux-2.6.x/include/net/dst.h:11,
from /home/atmark/atmark-dist-20080617/linux-2.6.x/include/net/route.h:27,
from mibII/at.c:74:
/home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/netdevice.h:74:1: warning: "MAX_ADDR_LEN" redefined
In file included from /usr/arm-linux-gnu/include/netinet/if_ether.h:62,
from mibII/at.c:52:
/usr/arm-linux-gnu/include/net/if_arp.h:34:1: warning: this is the location of the previous definition
In file included from /home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/jiffies.h:4,
from /home/atmark/atmark-dist-20080617/linux-2.6.x/include/net/dst.h:14,
from /home/atmark/atmark-dist-20080617/linux-2.6.x/include/net/route.h:27,
from mibII/at.c:74:
/home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/calc64.h: In function 'do_div_llr':
/home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/calc64.h:23: error: 'u64' undeclared (first use in this function)
/home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/calc64.h:23: error: (Each undeclared identifier is reported only once
/home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/calc64.h:23: error: for each function it appears in.)
/home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/calc64.h:23: error: expected ';' before 'result'
/home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/calc64.h:25: error: 'result' undeclared (first use in this function)
/home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/calc64.h:25: error: expected string literal before '__asmeq'
/home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/calc64.h:25: warning: unused variable '__n'
/home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/calc64.h:25: warning: unused variable '__base'
/home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/calc64.h: In function 'div_long_long_rem_signed':
/home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/calc64.h:40: warning: implicit declaration of function 'unlikely'
In file included from /home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/jiffies.h:7,
from /home/atmark/atmark-dist-20080617/linux-2.6.x/include/net/dst.h:14,
from /home/atmark/atmark-dist-20080617/linux-2.6.x/include/net/route.h:27,
from mibII/at.c:74:
/home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/time.h: At top level:
/home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/time.h:12: error: redefinition of 'struct timespec'
/home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/time.h:18: error: redefinition of 'struct timeval'
/home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/time.h:23: error: redefinition of 'struct timezone'
In file included from /home/atmark/atmark-dist-20080617/linux-2.6.x/include/linux/jiffies.h:7,
from /home/atmark/atmark-dist-20080617/linux-2.6.x/include/net/dst.h:14,
from /home/atmark/atmark-dist-20080617/linux-2.6.x/include/net/route.h:27,
from mibII/at.c:74:
<以下エラー続きのため省略>
どうやら、クロスコンパイル用のヘッダとarmadilloのカーネルヘッダを
多重インクルードしてしまい、コンパイルエラーとなっているように
みえるのですが、何か回避手段はありますでしょうか?
よろしくお願い致します。
armadillo メーリングリストの案内