Hi all, Im trying to write a simple program using the send_easy_trap / send_v2trap. But while compiling it is giving error.
The following are the error Im getting. Command: ---------------- %CC -g main.cpp -I/usr/local/include -L/usr/local/lib -L/usr/local/ssl/lib -lsocket -lnsl -lkstat -lnetsnmpagent -lcrypto -lnetsnmp -lnetsnmphelpers -lnetsnmptrapd. The error message I got is: ---------------------------------------- Undefined first referenced Symbol in file agentx_unregister_index /usr/local/lib/libnetsnmpagent.a(agent_index.0) agentx_register_index /usr/local/lib/libnetsnmpagent.a(agent_index.0) netsnmp_oid_stash_free /usr/local/lib/libnetsnmphelpers.a(stash_cache.0) netsnmp_oid_stash_add_data /usr/local/lib/libnetsnmphelpers.a(table_dataset.0) real_init_smux /usr/local/lib/libnetsnmpagent.a(agent_agent.0) subagent_pre_init /usr/local/lib/libnetsnmpagent.a(agent_vars.0) real_init_master /usr/local/lib/libnetsnmpagent.a(agent_agent.0) netsnmp_oid_stash_get_data /usr/local/lib/libnetsnmphelpers.a(stash_cache.0) init_subagent /usr/local/lib/libnetsnmpagent.a(agent_vars.0) should_init /usr/local/lib/libnetsnmpagent.a(agent_agent.0) netsnmp_oid_stash_getnext_node /usr/local/lib/libnetsnmphelpers.a (stash_cache.0) ld : fatal : Symbol referencing error. No output written to a.out But If I gove the command like: Command: --------------- %CC -g main.cpp -I/usr/local/include -L/usr/local/lib -L/usr/local/ssl/lib -lsocket -lnsl -lkstat -lcrypto -lnetsnmp The error message I got: ---------------------------------- Undefined first refenreced Symbol in file send_easy_trap main.o ld : fatal : Symbol referencing error. No output written to a.out I think this is happening because of improper libraries or there might be soem dependent libraries missed. The Net-SNMP version Im using is : 5.1.2 Please help me.... Thanks in advance With Best Regards Chenna ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users