can anyone help me with yapsnmp?

Charles Harrison speedy911 at mindspring.com
Thu Jul 12 16:22:26 EDT 2001


I am very interested in implementing the module yapsnmp in some of my
programs that use snmp commands, but I cant get it to install and dont
really know enough C to pull apart the place in net-snmp where the
installer is failing.  I was wondering if anyone else has had trouble
with the installation of this module or has any other insight as to
how I might be able to get this module to run on my system.  I think
it should work; I have the latest version of net-snmp.  Heres the
transcript from my install attempt:

[root at icispare1 yapsnmp-0.7]# ./configure 
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for ranlib... ranlib
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
updating cache ./config.cache
checking for object suffix... o
checking for executable suffix... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the linker (/usr/bin/ld) supports shared libraries...
yes
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for objdir... .libs
creating libtool
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler...
no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for swig... swig
checking for patch... patch
checking for kstat_open in -lkstat... no
checking for init_snmp in -lsnmp... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for ucd-snmp/ucd-snmp-config.h... yes
checking for ucd-snmp/ucd-snmp-includes.h... yes
checking for ucd-snmp/transform_oids.h... yes
checking for ucd-snmp/asn1.h... yes
checking for ucd-snmp/snmp_api.h... yes
checking for ucd-snmp/snmp.h... yes
checking for ucd-snmp/snmp_client.h... yes
checking for ucd-snmp/mib.h... yes
checking for ucd-snmp/default_store.h... yes
checking for /usr/include/ucd-snmp... yes
checking for python1.5/Python.h... yes
checking for /usr/lib/python1.5/site-packages... yes
checking for working const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating src/Makefile
creating doc/Makefile
creating config/Makefile
creating config.h
[root at icispare1 yapsnmp-0.7]# make
make  all-recursive
make[1]: Entering directory `/home/charrison/yapsnmp-0.7'
Making all in src
make[2]: Entering directory `/home/charrison/yapsnmp-0.7/src'
cp /usr/include/ucd-snmp/snmp_api.h .
patch < snmp_api.h-patch
patching file snmp_api.h
cp /usr/include/ucd-snmp/snmp_client.h .
patch < snmp_client.h-patch
patching file snmp_client.h
cp /usr/include/ucd-snmp/mib.h .
patch < mib.h-patch
patching file mib.h
swig -python -shadow -I/usr/include/ucd-snmp net-snmp.i
Generating wrappers for Python
snmp_api.h : Line 95. Warning. Array member will be read-only.
snmp_api.h : Line 97. Warning. Array member will be read-only.
snmp_api.h : Line 186. Function pointers not currently supported
(ignored).
snmp_api.h : Line 216. Warning. Array member will be read-only.
snmp_api.h : Line 220. Warning. Array member will be read-only.
snmp_api.h : Line 276. Constant SNMP_MAX_SEC_NAME_SIZE multiply
defined. (2nd definition ignored)
snmp_api.h : Line 396. Warning. Array member will be read-only.
snmp_api.h : Line 397. Warning. Array member will be read-only.
net-snmp.i : Line 56. Warning. Array member will be read-only.
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
-I/usr/include/python1.5 -I/usr/local/include/python1.5    -g -O2 -c
net-snmp_wrap.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python1.5
-I/usr/local/include/python1.5 -g -O2 -c net-snmp_wrap.c  -fPIC -DPIC
-o net-snmp_wrap.lo
net-snmp_wrap.c: In function `_wrap_snmpv3_parse':
net-snmp_wrap.c:1967: too few arguments to function `snmpv3_parse'
net-snmp_wrap.c: In function `_wrap_print_description':
net-snmp_wrap.c:3637: too few arguments to function
`print_description'
net-snmp_wrap.c: In function `_wrap_fprint_description':
net-snmp_wrap.c:3666: too few arguments to function
`fprint_description'
make[2]: *** [net-snmp_wrap.lo] Error 1
make[2]: Leaving directory `/home/charrison/yapsnmp-0.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/charrison/yapsnmp-0.7'
make: *** [all-recursive-am] Error 2


If you've gotten this far thank you so much in advance for all of your
time.
-Charles



More information about the Python-list mailing list