Re: NET SNMP TEXT COMMANDS

Ajeet Gupta <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello Dave,

I m getting foloowing problem while installing net-snmp 5.4.2.1 from tar
ball on fedora core 10 machine.


   - ./configure runs fine..
   ---------------------------------------------------------
               Net-SNMP configuration summary:
   ---------------------------------------------------------

     SNMP Versions Supported:    1 2c 3
     Net-SNMP Version:           5.4.2.1
     Building for:               linux
     Network transport support:  Callback Unix TCP UDP
     SNMPv3 Security Modules:     usm
     Agent MIB code:             default_modules =>  snmpv3mibs mibII
   ucd_snmp notification notification-log-mib target agent_mibs agentx
   disman/event disman/schedule utilities host
     Embedded Perl support:      disabled
     SNMP Perl modules:          building -- not embeddable
     SNMP Python modules:        disabled
     Authentication support:     MD5 SHA1
     Encryption support:         DES AES

   ---------------------------------------------------------

   - make gives the following error

   /bin/sh ../../libtool  --mode=compile gcc -I../../include -I.
   -I../../agent -I../../agent/mibgroup -I../../snmplib   -g -O2 -Ulinux
   -Dlinux=linux -I/usr/include/rpm  -c -o host/hr_filesys.lo host/hr_filesys.c
    gcc -I../../include -I. -I../../agent -I../../agent/mibgroup
   -I../../snmplib -g -O2 -Ulinux -Dlinux=linux -I/usr/include/rpm -c
   host/hr_filesys.c  -fPIC -DPIC -o host/.libs/hr_filesys.o
    gcc -I../../include -I. -I../../agent -I../../agent/mibgroup
   -I../../snmplib -g -O2 -Ulinux -Dlinux=linux -I/usr/include/rpm -c
   host/hr_filesys.c -o host/hr_filesys.o >/dev/null 2>&1
   /bin/sh ../../libtool  --mode=compile gcc -I../../include -I.
   -I../../agent -I../../agent/mibgroup -I../../snmplib   -g -O2 -Ulinux
   -Dlinux=linux -I/usr/include/rpm  -c -o host/hr_swrun.lo host/hr_swrun.c
    gcc -I../../include -I. -I../../agent -I../../agent/mibgroup
   -I../../snmplib -g -O2 -Ulinux -Dlinux=linux -I/usr/include/rpm -c
   host/hr_swrun.c  -fPIC -DPIC -o host/.libs/hr_swrun.o
    gcc -I../../include -I. -I../../agent -I../../agent/mibgroup
   -I../../snmplib -g -O2 -Ulinux -Dlinux=linux -I/usr/include/rpm -c
   host/hr_swrun.c -o host/hr_swrun.o >/dev/null 2>&1
   /bin/sh ../../libtool  --mode=compile gcc -I../../include -I.
   -I../../agent -I../../agent/mibgroup -I../../snmplib   -g -O2 -Ulinux
   -Dlinux=linux -I/usr/include/rpm  -c -o host/hr_swinst.lo host/hr_swinst.c
    gcc -I../../include -I. -I../../agent -I../../agent/mibgroup
   -I../../snmplib -g -O2 -Ulinux -Dlinux=linux -I/usr/include/rpm -c
   host/hr_swinst.c  -fPIC -DPIC -o host/.libs/hr_swinst.o
   host/hr_swinst.c: In function ‘init_hr_swinst’:
   host/hr_swinst.c:210: warning: assignment makes pointer from integer
   without a cast
   host/hr_swinst.c: In function ‘var_hrswinst’:
   host/hr_swinst.c:480: error: ‘int_32’ undeclared (first use in this
   function)
   host/hr_swinst.c:480: error: (Each undeclared identifier is reported only
   once
   host/hr_swinst.c:480: error: for each function it appears in.)
   host/hr_swinst.c:480: error: ‘rpm_data’ undeclared (first use in this
   function)
   make[2]: *** [host/hr_swinst.lo] Error 1
   make[2]: Leaving directory
   `/home/AJEET/Download/net-snmp-5.4.2.1/agent/mibgroup'
   make[1]: *** [subdirs] Error 1
   make[1]: Leaving directory `/home/AJEET/Download/net-snmp-5.4.2.1/agent'
   make: *** [subdirs] Error 1

   - make install generates foloowing error...


   Libraries have been installed in:
      /usr/local/lib

   If you ever happen to want to link against installed libraries
   in a given directory, LIBDIR, you must either use libtool, and
   specify the full pathname of the library, or use the `-LLIBDIR'
   flag during linking and do at least one of the following:
      - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
        during execution
      - add LIBDIR to the `LD_RUN_PATH' environment variable
        during linking
      - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
      - have your system administrator add LIBDIR to `/etc/ld.so.conf'

   See any operating system documentation about shared libraries for
   more information, such as the ld(1) and ld.so(8) manual pages.
   ----------------------------------------------------------------------
   make[2]: Leaving directory
   `/home/AJEET/Download/net-snmp-5.4.2.1/agent/helpers'
   making installlibs in
   /home/AJEET/Download/net-snmp-5.4.2.1/agent/mibgroup
   make[2]: Entering directory
   `/home/AJEET/Download/net-snmp-5.4.2.1/agent/mibgroup'
   make[2]: Leaving directory
   `/home/AJEET/Download/net-snmp-5.4.2.1/agent/mibgroup'
   /bin/sh ../libtool  --mode=compile gcc -I../include -I. -I../agent
   -I../agent/mibgroup -I../snmplib   -g -O2 -Ulinux -Dlinux=linux
   -I/usr/include/rpm  -c -o mibgroup/host/hr_swinst.lo
   mibgroup/host/hr_swinst.c
    gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -g -O2
   -Ulinux -Dlinux=linux -I/usr/include/rpm -c mibgroup/host/hr_swinst.c  -fPIC
   -DPIC -o mibgroup/host/.libs/hr_swinst.o
   mibgroup/host/hr_swinst.c: In function ‘init_hr_swinst’:
   mibgroup/host/hr_swinst.c:210: warning: assignment makes pointer from
   integer without a cast
   mibgroup/host/hr_swinst.c: In function ‘var_hrswinst’:
   mibgroup/host/hr_swinst.c:480: error: ‘int_32’ undeclared (first use in
   this function)
   mibgroup/host/hr_swinst.c:480: error: (Each undeclared identifier is
   reported only once
   mibgroup/host/hr_swinst.c:480: error: for each function it appears in.)
   mibgroup/host/hr_swinst.c:480: error: ‘rpm_data’ undeclared (first use in
   this function)
   make[1]: *** [mibgroup/host/hr_swinst.lo] Error 1
   make[1]: Leaving directory `/home/AJEET/Download/net-snmp-5.4.2.1/agent'
   make: *** [installsubdirlibs] Error 1



   - I am able to find the libraries in "/usr/local/lib"...but i am not able
   to find commads like "snmpget,snmpset...etc." at anywhere...
   - Also I am unable to start "aprintd" daemon...It says "command not
   found" (probably because it's not installed properly)
   - Same with "al" command for sending alarms...."command not found"
   - I am running all the commands as "root"




On Mon, Feb 22, 2010 at 10:24 PM, Dave Shield <[email protected]>wrote:

> On 18 February 2010 21:23, Mike Ayers <[email protected]> wrote:
> >> mibgroup/host/hr_swinst.c: In function ‘var_hrswinst’:
> >> mibgroup/host/hr_swinst.c:480: error: ‘int_32’ undeclared (first use in
> this function)
> >> mibgroup/host/hr_swinst.c:480: error: (Each undeclared identifier is
> reported only once
> >> mibgroup/host/hr_swinst.c:480: error: for each function it appears in.)
> >> mibgroup/host/hr_swinst.c:480: error: ‘rpm_data’ undeclared (first use
> in this function)
> >> make[1]: *** [mibgroup/host/hr_swinst.lo] Error 1
>
>
> >        I don't recognize the failure - did you perhaps ask configure to
> make RPMs?
>
> Unfortunately, I do.
> This is a problem with changes to the RPM library API,
> which is used for retrieving the list of installed software.
>
> Current releases of Fedora use RPM v4
> The hr_swinst.c code was developed using an earlier
> (incompatible) API - probably v3.
>
> This is an issue that has been biting me more and more recently,
> and is something that I need to sort out for the upcoming releases.
>
> I'll add this to the agent for tonight's admin meeting.
>
> Dave
>



-- 
With Warm Regards,

AJEET KUMAR
MCA BIT MESRA
KOLKATA EXTENSION CENTER
CONTACT NO. : +919163552088

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.