From owner-freebsd-current@freebsd.org Sat Oct 13 05:51:16 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 2E7C310B2F1D for ; Sat, 13 Oct 2018 05:51:16 +0000 (UTC) (envelope-from freebsd.current@clogic.com.ua) Received: from gate.krrt.pl.ua (gate.krrt.pl.ua [193.111.188.121]) (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 BB5858A29F; Sat, 13 Oct 2018 05:51:15 +0000 (UTC) (envelope-from freebsd.current@clogic.com.ua) Received: from gate.krrt.pl.ua (localhost [127.0.0.1]) by gate.krrt.pl.ua (Postfix) with ESMTP id 63F15123D8; Sat, 13 Oct 2018 08:51:05 +0300 (EEST) Received: from mail.krrt.pl.ua (localhost [IPv6:::1]) (Authenticated sender: freebsd.current@clogic.com.ua) by gate.krrt.pl.ua (Postfix) with ESMTPA id 0368A123D7; Sat, 13 Oct 2018 08:51:04 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=clogic.com.ua; s=default; t=1539409865; i=@clogic.com.ua; bh=DFe046Y1DD4qBDPNdHwb1fEdDEh/BLlExCnWK4Fp6Lw=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=By9fNwlaOY9VraPuWmFfBdZ453jaZCaIYS11DJ9STt6DquLuo2/MDLdOuBEUBzzEa 5eO2wm9DMyHl7q8tIm5CVP2nBjvSqB3PZE3U1Aj7gzwcSnPyanocpM2E10BKFA3VH8 azhU23RC3exozSy+xYVRiR3Q5O5LMuuqjwhBHBcE= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 13 Oct 2018 08:51:04 +0300 From: freebsd.current@clogic.com.ua To: Don Lewis Cc: FreeBSD current , re@freebsd.org Subject: Re: OpenSSL 1.1.1 libssl.so version number In-Reply-To: References: Message-ID: <4730f5a8bb6acb16e6ff1b358635430a@clogic.com.ua> X-Sender: freebsd.current@clogic.com.ua User-Agent: Roundcube Webmail/1.3.7 X-Virus-Scanned: ClamAV using ClamSMTP 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: Sat, 13 Oct 2018 05:51:16 -0000 On 2018-10-13 02:56, Don Lewis wrote: > Prior to the OpenSSL 1.1.1 import, the base OpenSSL library was > /usr/lib/libssl.so.8. The security/openssl port (1.0.2p) installed > ${LOCALBASE}/lib/ilbssl.so.9 and the security/openssl-devel port > (1.1.0i) installed ${LOCALBASE}/lib/libssl.so.11. After the import, > the > base OpenSSL library is /usr/lib/libssl.so.9. Now if you build ports > with DEFAULT_VERSIONS+=ssl=openssl, the library that actually gets used > is ambiguous because there are now two different versions of libssl.so > (1.0.2p and 1.1.1) with the same shared library version number. > > I stumbled across this when debugging a virtualbox-ose configure > failure. The test executable was linked to the ports version of > libssl.so but rtld chose the base libssl.so at run time. I see the same issue with ports-mgmt/pkg when security/openssl installed. Have DEFAULT_VERSIONS+=ssl=openssl in /etc/make.conf After rebuild pkg on 12-ALPHA9 system: # pkg ld-elf.so.1: /usr/local/lib/libcrypto.so.9: version OPENSSL_1_1_0 required by /usr/local/lib/libpkg.so.4 not defined