Skip to content
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

aws-lc-sys --features ssl,bindgen failed to build #348

Closed
zh-jq opened this issue Feb 15, 2024 · 3 comments
Closed

aws-lc-sys --features ssl,bindgen failed to build #348

zh-jq opened this issue Feb 15, 2024 · 3 comments

Comments

@zh-jq
Copy link

zh-jq commented Feb 15, 2024

cargo build -p aws-lc-sys --features ssl,bindgen

failed to compile, the output:

error[E0425]: cannot find function, tuple struct or tuple variant `BIO_ctrl` in this scope
  --> aws-lc-sys/src/lib.rs:82:14
   |
82 |     unsafe { BIO_ctrl(b, BIO_CTRL_INFO, 0, pp.cast::<c_void>()) }
   |              ^^^^^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `CRYPTO_library_init` in this scope
  --> aws-lc-sys/src/lib.rs:86:14
   |
86 |     unsafe { CRYPTO_library_init() }
   |              ^^^^^^^^^^^^^^^^^^^ not found in this scope

For more information about this error, try `rustc --explain E0425`.
error: could not compile `aws-lc-sys` (lib) due to 2 previous errors

the function name in the bindgen.rs is

extern "C" {
    pub fn aws_lc_0_13_0_CRYPTO_library_init();
}

which is different than the pre-generated one:

extern "C" {
    #[link_name = "\u{1}aws_lc_0_13_0_CRYPTO_library_init"]
    pub fn CRYPTO_library_init();
}
@justsmth
Copy link
Contributor

Thanks for the report. I yanked v0.13.1 so we can investigate.

@justsmth
Copy link
Contributor

This was the result of a bad release of our sys-crates. The issue is addressed in this PR. Another release will be out soon.

@justsmth
Copy link
Contributor

We've released aws-ls-sys v0.13.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants