Re: Extending the Agent

This is a discussion on Re: Extending the Agent within the SNMP Coders forums, part of the Networking and Network Related category; Thanks a lot.. I did as you directed me. The error I posted in my first message is resolved now. ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-23-2005
aakansha rajvi
 
Posts: n/a
Default Re: Extending the Agent

Thanks a lot.. I did as you directed me.

The error I posted in my first message is resolved now. But still some
other errors are shown.

netsnmpmibs.lib(mib_modules.obj) : error LNK2001: unresolved external
symbol _init_poe
netsnmpmibs.lib(mib_modules.obj) : error LNK2001: unresolved external
symbol _init_apps
...\bin\.\release/snmptrapd.exe : fatal error LNK1120: 12 unresolved externa=
ls
NMAKE : fatal error U1077: 'link.exe' : return code '0x460'
Stop.
NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~4\VC98\BIN\NMAKE.EXE' :
return code '0x2'
Stop.

Thanks

On 8/23/05, Dave Shield <D.T.Shield@csc.liv.ac.uk> wrote:
> [ Cc: to mailing list restored.
> *Please* try to remember! ]
>=20
> On Tue, 2005-08-23 at 17:14 +0530, aakansha rajvi wrote:
> > On 8/23/05, Dave Shield <D.T.Shield@csc.liv.ac.uk> wrote:
> > >
> > > > My directory structure is
> > > >
> > > >
> > > > agent
> > > > |
> > > > mibgroup
> > > > |
> > > > test-mib
> > > > | |
> > > > poe apps...etc.,
> > > > |
> > > > poe.c poe.h
> > >
> > > So the full path to "poe.h" is "agent/mibgroup/test-mib/poe/poe.h"

> >
> >
> > After compiling the mib I got, poe.c and poe.h.
> > This poe.h in "agent/mibgroup/test-mib/poe/poe.h" is got through the
> > compilation of the corresponding MIB.

>=20
> OK - So that's the important header file.
> This contains the definitions of the public interface
> to your "poe" MIB implementation, so that's what any other
> code must refer to.
>=20
>=20
>=20
> > > > Correspondingly test-mib.h is placed under agent/mibgroup. "poe.h" =

and
> > > > "apps.h" is placed under agent/mibgroup/test-mib.
> > >
> > > So the full path to "poe.h" is "agent/mibgroup/test-mib/poe.h"

> >
> > Since the compiled poe mibs are placed in poe folder, I need to create
> > a header file for this.

>=20
> No, you don't - not if you're using a Windows-based build environment.
>=20
>=20
>=20
> > The content of the poe.h in "agent/mibgroup/test-mib/poe.h" is
> >
> > config_require(test-mib/poe/poe);

>=20
> That's *only* relevant if you're using "configure" to set up the
> build environment. Visual C++ doesn't use this at all.
>=20
>=20
>=20
> The definition of "init_poe()" is found in the lower-level
> file "agent/mibgroup/test-mib/poe/poe.h", so this is what
> 'mib_module_includes.h' must refer to.
>=20
> Try
> #include "mibgroup/test-mib/poe/poe.h"
>=20
> instead.
>=20
> Dave
>



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
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 02:39 PM.


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