From owner-freebsd-current@FreeBSD.ORG Tue Apr 28 01:17:15 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E5062B66; Tue, 28 Apr 2015 01:17:14 +0000 (UTC) Received: from anubis.delphij.net (anubis.delphij.net [64.62.153.212]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "anubis.delphij.net", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id CD6701953; Tue, 28 Apr 2015 01:17:14 +0000 (UTC) Received: from zeta.ixsystems.com (unknown [12.229.62.2]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by anubis.delphij.net (Postfix) with ESMTPSA id 7E147446C; Mon, 27 Apr 2015 18:17:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=delphij.net; s=anubis; t=1430183828; x=1430198228; bh=0cD7UZYC12Vqtt2eXhVp50eVCuFZdkQRiPseXpEc2FA=; h=Date:From:Reply-To:To:CC:Subject:References:In-Reply-To; b=M0m5KYb2eg3BijEpLIlr4ky2JEKpF6Wfo5b0neqz6QgkaPQMDPEuRxDUIynH838g5 Dh6KxxB4BZsm34KLH74VoyWPD7weRfF+NkoJd6fajN120ta/HxkjkUjYeIxCR0Trqk t0qWnnazUw0NsGuvfoA90J7ahYvhDeqPnS/zA39Y= Message-ID: <553EDF94.1060705@delphij.net> Date: Mon, 27 Apr 2015 18:17:08 -0700 From: Xin Li Reply-To: d@delphij.net Organization: The FreeBSD Project MIME-Version: 1.0 To: Craig Rodrigues , Andriy Gapon CC: FreeBSD Current Subject: Re: backward dependencies on libzfs References: <553DF08A.9000007@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 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: Tue, 28 Apr 2015 01:17:15 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 04/27/15 17:57, Craig Rodrigues wrote: > On Mon, Apr 27, 2015 at 1:17 AM, Andriy Gapon > wrote: > >> >> I am not sure what's the best list to discuss this issue, so let >> me raise it here. >> >> It seems that libzfs_core can not be used without also linking / >> loading libzfs: /lib/libzfs_core.so.2: Undefined symbol >> "zcmd_ioctl_compat" >> >> The same is true for libnvpair but for a different reason (and it >> looks like mea culpa): /lib/libnvpair.so.2: Undefined symbol >> "aok" >> >> Both dependencies seem to be backward, because: $ ldd >> /lib/libzfs.so.2 /lib/libzfs.so.2: libmd.so.6 => /lib/libmd.so.6 >> (0x801647000) libthr.so.3 => /lib/libthr.so.3 (0x801857000) >> libumem.so.2 => /lib/libumem.so.2 (0x801a7c000) libutil.so.9 => >> /lib/libutil.so.9 (0x801c7d000) libuutil.so.2 => >> /lib/libuutil.so.2 (0x801e8f000) libm.so.5 => /lib/libm.so.5 >> (0x802098000) *libnvpair.so.2 => /lib/libnvpair.so.2 >> (0x8022c1000)* libavl.so.2 => /lib/libavl.so.2 (0x8024d6000) >> libbsdxml.so.4 => /lib/libbsdxml.so.4 (0x8026d8000) libgeom.so.5 >> => /lib/libgeom.so.5 (0x8028ff000) *libzfs_core.so.2 => >> /lib/libzfs_core.so.2 (0x802b04000)* libc.so.7 => /lib/libc.so.7 >> (0x80081f000) libsbuf.so.6 => /lib/libsbuf.so.6 (0x802d08000) >> >> So, there are circular dependencies between libzfs and the other >> library in both cases. It seems that those dependencies do not >> cause much, if any trouble, in practice, but they are not nice, >> because they are unexpected and they are not present on other >> OpenZFS platforms. >> >> > Fixes similar to this: > https://svnweb.freebsd.org/changeset/base/272484 > > need to be done to plug these symbol dependency problems in the > libraries. Well I think it's different issue. The backward dependency was because of our libzfs_core depends on some compatibility shims (I think it was introduced in r248445). I don't have much time to work on it right now though. Andriy -- maybe file a bug and assign it to me? Cheers, - -- Xin LI https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.1.2 (FreeBSD) iQIcBAEBCgAGBQJVPt+QAAoJEJW2GBstM+ns5g8P/jchSVar1TjU2HoJymmthwPM W5mwFSp0f0XWbtd2tkOSUHL6DGvV5pVpzhg3Oj20lrSGJv3s7tymffUSwBtKEA5q fptapAeg/2hXT2U27ns0d5BgaoNz87y0BZgwcWrM4lsDOLpOLt++NPvqf5Jjoq18 y9cRvO06JCZV087Ou/mqU981b7f1T6T+eEUdGXGltP6uynF10HMAlwe53d4hJLgl mhXvZcK78rjf8swtUCBzvkeTkB1OH/O1kL/w8p1oSTUbTERJneNFHEb1+o18XHsA 3aWrnDtweEDgK6mItK3HI26Rq1HvxdqbaYVnfmQikkufyamehzQofXb0AewJuRNf EG4DYp1Y48USD2feQRF0an+lGcro6IQPv1GdKox2VdgR6lF0mOUPJr2TMvKNsumQ 4pxPNsM0b637YzL0mp/bt6t2C6YNaStn+PQ8gWCeOzBM2AJIUqliAP8eghEuAR2a 4kFGOOzLlzITdsg8Y7UNvTmiAMJVGm2XIwkOQA7pUR8LfkFeqyFqb846kR0HOK9w Ce01BAsgM1OFgbo/WELd8ZTTrh+B2eV8dPJhPVEO1tmcniJoeUg3Qj76IPAK34U0 q5FTs5iaEWk2/N+jkd8kAGnZrHhVTLl88aEcdak+eyLj/VtUuvHakZckteDTlYak k5ZJG2p/nxiY5NJPbDJJ =tf6a -----END PGP SIGNATURE-----