-----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 <avg_at_freebsd.org> > 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 <delphij_at_delphij.net> 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-----Received on Mon Apr 27 2015 - 23:17:15 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:57 UTC