Bug 199809

Summary: libzfs_core has a sneaky dependency on libzfs
Product: Base System Reporter: Andriy Gapon <avg>
Component: binAssignee: Baptiste Daroussin <bapt>
Status: Closed FIXED    
Severity: Affects Only Me CC: bapt, bdrewery
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   

Description Andriy Gapon freebsd_committer 2015-04-30 13:25:27 UTC
/lib/libzfs_core.so.2: Undefined symbol "zcmd_ioctl_compat"

zcmd_ioctl_compat symbols is provided by libzfs.so.
libzfs.so has an explicit dependency on libzfs_core.so.

It seems that ioctl compatibility code (that allows older userland to interact with newer kernel-side ZFS) is to blame.
Comment 1 Andriy Gapon freebsd_committer 2015-06-25 11:03:13 UTC
The problem seems to be fixed by the following commit:

Not sure if MFC is expected.
Comment 2 Andriy Gapon freebsd_committer 2015-06-25 11:12:19 UTC
base r284409
Comment 3 Andriy Gapon freebsd_committer 2015-10-23 08:13:34 UTC
base r289807

base r289808
Comment 4 Bryan Drewery freebsd_committer 2015-10-23 20:24:43 UTC
libavl has the same problem:

~/svn/clean3 # tools/build/check-links.sh /usr/lib/libavl.so
checking if libc.so.7 is needed: yes... __stack_chk_fail
Unresolved symbol aok