On 26/07/06, 尧昱 <[EMAIL PROTECTED]> wrote:
I have link the libraries, but the reasult is the same, and then i changed the code, gcc, the reasult is : /tmp/ccpS4oOb.o(.text+0x5a5): In function `main':: undefined reference to `init_agent' collect2: ld returned 1 exit status
OK - try using the libraries indicated by net-snmp-config --agent-libs
I don't know why, and why in the trapd receiver(snmptrapd) codes need the function init_agent()?
Because the trap receiver is also an AgentX subagent (in order to implement the notification log MIB). If you don't require this functionality, you should be able to run "configure --disable-snmptrapd-subagent" (plus any other configure parameters you need) and recompile. Dave
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
