From owner-freebsd-current@freebsd.org Sun Oct 14 21:17:36 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AF0AD10C12B6 for ; Sun, 14 Oct 2018 21:17:36 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0287E75431 for ; Sun, 14 Oct 2018 21:17:35 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id w9ELH41b043863 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 15 Oct 2018 00:17:07 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua w9ELH41b043863 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id w9ELH41a043862; Mon, 15 Oct 2018 00:17:04 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 15 Oct 2018 00:17:04 +0300 From: Konstantin Belousov To: Dirk Meyer Cc: freebsd-current@freebsd.org Subject: Re: OpenSSL 1.1.1 libssl.so version number Message-ID: <20181014211704.GB5335@kib.kiev.ua> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tom.home X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Oct 2018 21:17:36 -0000 On Sun, Oct 14, 2018 at 05:45:30PM +0200, Dirk Meyer wrote: > Don Lewis schrieb:, > > > It looks to me like the base libssl.so version needs to get moved to a > > value that doesn't collide with ports, perhaps 12. These are the > > library version numbers currently used by the various ssl ports: > > > > boringssl 1 > > openssl 9 > > openssl-devel 10 > > openssl111 11 > > libressl 43 > > libressl-devel 44 > > The linker will always pick the highest so version of a lib (e.g. libssl.so). > I the past the base version must be smaller then the port version, This is simply not true, both static and dynamic ELF linkers do not care about version numbers at all. Static linker ld(1) only looks for libXXX.so file and records DT_SONAME from the shared library into the linked binary. Dynamic linker ld-elf.so.1 looks for exact match of the library filename and DT_SONAME. So for instance we have libc.so -> libc.so.7 symlink and libc.so.7 has DT_SONAME libc.so.7. Then -lc causes recording the dependency libc.so.7 and dynamic linker loads it when activating the image.