I've been trying to compile a statically linked snmpd binary with
net-snmp-5.4.1 and on Ubuntu Gutsy.
I used the configure options described in the FAQ and in another
mailing list post:
* http://net-snmp.sourceforge.net/wiki...Q:Compiling_06
* http://www.avr32linux.org/twiki/bin/view/Main/Net-SNMP

Relevant options were:

....but ldd snmpd still reports:

$ ldd agent/snmpd
linux-gate.so.1 => (0xffffe000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7f7e000)
libcrypto.so.0.9.8 => /usr/lib/i686/cmov/libcrypto.so.0.9.8 (0xb7e3b000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7cf0000)
/lib/ld-linux.so.2 (0xb7f95000)
libz.so.1 => /usr/lib/libz.so.1 (0xb7cdb000)

Can anyone advise me whether they have successfully managed to
statically compile a recent net-snmp? Perhaps there's something
obvious that I'm missing.

Thanks in advance to anyone who can help.


Entire configure command was:
../configure --enable-mini-agent \
--with-default-snmp-version=3 \
--with-sys-contact="your@emailaddress.com" \
--with-sys-location=Home \
--with-logfile=/var/log/snmpd.log \
--with-persistent-directory=/var/net-snmp \
--disable-shared \
--enable-static \
--disable-applications \
--without-rpm \
--without-dmalloc \
--without-efence \
--without-rsaref \
--enable-mini-agent \
--with-defaults \
--prefix=/usr \
--sysconfdir=/etc \
--disable-manuals \
--disable-debugging \
--disable-scripts \
--disable-mibs \
--disable-mib-loading \
--disable-ipv6 \
--with-mib-modules="snmpv3mibs host smux ucd-snmp/proc
ucd-snmp/loadave ucd-snmp/memory ucd-snmp/vmstat ucd-snmp/dlmod
agent_mibs agentx target" \

Richard Wall

Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
Net-snmp-users mailing list
Please see the following page to unsubscribe or change other options: