Sorry, that i response now.
configure.in: (~Line 150)
AC_ARG_ENABLE(snmpv1,
[ --disable-snmpv1 Do not include code that implements
SNMPv1.])
if test "x$enable_snmpv1" = "xno"; then
AC_DEFINE([DISABLE_SNMPV1], 1,
[Define if SNMPv1 code should not be included])
else
SNMP_VERSIONS="$SNMP_VERSIONS 1"
fi
AC_ARG_ENABLE(snmpv2c,
[ --disable-snmpv2c Do not include code that implements
SNMPv2c.])
if test "x$enable_snmpv1" = "xno"; then
AC_DEFINE([DISABLE_SNMPV2C], 1,
[Define if SNMPv2c code should not be included])
else
SNMP_VERSIONS="$SNMP_VERSIONS 2c"
fi
look at the test condition. May that be a problem ? (same for configure)
U are right, some function (_snmp_build) use the SNMP_VERSION_1 without
testing if available.
If i use --disable-snmpv1 i get :
arm-linux-gcc -I../../include -I. -I../../agent -I../../agent/mibgroup
-I../../snmplib -I/mnt/openssl/include -I/usr/local/arm-linux/include -Wall
-O2 -march=armv4 -mtune=strongarm -Dlinux -c ucd-snmp/proxy.c -o
ucd-snmp/proxy.o
ucd-snmp/proxy.c: In function `proxy_fill_in_session':
ucd-snmp/proxy.c:262: `SNMP_VERSION_1' undeclared (first use in this
function)
ucd-snmp/proxy.c:262: (Each undeclared identifier is reported only once
ucd-snmp/proxy.c:262: for each function it appears in.)
ucd-snmp/proxy.c:263: `SNMP_VERSION_2c' undeclared (first use in this
function)
make[2]: *** [ucd-snmp/proxy.lo] Error 1
make[2]: Leaving directory
`/home/Baumgart/Documents/net-snmp-5.2.rc3/agent/mibgroup'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/Baumgart/Documents/net-snmp-5.2.rc3/agent'
make: *** [subdirs] Error 1
Mfg Baumgart
-----Original Message-----
From: Robert Story [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 16. November 2004 04:41
To: Baumgart Alexander
Cc: Net-Snmp Users (E-mail)
Subject: Re: --disable-snmpv1 5.2.rc3 proxy.c Error
On Tue, 9 Nov 2004 15:40:37 +0100 Baumgart wrote:
BA> I did some research and its seem the --disable-snmpv1 and snmpv2c value
BA> didnt get set correct in the
BA> configure script. seem a simple copy&past bug.
Could you expound on that? To me, it looks like the code in questions uses
the
values without testing if they are available. Either way, write up a bug
report, and we'll try and get to it for 5.2.1.
--
Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
<irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
You are lost in a twisty maze of little standards, all different.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
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