共2条 1/1
1
跳转至
页
How to integrate the snmp agent to VxWorks?(老站转)
![](http://m.amcfsurvey.com/uphotos//thumb/avatar.jpg)
cocoyang 工程师 来自: 发表总数:10 查看 短消息 电子邮件 -------------------------------------------------------------------------------- I move INCLUDE_SNMPD to INCLUDED FACILITIES section of configAll.h, when I rebuild the VxWorks,the error displays as follows: -------------------------------------------------------------------------------- partialImage.o(.text+0x220fc):fake: undefined reference to `snmpIoMain' partialImage.o(.text+0x221bc):fake: undefined reference to `Process_Rcvd_SNMP_Packet_Async ' partialImage.o(.text+0x22234):fake: undefined reference to `SNMP_Process_Finish' partialImage.o(.text+0x22254):fake: undefined reference to `snmpIoWrite' partialImage.o(.text+0x2225c):fake: undefined reference to `EBufferClean' partialImage.o(.text+0x22280):fake: undefined reference to `snmpIoClose' partialImage.o(.text+0x22318):fake: undefined reference to `SNMP_CoarseLock' partialImage.o(.text+0x2235c):fake: undefined reference to `envoy_init' partialImage.o(.text+0x22394):fake: undefined reference to `SNMP_CoarseLock' partialImage.o(.text+0x2240c):fake: undefined reference to `SNMP_View_Create' partialImage.o(.text+0x22440):fake: undefined reference to `SNMP_View_Install' partialImage.o(.text+0x2248c):fake: undefined reference to `SNMP_View_Set_Mask' partialImage.o(.text+0x224d4):fake: undefined reference to `SNMP_CoarseLock' partialImage.o(.text+0x224f4):fake: undefined reference to `SNMP_View_Next' partialImage.o(.text+0x22510):fake: undefined reference to `SNMP_View_Deinstall' partialImage.o(.text+0x22540):fake: undefined reference to `SNMP_View_Delete' partialImage.o(.text+0x2258c):fake: undefined reference to `SNMP_View_Lookup' partialImage.o(.text+0x225c0):fake: undefined reference to `SNMP_View_Deinstall' partialImage.o(.text+0x225f0):fake: undefined reference to `SNMP_View_Delete' partialImage.o(.text+0x22604):fake: undefined reference to `SNMP_CoarseLock' partialImage.o(.text+0x22664):fake: undefined reference to `Add_Node_From_Root' partialImage.o(.text+0x226b8):fake: undefined reference to `SNMP_CoarseLock' partialImage.o(.text+0x22708):fake: undefined reference to `Remove_Node_From_Root' partialImage.o(.text+0x22730):fake: undefined reference to `SNMP_CoarseLock' partialImage.o(.text+0x227d8):fake: undefined reference to `SNMP_Create_Trap' partialImage.o(.text+0x22840):fake: undefined reference to `SNMP_Create_Request2' partialImage.o(.text+0x228b0):fake: undefined reference to `SNMP_Encode_Packet' partialImage.o(.text+0x228dc):fake: undefined reference to `SNMP_Free' partialImage.o(.text+0x228e8):fake: undefined reference to `SNMP_Free' partialImage.o(.text+0x22920):fake: undefined reference to `snmpIoWrite' partialImage.o(.text+0x22938):fake: undefined reference to `EBufferClean' partialImage.o(.text+0x229e8):fake: undefined reference to `snmpIoTrapSend' partialImage.o(.text+0x22b18):fake: undefined reference to `nextproc_no_next' partialImage.o(.text+0x22b2c):fake: undefined reference to `nextproc_error' partialImage.o(.text+0x22b50):fake: undefined reference to `snmpdMemoryFree' partialImage.o(.text+0x22b70):fake: undefined reference to `oid_to_ip' partialImage.o(.text+0x22c84):fake: undefined reference to `snmpIoTrapSend' partialImage.o(.text+0x22cb4):fake: undefined reference to `snmpIoClose' partialImage.o(.text+0x60608):fake: undefined reference to `snmpdGroupByGetprocAndInstance ' partialImage.o(.text+0x60630):fake: undefined reference to `getproc_nosuchins' partialImage.o(.text+0x607bc):fake: undefined reference to `getproc_got_uint32' partialImage.o(.text+0x607d0):fake: undefined reference to `getproc_got_int32' partialImage.o(.text+0x607e4):fake: undefined reference to `getproc_error' partialImage.o(.text+0x60820):fake: undefined reference to `setproc_good' partialImage.o(.text+0x6085c):fake: undefined reference to `testproc_error' partialImage.o(.text+0x6087c):fake: undefined reference to `testproc_good' partialImage.o(.data+0xb2c):fake: undefined reference to `SNMP_Bind_Null' partialImage.o(.data+0xb30):fake: undefined reference to `SNMP_Bind_64_Unsigned_Integer' partialImage.o(.data+0xb34):fake: undefined reference to `SNMP_Bind_String' partialImage.o(.data+0xb38):fake: undefined reference to `SNMP_Bind_Object_ID' partialImage.o(.data+0xb3c):fake: undefined reference to `SNMP_Bind_IP_Address' partialImage.o(.data+0xb40):fake: undefined reference to `SNMP_Bind_Integer' partialImage.o(.data+0xb44):fake: undefined reference to `SNMP_Bind_Unsigned_Integer' make: *** [vxWorks] Error 0x1 ----------------------------------------------------------------------------- I don't know how to remove these errors,can you help me? Thank you! -------------------------------------------------------------------------------- 编辑 发表於:2002-01-14 - 09:36:22 IP: 202.119.*.* cliff 助理工程师 来自: 发表总数:6 查看 短消息 电子邮件 -------------------------------------------------------------------------------- 这些错误的原因是 vxworks 原来的 snmp 模块没有链接到库中, 可以手工将模块加入库 libPPC860gnuvx.a 中,(名字与你选择的 目标平台 (PPC860) 和编译器 (gnu)有关): 1.设置 tornado 环境: \Tornado\host\x86-win32\bin\torVars.bat 2.进入 \Tornado\target\src\snmpv1\agent 你可以打开 makefile 来看看 make clean CPU=PPC860 make CPU=PPC860 这样就都加到 libPPC860gnuvx.a 中了,另外可以手工加入: arppc crus \Tornado\target\lib\libPPC860gnuvx.a snmpdLib.o snmpIoLib.o \ snmpIcmp.o snmpIp.o snmpMib2.o snmpSnmp.o snmpSystem.o snmpTcp.o snmpUdp.o \ subagentLib.o (上面的命令是一行来的) 然后你再编译自己的文件就可以找到那些函数了 -------------------------------------------------------------------------------- 编辑 发表於:2002-01-14 - 17:57:22 IP: 202.104.*.* embedfree 高级工程师 来自: 发表总数:142 查看 短消息 电子邮件 -------------------------------------------------------------------------------- 在PROJECT的管理工具中, INCLUDE SNMP的组件难道系统不会自动来加入所有相关的 文件吗? 在TORNADO的使用过程中,自动配置工具不能完全完成所有我们需要的功能吗? 谢谢! -------------------------------- /***********************/ 宠辱不惊, 看庭前花开花落; 去留无意, 任天上云卷云舒 /***********************/ -------------------------------------------------------------------------------- 编辑 发表於:2002-01-15 - 08:59:27 IP: 211.99.*.* cliff 助理工程师 来自: 发表总数:6 查看 短消息 电子邮件 -------------------------------------------------------------------------------- libPPC860gnuvx.a 是在安装 Tornado 的时候编译的吧, 之后使用过程中加入的项目只是将 libPPC860gnuvx.a 链接 到你的项目中。 在 Project 的管理工具选择了 SNMP 组件,最直接的作用是 在你的Project 中打开了 SNMP 这个宏的开关,好像是 INCLUDE_SNMP之类的,同时 snmpd 任务也激活,于是你 就可以使用该组件了,至于组件本来的库文件,Tornado认为 你本来就已经配置好了。 像你这种情况,会不会是安装过程中出错了? -------------------------------------------------------------------------------- 编辑 发表於:2002-01-15 - 10:28:10 IP: 202.104.*.* cocoyang 工程师 来自: 发表总数:10 查看 短消息 电子邮件 -------------------------------------------------------------------------------- cliff, 您讲的1,2 步我都已经做过 但是当重新build vxWorks时就出现了我所讲的错误,我不知道为什么,难道是我的tornado 有问题? -------------------------------------------------------------------------------- 编辑 发表於:2002-01-15 - 14:06:32 IP: 202.119.*.* yuefc 工程师 来自: 发表总数:25 查看 短消息 电子邮件 -------------------------------------------------------------------------------- 你有可能没有安装SNMP组件,好像应该单买!
关键词: integrate agent VxWorks 老
![](http://m.amcfsurvey.com/uphotos//thumb/avatar.jpg)
vxWorks 中snmp agent 的开发 cocoyang 工程师 来自: 发表总数:10 查看 短消息 电子邮件 -------------------------------------------------------------------------------- 现在的MIB已经经过mib compiler,接下去我该如何修改Method routine 如何激活snmp agent . 请各位不吝赐教 谢谢! -------------------------------------------------------------------------------- 编辑 发表於:2002-01-09 - 09:18:22 IP: 202.119.*.* 小华 高级工程师 来自: 发表总数:102 查看 短消息 电子邮件 -------------------------------------------------------------------------------- Use "mibcomp" generate the .c files. Fill your function to the .c files. Make it! ________________________________________________ You can find this in detail in SNMP online manual __________________________________________________ -------------------------------------------------------------------------------- 编辑 发表於:2002-01-09 - 17:43:25 IP: 61.177.*.* cocoyang 工程师 来自: 发表总数:10 查看 短消息 电子邮件 -------------------------------------------------------------------------------- When I type the following line in command line cd tornado\target\src\snmpv1\agent> make The screen display "make is not a internal or external command ,nor a program" How can I to use make? Thanks a lot! -------------------------------------------------------------------------------- 编辑 发表於:2002-01-10 - 10:25:28 IP: 61.177.*.* amine 版主 来自: 发表总数:519 查看 短消息 电子邮件 -------------------------------------------------------------------------------- 可能你的执行环境变量path未设置.
共2条 1/1
1
跳转至
页
回复
有奖活动 | |
---|---|
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
【有奖活动】震撼来袭!这场直播将直击工程师的心灵! | |
“我想要一部加热台”活动,不花钱赢取开发好工具!活动开始了哦 | |
【有奖活动】伙伴们:您的“需求”解决了吗? | |
抽奖了,抽奖了,金升阳医疗电源 |
打赏帖 | |
---|---|
电解电容引发的问题被打赏50分 | |
【换取手持数字示波器】BeetleESP32C6+OLED被打赏40分 | |
【换取手持数字示波器】+ESP32C6与PWM(脉冲宽度调制)被打赏30分 | |
【换取手持数字示波器】+BeetleESP32C6初步探入,点灯被打赏30分 | |
玩转“DFRobot盖革计数器模块”+【安信可BW16-Kit】MQTTBasic被打赏40分 | |
玩转“DFRobot盖革计数器模块”+remotecontrol分享被打赏30分 | |
玩转“DFRobot盖革计数器模块”+灵动Motor-DK无感BLDC电机分享被打赏30分 | |
玩转“DFRobot盖革计数器模块”+NXPMCXN947ad分享被打赏30分 | |
Ubuntu18中文输入法设置被打赏30分 | |
【换取手持数字示波器】+树莓派pico驱动步进电机被打赏30分 |