On tis, 2007-09-04 at 12:46 -0400, [EMAIL PROTECTED] wrote:
> I've followed the advise in the FAQ about making Net-SNMP smaller but
> I'm looking to go to the next level.  I've got a v2c, v3 system running
> but for a new project, all I really need is v2.  
> 
> I'm working with Net-SNMP v5.2.2.  I found the --disable-snmpv1 in the
> configure script but it leads to 
> 
>   ./../snmplib/snmp_api.c:2956: error: 'SNMP_VERSION_1' undeclared
> (first use in this function)

Try using HEAD, 5.4.x could work as well.

> and similar errors in other modules.  And I can't find a
> --disable-snmpv3 or --with-out-v3 or anything in configure.

No, it is annoyingly enough missing and it is nontrivial to introduce
it. I would love to  be able to specify --with-out-snmp :-)

> Will removing SNMP versions slim down Net-SNMP enough to pursue this avenue
> and, if so, is --disable-snmpv1 better in a version later than v5.2.2?  

Removing just v1 gives me 788 bytes in text size and 652 bytes in file
size. Given that this is less than 0.5% I'd say it isn't worth the
trouble.

When I wish to build a really stripped down net-snmp then I use the
following command:

../net-snmp/configure --enable-mini-agent --without-rpm
--without-kmem-usage --without-root-access --with-defaults
--prefix=/tmp/net-snmp-install --disable-debugging --disable-mib-loading
--disable-applications --disable-manuals --disable-scripts
--with-out-mib-modules=snmpv3mibs,mibII/vacm_vars --disable-privacy
--disable-md5 --disable-shared --with-out-transports=TCP,Unix,Callback
--without-openssl --with-cflags=-Os

> I know when working with Tcl/Tk, if someone needs a really small
> version, they are often referred to the one just before UTF support was
> added.  Is there an old, stable Net-SNMP that predates some growth jump
> that I might consider working with?

I am too young to be able to answer that.

/MF


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to