Hi,

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/index.php/FAQ:Compiling_06
 * http://www.avr32linux.org/twiki/bin/view/Main/Net-SNMP

Relevant options were:
 --with-ldflags=-Bstatic
 --disable-shared
 --enable-static

...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.

-RichardW.

Entire configure command was:
./configure --enable-mini-agent \
            --with-default-snmp-version=3 \
            --with-sys-contact="[EMAIL PROTECTED]" \
            --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" \
            --with-ldflags=-Bstatic


-- 
Richard Wall
http://www.appliansys.com

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to