Description of problem: Package cargo fails to build from source in Fedora Rawhide. Version-Release number of selected component (if applicable): 0.13.0-3.fc26 Steps to Reproduce: koji build --scratch f26 cargo-0.13.0-3.fc26.src.rpm Additional info: This package is tracked by Koschei. See: http://apps.fedoraproject.org/koschei/package/cargo command did not execute successfully, got: exit code: 1 --- stderr src/openssl_shim.c: In function 'DH_new_from_params': src/openssl_shim.c:132:7: error: dereferencing pointer to incomplete type 'DH {aka struct dh_st}' dh->p = p; ^~ src/openssl_shim.c: In function 'X509_get_extensions_shim': src/openssl_shim.c:143:13: error: dereferencing pointer to incomplete type 'X509 {aka struct x509_st}' return x->cert_info ? x->cert_info->extensions : NULL; ^~ src/openssl_shim.c:144:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ The rust-openssl crate is working on support for 1.1.0: https://github.com/sfackler/rust-openssl/issues/452 Then this will need to trickle through the other crate dependencies -- curl, libssh2, libgit2 -- and then cargo itself can finally be patched.
Upstream work on the openssl-sys crate is basically finished, but it hasn't been released yet, waiting for coordination with the popular dependent crates. In the meantime, a cargo rebuild with compat-openssl10-devel went fine: http://koji.fedoraproject.org/koji/buildinfo?buildID=811937
The upcoming release (rust 1.14 with cargo 0.15) will use the new rust-openssl, which now supports openssl 1.1.0. I confirmed it on my rust-beta copr: https://copr.fedorainfracloud.org/coprs/jistone/rust-beta/