Improper Libraires in Net-SNMP 5.1.2..Please help

This is a discussion on Improper Libraires in Net-SNMP 5.1.2..Please help within the SNMP Users forums, part of the Networking and Network Related category; Hi all, Im trying to write a simple program using the send_easy_trap / send_v2trap. But while compiling it is giving error. ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-16-2005
Chenna
 
Posts: n/a
Default Improper Libraires in Net-SNMP 5.1.2..Please help

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/...net-snmp-users
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:49 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0