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

Compiling errors from aws-lc-rs: "cannot find function, tuple struct or tuple variant..." #1125

Closed
yonas opened this issue Aug 12, 2024 · 1 comment

Comments

@yonas
Copy link

yonas commented Aug 12, 2024

$ cargo build --release
...
   Compiling aws-lc-rs v1.8.1
   Compiling rustls v0.23.12
error[E0425]: cannot find function, tuple struct or tuple variant `ERR_GET_LIB_RUST` in this scope
  --> /home/yonas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.20.1/src/lib.rs:74:14
   |
74 |     unsafe { ERR_GET_LIB_RUST(packed_error) }
   |              ^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `ERR_GET_REASON_RUST` in this scope
  --> /home/yonas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.20.1/src/lib.rs:80:14
   |
80 |     unsafe { ERR_GET_REASON_RUST(packed_error) }
   |              ^^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `ERR_GET_FUNC_RUST` in this scope
  --> /home/yonas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.20.1/src/lib.rs:86:14
   |
86 |     unsafe { ERR_GET_FUNC_RUST(packed_error) }
   |              ^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `BIO_ctrl` in this scope
  --> /home/yonas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.20.1/src/lib.rs:91:14
   |
91 |     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
  --> /home/yonas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.20.1/src/lib.rs:95:14
   |
95 |     unsafe { CRYPTO_library_init() }
   |              ^^^^^^^^^^^^^^^^^^^ not found in this scope

For more information about this error, try `rustc --explain E0425`.
The following warnings were emitted during compilation:

warning: aws-lc-sys@0.20.1: CMAKE environment variable set: cmake
warning: aws-lc-sys@0.20.1: Generating bindings - internal bindgen. Platform: x86_64-unknown-freebsd

error: could not compile `aws-lc-sys` (lib) due to 5 previous errors
warning: build failed, waiting for other jobs to finish...

commit: 33b913a
OS: FreeBSD 14

@yonas
Copy link
Author

yonas commented Aug 12, 2024

Closing as a duplicate of aws/aws-lc-rs#476

@yonas yonas closed this as completed Aug 12, 2024
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

1 participant