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

Build fails with 'Unable to detect OpenSSL version' #18

Closed
ghost opened this issue Mar 13, 2019 · 6 comments
Closed

Build fails with 'Unable to detect OpenSSL version' #18

ghost opened this issue Mar 13, 2019 · 6 comments

Comments

@ghost
Copy link

ghost commented Mar 13, 2019

Building on Debian, Cargo version is 1.32.0.

error: failed to run custom build command for `openssl v0.9.24`
process didn't exit successfully: `/home/username/Desktop/weechat-discord/target/release/build/openssl-1a53f5853bfeae35/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'Unable to detect OpenSSL version', /home/username/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-0.9.24/build.rs:16:14
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
   1: std::sys_common::backtrace::print
   2: std::panicking::default_hook::{{closure}}
   3: std::panicking::default_hook
   4: std::panicking::rust_panic_with_hook
   5: std::panicking::begin_panic
   6: build_script_build::main
   7: std::rt::lang_start::{{closure}}
   8: std::panicking::try::do_call
   9: __rust_maybe_catch_panic
  10: std::rt::lang_start_internal
  11: main
  12: __libc_start_main
  13: _start
@Noskcaj19
Copy link
Member

What version of openssl do you have installed?

@Noskcaj19
Copy link
Member

So, this looks like serenity-rs/serenity#394. Serenity depends on the 0.9 openssl crate which does not support OpenSSL 1.1.1. I'm not really sure what to do about, but it looks like there is an open pr and issue in serenity to fix it

@Noskcaj19
Copy link
Member

bf4ed92 bumps serenity to v0.6, which should work with newer versions of OpenSSL, can you see if it works now?

@Noskcaj19
Copy link
Member

Interesting, it looks like serenity either depends on nightly rust or a newer stable version. Try compiling on nightly because I know I am now using a few nightly features in weechat-discord.

@antoyo
Copy link

antoyo commented Apr 27, 2019

@VasyaTheWizard Assuming you installed cargo with rustup, just run the following command:

rustup default nightly

And I can confirm it does not build on the current stable version of Rust.
It compiles on nightly, though.

Edit: it now compiles on stable as well.

@Noskcaj19
Copy link
Member

Closing because this should be fixed

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