I installed Net-SNMP v5.4.1 to use the master agent and created a subagent to
process the MIB we need to support. Everything works fine, but I would
like to reduce the overall size. The current size of the library files
are as follows:
A)
libsnmp_client.so
167596
B) libsnmp_subagent.so
127136
C) libnetsnmpagent.so.15.1.0 216760
D) libnetsnmphelpers.so.15.1.0 143624
E) libnetsnmpmibs.so.15.1.0 244448
F) libnetsnmp.so.15.1.0 519904
G) libnetsnmptrapd.so.15.1.0 0
I was hoping to be able to reduce the size of the C->F libraries a bit more.
I am using the following "configure" settings to reduce the size as much as I
can right now, but I was wondering if there is anything else I can do?
../configure \
--srcdir=$(ICE)/services/snmp/masteragent/netsnmp/net-snmp \
--with-install-prefix=$(ICE)/services/snmp/masteragent/netsnmp/net-snmp \
--prefix=/usr/local \
--with-logfile="/var/log/snmpd.log" \
--with-persistent-directory="/var/net-snmp" \
--with-default-snmp-version="2" \
--with-sys-contact="contact" \
--with-sys-location="location" \
--disable-embedded-perl \
--without-perl-modules \
--host=$(CROSS_COMPILE)linux \
--with-cc=$(CC) \
--with-linkcc=$(CC) \
--with-cflags="-g -x c" \
--with-ldflags="-x none" \
--with-endianness=little \
--disable-applications \
--disable-manuals \
--disable-scripts \
--disable-mibs \
--disable-mib-loading \
--disable-debugging \
--without-openssl \
--disable-des \
--disable-privacy \
--disable-md5 \
--disable-static \
--disable-snmptrapd-subagent \
--enable-mini-agent \
--with-mib-modules="agentx host";
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders