移植SNMP時 make 出錯(system.lo) - Linux

Table of Contents

※ [本文轉錄自 LinuxDev 看板 #1DjcRVs- ]

作者: 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 這個檔案

有各位大大可以幫忙解決嗎?

感謝唷

--

All Comments