-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configure fails to find zfs.h on Ubuntu without --prefix=/usr #107
Comments
Okay, I did a quick stab at fixing this. Beforehand, the solution is to run A workaround mentioned in #90 was to set Unfortunately I have no idea why is there even a branch matching |
To future readers: there are further bugs in build system: if you apply the workaround with prefix, I've heard 0.8.x ZFS versins provide some python bindings of their own, so I think this is the way forward. For older versions apparently one have to fallback to parsing zfs commands output manually. |
@Hi-Angel FWIW, this is just a bug, I just tested it on Py 3.7 and it appears to work fine after modifying the Makefile to point at a py 3 venv. Probably rather than a configure script and a Makefile, the project could use setuptools-ish processes for building the extensions, just a matter of missing roundtuits likely. |
You can build py-libzfs for whatever Python version you like. We are targeting 3.8 at the moment, but you can use
The reason for this complexity is twofold: partly that libzfs is not supposed to be a public interface in ZFS, it's an internal private library that has an unstable and unclean API; and on top of that there are several different ZFS implementations on different platforms that put headers in different places, require different build flags, and have different function signatures within libzfs. |
I see, thanks
Doesn't |
No, there are a few configurations where ZFS isn't a package at all, it's part of the FreeBSD base system. There is no pkg-config in that case. |
This is a basically a copy of #90. OP closed their report due to finding a workaround, however the problem per se remains.
Steps to reproduce
Run the following commands:
Expected
configure passes successfully.
Actual
The text was updated successfully, but these errors were encountered: