Compile my sub-agent erros
"Alexander King" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hello everybody and Dave: My project is running its key step at this time.^_^,my snmp sub-system has compiled several times with the whole system(X86 64bits,Linux kernel 2.6.30).I got a lot errors somtthing like this: uit.h:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘handle_uitProductName’ uit.h:119: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘nicSDscptATable_get_first_data_point’ uit.c:71: error: expected expression before ‘]’ token uit.c:72: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sysSN_oid’ uit.c:336: error: ‘handle_ctrlBInterTime’ undeclared (first use in this function) uit.c:2579: error: ‘netsnmp_iterator_info’ undeclared (first use in this function) I tested the the scalars,tables,traps prototype in my machine,I got the generated code,and compiled it,and it work perfectly,in the early work,I put the code files in /net-snmp-5.4.2.1/agent/mibgroup/ directory,and mapping the MIB data myself,use ./configure --with-mib-modules="uit" compiled the package. Now,we have two threads,one sesinfo(BMC,Storage devices,System devices magage information acquisition ),one snmp,the two threads use socket synchronize data.My snmp sub-system use the data from sesinfo thread give me. My team leader want to compile snmp sub-system with their package together,so I creat snmp directory,put the uit.c,uit.h,and the whole net-snmp-5.4.2.1 file in the same directory,the the include file like this: #include "./net-snmp-5.4.2.1/include/net-snmp/net-snmp-config.h" #include "./net-snmp-5.4.2.1/include/net-snmp/net-snmp-includes.h" #include "./net-snmp-5.4.2.1/include/net-snmp/agent/net-snmp-agent-includes.h" #include "uit.h" I really think the errors were caused by wrong file contains relationship,am I right?if so,how can I fix it?or angthing else wrong? Alex ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users