On 24 November 2010 06:55, Benix Samuel Vincent Theogaraj
<[email protected]> wrote:
> I am trying to use it for a product it has linux kernel 2.6 on mips processor.

Have a look at the RPM spec file, that can be found in the 'dist'
directory of the source tree.
This can be used to create a binary package, that can then be
installed on the target system.

The command would be something like:
      rpmbuild -ba net-snmp.spec

(That's assuming you are using a Linux distribution that uses RPM packages.
 You don't actually say *which* Linux you're working with)

> This is how I want to use:
> - STEP 1: I want to compile net snmp to get the library and header files.
> - STEP 2: Compile my application (which has to register as sub agent and
> install few oids)     on top of this header files.
> - STEP 3: link with the libraries generated in step 1.
> Later I can make changes in my application while the net-snmp library and
> header files remains the same.


You could either include your application as an extra element within the
Net-SNMP spec file.  Or (better) craft another RPM spec file, specifically
for your application, that depends on the Net-SNMP package.

But do you need to compile the Net-SNMP software at all?
Most Linux distributions already come with Net-SNMP anyway
(which should include a development package).
   Check the packages that are currently available - you may find that
you're trying to re-invent the wheel.

Dave

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
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