zfsonlinux/zfs — Issue #560: libnvpair: Undefined reference to xdr_control
Author: floppym
Created: 2012-02-04 21:53:31+00:00
State: open

Take the following program "foo.c":

int main()
{
nvlist_print();
}

gcc foo.c -lnvpair fails:

/lib/../lib64/libnvpair.so: undefined reference to `xdr_control'

gcc foo.c -lnvpair -lzfs works fine.

I think the xdr_control function needs to be moved to libnvpair.