This is a multi-part message in MIME format.

--===============0706636610==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C88818.49FD879B"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C88818.49FD879B
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable


Hi!

I have written trap code, after compiling I'm getting error
messages like as shown below.

=0D

Trap.o: In function `send_ampMemUtilization_trap':

Trap.c.text+0x80): undefined reference to `snmp_varlist_add_variable'

Trap.c.text+0xa4): undefined reference to `snmp_varlist_add_variable'

Trap.c.text+0xac): undefined reference to `send_v2trap'

Trap.c.text+0xb4): undefined reference to `snmp_free_varbind'

Trap.o: function `send_ampTempLowMark_trap':

Trap.c.text+0x154): undefined reference to `snmp_varlist_add_variable'

Trap.c.text+0x174): undefined reference to `snmp_varlist_add_variable'

Trap.c.text+0x17c): undefined reference to `send_v2trap'

Trap.c.text+0x184): undefined reference to `snmp_free_varbind'

Trap.o: In function `send_ampTempHighMark_trap':

Trap.c.text+0x220): undefined reference to `snmp_varlist_add_variable'

Trap.c.text+0x240): undefined reference to `snmp_varlist_add_variable'

Trap.c.text+0x248): undefined reference to `send_v2trap'

Trap.c.text+0x250): undefined reference to `snmp_free_varbind'

Trap.o: In function `send_ampBBUOn_trap':

Trap.c.text+0x2ec): undefined reference to `snmp_varlist_add_variable'

Trap.c.text+0x30c): undefined reference to `snmp_varlist_add_variable'

Trap.c.text+0x314): undefined reference to `send_v2trap'

Trap.c.text+0x31c): undefined reference to `snmp_free_varbind'

collect2: ld returned 1 exit status

make: *** [Trap] Error 1

=0D

even I included these header files.

#include

#include

#include

=0D

=0D

still then I'm getting error messages as show above, please help me out
if any body faced the same problem.=0D

=0D

With Regards,

G. Siva Prakash Reddy.



This email message and its attachments may contain CONFIDENTIAL AND=
PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If=
you have received it in error, please contact the sender by return email,=
notify your system manager and destroy the original message and any copies=
thereof. Any review, use, disclosure or distribution is unlawful. Please=
check this email and any attachments for the presence of viruses. The=
Company accepts no liability for any damage caused by any virus=
transmitted by this email. The views or opinions presented in this e-mail=
are solely those of the author and do not necessarily represent those of=
the company.
The Company reserves the right to monitor, review and store the content of=
all messages sent to or from this e-mail address.=0D

www.aztecsoft.com
------_=_NextPart_001_01C88818.49FD879B
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable




=3Dus-ascii">












=3D'font-size:10.0pt;
font-family:Arial'>Hi!



=3D'font-size:10.0pt;
font-family:Arial'>         &n=
bsp;  I have written trap code, after compiling I’m
getting error messages like as shown below.



=3D'font-size:10.0pt;
font-family:Arial'> 



=3D'font-size:10.0pt;
font-family:Arial'>         &n=
bsp;  Trap.o: In function=
`send_ampMemUtilization_trap':



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>Trap.c.text+0x80): undefined
reference to `snmp_varlist_add_variable'



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>Trap.c.text+0xa4): undefined
reference to `snmp_varlist_add_variable'



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>Trap.c.text+0xac): undefined
reference to `send_v2trap'



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>Trap.c.text+0xb4): undefined
reference to `snmp_free_varbind'



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>Trap.o: function=
`send_ampTempLowMark_trap':



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>Trap.c.text+0x154):=
undefined
reference to `snmp_varlist_add_variable'



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>Trap.c.text+0x174):=
undefined
reference to `snmp_varlist_add_variable'



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>Trap.c.text+0x17c):=
undefined
reference to `send_v2trap'



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>Trap.c.text+0x184):=
undefined
reference to `snmp_free_varbind'



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>Trap.o: In function=
`send_ampTempHighMark_trap':



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>Trap.c.text+0x220):=
undefined
reference to `snmp_varlist_add_variable'



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>Trap.c.text+0x240):=
undefined
reference to `snmp_varlist_add_variable'



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>Trap.c.text+0x248):=
undefined
reference to `send_v2trap'



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>Trap.c.text+0x250):=
undefined
reference to `snmp_free_varbind'



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>Trap.o: In function=
`send_ampBBUOn_trap':



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>Trap.c.text+0x2ec):=
undefined
reference to `snmp_varlist_add_variable'



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>Trap.c.text+0x30c):=
undefined
reference to `snmp_varlist_add_variable'



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>Trap.c.text+0x314):=
undefined
reference to `send_v2trap'



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>Trap.c.text+0x31c):=
undefined
reference to `snmp_free_varbind'



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>collect2: ld returned 1 exit=
status



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>make: *** [Trap] Error=
1



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'> 



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>even I included these header=
files.



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>#include=
<net-snmp/net-snmp-config.h>



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>#include=
<net-snmp/net-snmp-includes.h>



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>#include=
<net-snmp/agent/net-snmp-agent-includes.h>



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'> 



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'> 



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>still then I’m getting=
error
messages as show above, please help me out if any body faced the same=
problem.



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'> 



=3DArial> style=
=3D'font-size:10.0pt;font-family:Arial'>     &nbsp=
; With Regards,



=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>G. Siva Prakash=
Reddy.









This email message=
and its attachments may contain CONFIDENTIAL AND PRIVILEGED INFORMATION=
intended for the sole use of the addressee(s). If you have received it in=
error, please contact the sender by return email, notify your system=
manager and destroy the original message and any copies thereof. Any=
review, use, disclosure or distribution is unlawful. Please check this=
email and any attachments for the presence of viruses. The Company accepts=
no liability for any damage caused by any virus transmitted by this=
email. The views or opinions presented in this e-mail are solely those of=
the author and do not necessarily represent those of the company.

The Company reserves the right to monitor, review and store the content of=
all messages sent to or from this e-mail address.



www.aztecsoft.com


------_=_NextPart_001_01C88818.49FD879B--


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--===============0706636610==
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

--===============0706636610==--