You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As reported in rust-lang#69552, building this crate fails if zlib.h is not available on search path for the invoked compiler. This can obviously be worked around by setting DEP_Z_INCLUDE to the path containing said file, but (as the opener of that issue mentioned), the required include path would be available via pkg-config.
A few things:
It might be useful to check pkg-config in the case that DEP_Z_INCLUDE is unset, to avoid this issue in the future.
Better error reporting might be helpful, for when this crate is compiled as a dependency. I'm not overly familiar with how build.rs scripts work, but perhaps a test compile with an error message saying "Hey set DEP_Z_INCLUDE so libssh2-sys can find zlib.h" would be helpful.