[Bug 199811] libnvpair has a sneaky dependency on libzfs

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Apr 30 13:39:24 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199811

            Bug ID: 199811
           Summary: libnvpair has a sneaky dependency on libzfs
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: avg at FreeBSD.org

/lib/libnvpair.so.2: Undefined symbol "aok"

Symbol aok is provided by lbzfs.so (and libzpool.so as well).
aok variable modifies behavior of assfail() function and ASSERT*() macros
provided for illumos contributed code.
ASSERT() is used in sys/cddl/contrib/opensolaris/common/nvpair/nvpair.c file
which shared by both the kernel nvlist / nvpair code and the userland library.

Given that lbzfs.so and libzpool.so both depend on libnvpair.so, but the latter
depends on neither, it might make sense to collapse 'aok' definition and move
it to libnvpair.
More elegant solution would be to introduce a library like "libillumos_compat"
that would have illumos compatibility definitions that are not specific to any
specialized library.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list