作者endlie (end)
看板LinuxDev
标题[问题] 移植SNMP时 make 出错(system.lo)
时间Tue Apr 26 14:31:56 2011
大家好
小弟 移植SNMP 到 270 板子上
环境
VM FC4
gcc-4.0.0.8
glibc-2.3.5-10
配置的部分 我是参考以下网站
http://blogold.chinaunix.net/u1/39383/showart_370286.html
配置时都正常 没出现错误
但是在MAKE时
就会出错
system.c: In function `get_myaddr':
system.c:575: error: storage size of `ifc' isn't known
system.c:591: error: invalid application of `sizeof' to an incomplete type
system.c:596: error: invalid application of `sizeof' to an incomplete type
system.c:630: error: increment of pointer to unknown structure
system.c:630: error: arithmetic on pointer to an incomplete type
system.c:633: error: dereferencing pointer to incomplete type
system.c:636: error: dereferencing pointer to incomplete type
system.c:641: error: dereferencing pointer to incomplete type
system.c:641: error: `IFF_UP' undeclared (first use in this function)
system.c:641: error: (Each undeclared identifier is reported only once
system.c:641: error: for each function it appears in.)
system.c:645: error: dereferencing pointer to incomplete type
system.c:656: error: dereferencing pointer to incomplete type
make[1]: *** [system.lo] Error 1
make[1]: Leaving directory `/net-snmp-5.1.2/snmplib'
make: *** [subdirs] Error 1
我认为是system.c 这档案的问题
再来就是 我最囧的 我找不到system.c 这个档案
有各位大大可以帮忙解决吗?
感谢唷
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 122.116.191.52