linked ssl libraries to binary

Peter Jeremy peterjeremy at
Tue Mar 4 18:23:18 UTC 2008

On Tue, Mar 04, 2008 at 05:18:02AM -0800, Jeremy Chadwick wrote:
>On Tue, Mar 04, 2008 at 12:05:22PM +0000, Chris wrote:
>This doesn't come as much of a surprise.  The binary actually references
>libraries by names such as, not

This is incorrect.  The binaries directly reference
as reported using the first column of ldd output.

>> ldd on same binary on freebsd 7
>> => /usr/lib/ (0x28101000)
>> => /lib/ (0x28142000)
>> => /usr/local/lib/compat/ (0x2829a000)
>> => /usr/local/lib/ (0x282b2000)
>> => /usr/local/lib/compat/ (0x282bd000)
>> => /usr/local/lib/compat/ (0x28388000)
>> => /usr/local/lib/compat/ (0x2839e000)
>> => /usr/local/lib/compat/ (0x283c3000)
>> => /lib/ (0x284a9000)
>> => /usr/lib/ (0x285a4000)
>> => /lib/ (0x285b4000)
>> => /usr/lib/ (0x285c6000)
>> => /lib/ (0x286ba000)
>> => /lib/ (0x286cf000)
>> => /lib/ (0x286da000)

Based on the above, the binary has direct references to (eg) (which is found in the base system on 7.x and therefore
has embedded references to and (which is a
6.x library and therefore has embedded references to

>two linked in-versions of libc, libm, libstdc++, and others.  It's
>possible this is "normal", but it seems like it would cause a crash.

This is very much abnormal and having an executable pull in two versions
of a system library virtually guarantees that it won't work.

>I indirectly answered this in my 2nd paragraph.  Welcome to the UNIX
>equivalent of "DLL Hell" on Windows -- and why you should *always*
>recompile programs when the major version of a shared library (.so)
>changes.  I cannot stress this enough.


Peter Jeremy
Please excuse any delays as the result of my ISP's inability to implement
an MTA that is either RFC2821-compliant or matches their claimed behaviour.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-stable mailing list