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

By Rosalind
at 2011-04-26T14:33
at 2011-04-26T14:33
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 這個檔案
有各位大大可以幫忙解決嗎?
感謝唷
--
作者: 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 這個檔案
有各位大大可以幫忙解決嗎?
感謝唷
--
Tags:
Linux
All Comments
Related Posts
SSH登入訊息

By Elvira
at 2011-04-25T23:21
at 2011-04-25T23:21
如何移除雙系統之一

By Thomas
at 2011-04-25T22:44
at 2011-04-25T22:44
BetaRadio v1.2 釋出

By Ethan
at 2011-04-25T22:25
at 2011-04-25T22:25
ibus傳統注音

By Belly
at 2011-04-25T22:16
at 2011-04-25T22:16
網路磁碟機路徑

By Sarah
at 2011-04-25T21:22
at 2011-04-25T21:22