questions about trap receiver

This is a discussion on questions about trap receiver within the SNMP Coders forums, part of the Networking and Network Related category; --===============0999444229== Content-Type: multipart/alternative; boundary="----=_Part_82782_7729576.1153751228059" ------=_Part_82782_7729576.1153751228059 Content-Type: text/plain; charset=ISO-8859-1; ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-24-2006
񢐁
 
Posts: n/a
Default questions about trap receiver

--===============0999444229==
Content-Type: multipart/alternative;
boundary="----=_Part_82782_7729576.1153751228059"

------=_Part_82782_7729576.1153751228059
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi, everyone
I am writing the trap receiver on manager, based on the net-snmp source code
(apps/snmptrapd.c), i just modified some code, and compiled, then there are
something wrong,
/tmp/ccgDqfDL.o(.text+0x293): In function `term_handler':
: undefined reference to `netsnmp_running'
/tmp/ccgDqfDL.o(.text+0x372): In function `pre_parse':
: undefined reference to `hosts_ctl'
/tmp/ccgDqfDL.o(.text+0x462): In function `pre_parse':
: undefined reference to `hosts_ctl'
/tmp/ccgDqfDL.o(.text+0x57a): In function `snmptrapd_add_session':
: undefined reference to `snmp_input'
/tmp/ccgDqfDL.o(.text+0x77c): In function `parse_config_logOption':
: undefined reference to `snmp_log_options'
/tmp/ccgDqfDL.o(.text+0x792): In function `parse_config_doNotFork':
: undefined reference to `netsnmp_ds_parse_boolean'
/tmp/ccgDqfDL.o(.text+0x7b7): In function `parse_config_printEventNumbers':
: undefined reference to `netsnmp_ds_parse_boolean'
/tmp/ccgDqfDL.o(.text+0x7d8): In function `parse_config_ignoreAuthFailure':
: undefined reference to `netsnmp_ds_parse_boolean'
/tmp/ccgDqfDL.o(.text+0x8a9): In function `main':
: undefined reference to `snmptrapd_register_configs'
/tmp/ccgDqfDL.o(.text+0x8b6): In function `main':
: undefined reference to `init_usm_conf'
/tmp/ccgDqfDL.o(.text+0xa00): In function `main':
: undefined reference to `snmp_log_syslogname'
/tmp/ccgDqfDL.o(.text+0xb55): In function `main':
: undefined reference to `init_agent'
/tmp/ccgDqfDL.o(.text+0xb76): In function `main':
: undefined reference to `free_trap1_fmt'
/tmp/ccgDqfDL.o(.text+0xb7b): In function `main':
: undefined reference to `free_trap2_fmt'
/tmp/ccgDqfDL.o(.text+0xb91): In function `main':
: undefined reference to `print_format1'
/tmp/ccgDqfDL.o(.text+0xba7): In function `main':
: undefined reference to `print_format2'
/tmp/ccgDqfDL.o(.text+0xbc0): In function `main':
: undefined reference to `netsnmp_running'
/tmp/ccgDqfDL.o(.text+0xbd7): In function `main':
: undefined reference to `netsnmp_running'
/tmp/ccgDqfDL.o(.text+0xf53): In function `main':
: undefined reference to `netsnmp_running'
/tmp/ccgDqfDL.o(.text+0xf69): In function `main':
: undefined reference to `netsnmp_logging_restart'
/tmp/ccgDqfDL.o(.text+0xf9a): In function `main':
: undefined reference to `free_trap1_fmt'
/tmp/ccgDqfDL.o(.text+0xfb0): In function `main':
: undefined reference to `print_format1'
/tmp/ccgDqfDL.o(.text+0x10bf): In function `main':
: undefined reference to `netsnmp_external_event_info'
/tmp/ccgDqfDL.o(.text+0x1130): In function `main':
: undefined reference to `netsnmp_dispatch_external_events'
/tmp/ccgDqfDL.o(.text+0x11a0): In function `main':
: undefined reference to `netsnmp_running'
/tmp/ccgDqfDL.o(.text+0x11c8): In function `main':
: undefined reference to `netsnmp_running'
collect2: ld returned 1 exit status

I think there are some function library(.a or .so) to be linked bu I tried
some, but failed,
what is wrong? what is the reason?
Thanks very much~!

