Bluehost.com Web Hosting $6.95

Re: How to create statically linked net-snmp binaries

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


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-07-2008
Dave Shield
 
Posts: n/a
Default Re: How to create statically linked net-snmp binaries

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:25 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0