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

cannot find function, tuple struct or tuple variant COMP_get_type in crate sys #5034

Closed
Reid00 opened this issue Jul 31, 2023 · 2 comments
Closed

Comments

@Reid00
Copy link
Contributor

Reid00 commented Jul 31, 2023

Summary

I try to add test from CPython3.11 #4564, but after clone the project, run test failed.
cargo run --release --features ssl -- -m test -v test_abc error with below message?

Details

error[E0425]: cannot find function, tuple struct or tuple variant `COMP_get_type` in crate `sys`
   --> stdlib/src/ssl.rs:990:37
    |
990 |             let typ = unsafe { sys::COMP_get_type(comp_method) };
    |                                     ^^^^^^^^^^^^^ not found in `sys`

error[E0599]: no method named `is_init_finished` found for reference `&SslRef` in the current scope
   --> stdlib/src/ssl.rs:948:30
    |
948 |             if !stream.ssl().is_init_finished() {
    |                              ^^^^^^^^^^^^^^^^ help: there is a method with a similar name: `finished`

error[E0599]: no method named `version` found for reference `&X509Ref` in the current scope
    --> stdlib/src/ssl.rs:1249:56
     |
1249 |             dict.set_item("version", vm.new_pyobj(cert.version()), vm)?;
     |                                                        ^^^^^^^ method not found in `&X509Ref`

Some errors have detailed explanations: E0425, E0599.
For more information about an error, try `rustc --explain E0425`.
error: could not compile `rustpython-stdlib` (lib) due to 3 previous errors
warning: build failed, waiting for other jobs to finish...
@youknowone
Copy link
Member

That must be came with openssl_sys crate and I have no idea why it happens only with this information.

If the test you are going to add is not related to ssl features (which usually does), you can cargo run --release -- -m test -v test_abc without --features=ssl.

@Reid00
Copy link
Contributor Author

Reid00 commented Aug 7, 2023

Got it, thanks.

@Reid00 Reid00 closed this as completed Aug 7, 2023
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