Hi All,
   I want to create snmpd as thread under another process. What i did is
in agent Makefile I commented out the line which generate snmpd
executable instead it produce only the .o and .lo files and in another
program I am calling snmpd.c snmp_main(main function name chaged)when I
do make it is giving lot of errors (This is not net-snmp make error my
process make error) do I have to include any library and include file.

The errors are

/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x20): In function
`usage':
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.c:274: undefined reference
to `netsnmp_get_version'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0xf3):/home/sasb/te
st/net-snmp-5.2.1.2/agent/snmpd.c:293: undefined reference to
`snmp_log_options_usage'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x1bf): In function
`version':
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.c:337: undefined reference
to `netsnmp_get_version'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x22b): In function
`SnmpdDump':
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.c:374: undefined reference
to `dump_registry'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x247): In function
`SnmpdCatchRandomSignal':
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.c:383: undefined reference
to `snmp_disable_log'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x24c):/home/sasb/t
est/net-snmp-5.2.1.2/agent/snmpd.c:384: undefined reference to
`snmp_enable_syslog'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x25c):/home/sasb/t
est/net-snmp-5.2.1.2/agent/snmpd.c:385: undefined reference to
`snmp_log'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x261):/home/sasb/t
est/net-snmp-5.2.1.2/agent/snmpd.c:386: undefined reference to
`snmp_disable_syslog'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x27f): In function
`SnmpTrapNodeDown':
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.c:393: undefined reference
to `send_easy_trap'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x2d9): In function
`setup_log':
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.c:418: undefined reference
to `snmp_enable_stderrlog'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x323):/home/sasb/t
est/net-snmp-5.2.1.2/agent/snmpd.c:424: undefined reference to
`snmp_enable_filelog'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x32d):/home/sasb/t
est/net-snmp-5.2.1.2/agent/snmpd.c:420: undefined reference to
`snmp_disable_stderrlog'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x35b): In function
`snmp_main':
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.c:868: undefined reference
to `netsnmp_ds_get_boolean'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x36d):/home/sasb/t
est/net-snmp-5.2.1.2/agent/snmpd.c:870: undefined reference to
`netsnmp_daemonize'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x385):/home/sasb/t
est/net-snmp-5.2.1.2/agent/snmpd.c:879: undefined reference to
`init_agent'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x38a):/home/sasb/t
est/net-snmp-5.2.1.2/agent/snmpd.c:880: undefined reference to
`init_mib_modules'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x396):/home/sasb/t
est/net-snmp-5.2.1.2/agent/snmpd.c:885: undefined reference to
`init_snmp'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x39b):/home/sasb/t
est/net-snmp-5.2.1.2/agent/snmpd.c:887: undefined reference to
`init_master_agent'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x3ab):/home/sasb/t
est/net-snmp-5.2.1.2/agent/snmpd.c:894: undefined reference to
`snmp_get_do_debugging'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x3c7):/home/sasb/t
est/net-snmp-5.2.1.2/agent/snmpd.c:898: undefined reference to
`snmp_get_do_debugging'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x3e6):/home/sasb/t
est/net-snmp-5.2.1.2/agent/snmpd.c:902: undefined reference to
`snmp_get_do_debugging'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x405):/home/sasb/t
est/net-snmp-5.2.1.2/agent/snmpd.c:906: undefined reference to
`snmp_get_do_debugging'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x424):/home/sasb/t
est/net-snmp-5.2.1.2/agent/snmpd.c:910: undefined reference to
`snmp_get_do_debugging'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x455):/home/sasb/t
est/net-snmp-5.2.1.2/agent/snmpd.c:920: undefined reference to
`snmp_store'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x460):/home/sasb/t
est/net-snmp-5.2.1.2/agent/snmpd.c:925: undefined reference to
`send_easy_trap'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x46b):/home/sasb/t
est/net-snmp-5.2.1.2/agent/snmpd.c:957: undefined reference to
`netsnmp_ds_get_int'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x485):/home/sasb/t
est/net-snmp-5.2.1.2/agent/snmpd.c:974: undefined reference to
`netsnmp_ds_get_int'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x49a):/home/sasb/t
est/net-snmp-5.2.1.2/agent/snmpd.c:991: undefined reference to
`netsnmp_get_version'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x4aa):/home/sasb/t
est/net-snmp-5.2.1.2/agent/snmpd.c:991: undefined reference to
`snmp_log'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x4af):/home/sasb/t
est/net-snmp-5.2.1.2/agent/snmpd.c:995: undefined reference to
`netsnmp_addrcache_initialise'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x4b4):/home/sasb/t
est/net-snmp-5.2.1.2/agent/snmpd.c:1000: undefined reference to
`snmp_get_do_debugging'
/home/sasb/test/net-snmp-5.2.1.2/agent/snmpd.o(.text+0x4cb):/home/sasb/t
est/net-snmp-5.2.1.2/agent/snmpd.c:1001: undefined reference to
`netsnmp_ds_get_boolean'

Regards,
Sasi.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
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

Reply via email to