------=_Part_82782_7729576.1153751228059
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi, everyone<br>I am writing the trap receiver on manager, based on the net-snmp source code (apps/snmptrapd.c), i just modified some code, and compiled, then there are something wrong,&nbsp; <br>/tmp/ccgDqfDL.o(.text+0x293): In function `term_handler':
<br>: undefined reference to `netsnmp_running'<br>/tmp/ccgDqfDL.o(.text+0x372): In function `pre_parse':<br>: undefined reference to `hosts_ctl'<br>/tmp/ccgDqfDL.o(.text+0x462): In function `pre_parse':<br>: undefined reference to `hosts_ctl'
<br>/tmp/ccgDqfDL.o(.text+0x57a): In function `snmptrapd_add_session':<br>: undefined reference to `snmp_input'<br>/tmp/ccgDqfDL.o(.text+0x77c): In function `parse_config_logOption':<br>: undefined reference to `snmp_log_options'
<br>/tmp/ccgDqfDL.o(.text+0x792): In function `parse_config_doNotFork':<br>: undefined reference to `netsnmp_ds_parse_boolean'<br>/tmp/ccgDqfDL.o(.text+0x7b7): In function `parse_config_printEventNumbers':<br>: undefined reference to `netsnmp_ds_parse_boolean'
<br>/tmp/ccgDqfDL.o(.text+0x7d8): In function `parse_config_ignoreAuthFailure':<br>: undefined reference to `netsnmp_ds_parse_boolean'<br>/tmp/ccgDqfDL.o(.text+0x8a9): In function `main':<br>: undefined reference to `snmptrapd_register_configs'
<br>/tmp/ccgDqfDL.o(.text+0x8b6): In function `main':<br>: undefined reference to `init_usm_conf'<br>/tmp/ccgDqfDL.o(.text+0xa00): In function `main':<br>: undefined reference to `snmp_log_syslogname'<br>/tmp/ccgDqfDL.o(.text+0xb55): In function `main':
<br>: undefined reference to `init_agent'<br>/tmp/ccgDqfDL.o(.text+0xb76): In function `main':<br>: undefined reference to `free_trap1_fmt'<br>/tmp/ccgDqfDL.o(.text+0xb7b): In function `main':<br>: undefined reference to `free_trap2_fmt'
<br>/tmp/ccgDqfDL.o(.text+0xb91): In function `main':<br>: undefined reference to `print_format1'<br>/tmp/ccgDqfDL.o(.text+0xba7): In function `main':<br>: undefined reference to `print_format2'<br>/tmp/ccgDqfDL.o(.text+0xbc0): In function `main':
<br>: undefined reference to `netsnmp_running'<br>/tmp/ccgDqfDL.o(.text+0xbd7): In function `main':<br>: undefined reference to `netsnmp_running'<br>/tmp/ccgDqfDL.o(.text+0xf53): In function `main':<br>: undefined reference to `netsnmp_running'
<br>/tmp/ccgDqfDL.o(.text+0xf69): In function `main':<br>: undefined reference to `netsnmp_logging_restart'<br>/tmp/ccgDqfDL.o(.text+0xf9a): In function `main':<br>: undefined reference to `free_trap1_fmt'<br>/tmp/ccgDqfDL.o(.text+0xfb0): In function `main':
<br>: undefined reference to `print_format1'<br>/tmp/ccgDqfDL.o(.text+0x10bf): In function `main':<br>: undefined reference to `netsnmp_external_event_info'<br>/tmp/ccgDqfDL.o(.text+0x1130): In function `main':<br>: undefined reference to `netsnmp_dispatch_external_events'
<br>/tmp/ccgDqfDL.o(.text+0x11a0): In function `main':<br>: undefined reference to `netsnmp_running'<br>/tmp/ccgDqfDL.o(.text+0x11c8): In function `main':<br>: undefined reference to `netsnmp_running'<br>collect2: ld returned 1 exit status
<br><br>I think there are some function library(.a or .so) to be linked bu I tried some, but failed,<br>what is wrong? what is the reason? <br>Thanks very much~!<br>

------=_Part_82782_7729576.1153751228059--


--===============0999444229==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
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?p...rge&CID=DEVDEV
--===============0999444229==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders

--===============0999444229==--

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB 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:33 PM.


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