I'm trying to look for libzfs for FreeBSD, but since I'm totally noob with FreeBSD the progress has been little bit slow. At the beginning I noticed that I already have shared objects of libzfs on my system, but header files are missing.
So then I found out that I can install libzfs by selecting distribution set "cddl" using sysinstall. That really bring me libzfs.h, but it is in very strane location (/usr/src/cddl/contrib/opensolaris/lib/libzfs/common/) and I think that packet didn't bring any library(.so, .a) files. I found Makefile from directory /usr/src/cddl/lib/libzfs and a bunch of .c files from elsewhere and though that maybe I need to compile the libzfs by myself after I have got the files using sysinstall. I tried to compile it, but it complained that file "pathnames.h" was missing. So I guess I'm missing some depedency.
At this point I though it is good idea to write here. Does anyone know what I'm doing wrong? If I'm missing some depedency, how should I know which one or is there some automatical system that would take care of these?
So then I found out that I can install libzfs by selecting distribution set "cddl" using sysinstall. That really bring me libzfs.h, but it is in very strane location (/usr/src/cddl/contrib/opensolaris/lib/libzfs/common/) and I think that packet didn't bring any library(.so, .a) files. I found Makefile from directory /usr/src/cddl/lib/libzfs and a bunch of .c files from elsewhere and though that maybe I need to compile the libzfs by myself after I have got the files using sysinstall. I tried to compile it, but it complained that file "pathnames.h" was missing. So I guess I'm missing some depedency.
At this point I though it is good idea to write here. Does anyone know what I'm doing wrong? If I'm missing some depedency, how should I know which one or is there some automatical system that would take care of these?