This is a discussion on Re: How to create statically linked net-snmp binaries within the SNMP Users forums, part of the Networking and Network Related category; On 04/04/2008, Richard Wall <richard.wall@appliansys.com> wrote: > I've been trying to compile ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On 04/04/2008, Richard Wall <richard.wall@appliansys.com> wrote:
> I've been trying to compile a statically linked snmpd binary with > net-snmp-5.4.1 and on Ubuntu Gutsy. > ...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) The first thing that springs out about that list is that it doesn't mention any of the Net-SNMP libraries. So you are successfully statically linking with *those*, at least. Also, this list is significantly shorter than the usual list on my Fedora box (which includes 30-odd libraries). So I suspect that you *are* statically linking as much as possible. My guess is that the libraries listed above are the ones where the static (.a) version is not installed on your system. So the agent has linked against the dynamic version, 'cos there's nothing else to use. I'm not sure how Ubuntu/Debian structures its packages, but if there are '-devel' versions of the relevant packages, it might be worth installing those, and re-compiling the agent. Dave ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757...un.com/javaone _______________________________________________ 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/...net-snmp-users |