Re: Compile source using a specific OpenSSL version

From: Quanah Gibson-Mount <quanah_at_zimbra.com>
Date: Sun, 06 Dec 2015 12:51:00 -0800

--On Sunday, December 06, 2015 8:14 PM +0100 Thomas Leuxner
<tlx_at_leuxner.net> wrote:

> * Quanah Gibson-Mount <quanah_at_zimbra.com> 2015.12.06 19:42:
>
>> What is the output of readelf -d on your binary
>
> Both point to the newer version:
>
> $ readelf -d opendkim
>
> Dynamic section at offset 0x34d08 contains 42 entries:
> Tag Type Name/Value
> 0x0000000000000001 (NEEDED) Shared library:
> [libopendkim.so.10] 0x0000000000000001 (NEEDED) Shared
> library: [libmilter.so.1.0.1] 0x0000000000000001 (NEEDED)
> Shared library: [libssl.so.1.0.2] 0x0000000000000001 (NEEDED)
> Shared library: [libcrypto.so.1.0.2] 0x0000000000000001 (NEEDED)
> Shared library: [libresolv.so.2] 0x0000000000000001 (NEEDED)
> Shared library: [libdb-5.3.so] 0x0000000000000001 (NEEDED)
> Shared library: [libopendbx.so.1] 0x0000000000000001 (NEEDED)
> Shared library: [libdl.so.2] 0x0000000000000001 (NEEDED)
> Shared library: [libmemcached.so.11] 0x0000000000000001 (NEEDED)
> Shared library: [libmemcachedutil.so.2] 0x0000000000000001 (NEEDED)
> Shared library: [liblua5.1.so.0] 0x0000000000000001 (NEEDED)
> Shared library: [libldap_r-2.4.so.2] 0x0000000000000001 (NEEDED)
> Shared library: [liblber-2.4.so.2] 0x0000000000000001 (NEEDED)
> Shared library: [libunbound.so.2] 0x0000000000000001 (NEEDED)
> Shared library: [libvbr.so.2] 0x0000000000000001 (NEEDED)
> Shared library: [librbl.so.1] 0x0000000000000001 (NEEDED)
> Shared library: [libbsd.so.0] 0x0000000000000001 (NEEDED)
> Shared library: [libpthread.so.0] 0x0000000000000001 (NEEDED)
> Shared library: [libc.so.6] 0x000000000000000c (INIT)

So one of the libraries you are using is linked to a different version of
OpenSSL, and that is why you see multiple versions being loaded. As
someone else already noted, that is likely libldap. I.e., you'll have to
recompile OpenLDAP against the same version of OpenSSL as well, along with
anything else you're linking OpenDKIM to that uses OpenSSL. Or change
OpenDKIM to use the vendor provided version of OpenSSL, etc.

--Quanah

--
Quanah Gibson-Mount
Platform Architect
Zimbra, Inc.
--------------------
Zimbra ::  the leader in open source messaging and collaboration
Received on Sun Dec 06 2015 - 20:51:28 PST

This archive was generated by hypermail 2.3.0 : Sun Dec 06 2015 - 20:54:00 PST