Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

fail to run due to "error: failed to run custom build command for openssl v0.9.24" #800

Closed
xieyuheng opened this issue Sep 25, 2018 · 7 comments
Labels
Z7-question Issue is a question. Closer should answer.

Comments

@xieyuheng
Copy link

  /home/xyh/play/rust/substrate (master)
cargo test --all
   Compiling openssl v0.9.24
error: failed to run custom build command for `openssl v0.9.24`
process didn't exit successfully: `/home/xyh/play/rust/substrate/target/debug/build/openssl-275cba95758aecaa/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'Unable to detect OpenSSL version', /home/xyh/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-0.9.24/build.rs:16:14
note: Run with `RUST_BACKTRACE=1` for a backtrace.


  101  /home/xyh/play/rust/substrate (master)
openssl version
OpenSSL 1.1.1  11 Sep 2018

but I saw that even this (old) version of the openssl crate should support OpenSSL 1.1.1
https://crates.io/crates/openssl/0.9.24

@tomaka
Copy link
Contributor

tomaka commented Sep 25, 2018

You can try following the instructions here: https://github.com/sfackler/rust-openssl/tree/master/openssl-sys#rust-openssl

@xieyuheng
Copy link
Author

the problem is my openssl version is 1.1.1
it is not supported by
0.9.x of openssl crate :
https://github.com/sfackler/rust-openssl/blob/0.9.x/openssl/build.rs#L16
the problem is fixed in newer version of openssl crate :
https://github.com/sfackler/rust-openssl/blob/master/openssl/build.rs#L33

@xieyuheng
Copy link
Author

xieyuheng commented Sep 25, 2018

I wish the following cargo-tree is helpful
http://fars.ee/TLed

@gavofyork gavofyork added the Z7-question Issue is a question. Closer should answer. label Sep 26, 2018
@gavofyork
Copy link
Member

i guess this is solved now, then. please re-open if not.

@xieyuheng
Copy link
Author

it is still "openssl 0.9.x" in the Cargo.lock of master branch

date
Thu Sep 27 19:22:56 CST 2018
  /home/xyh/sd0/lang/rust/substrate (master)
git pull
remote: Enumerating objects: 25, done.
remote: Counting objects: 100% (25/25), done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 25 (delta 15), reused 25 (delta 15), pack-reused 0
Unpacking objects: 100% (25/25), done.
From https://github.com/paritytech/substrate
   cbd3000a..2b478ed8  gav-testnet -> origin/gav-testnet
Already up to date.

  /home/xyh/sd0/lang/rust/substrate (master)
rg openssl
Cargo.lock
1546: "openssl 0.9.24 (registry+https://github.com/rust-lang/crates.io-index)",
1801:name = "openssl"
1809: "openssl-sys 0.9.33 (registry+https://github.com/rust-lang/crates.io-index)",
1813:name = "openssl-sys"
3988: "openssl 0.9.24 (registry+https://github.com/rust-lang/crates.io-index)",
4206:"checksum openssl 0.9.24 (registry+https://github.com/rust-lang/crates.io-index)" = "a3605c298474a3aa69de92d21139fb5e2a81688d308262359d85cdd0d12a7985"
4207:"checksum openssl-sys 0.9.33 (registry+https://github.com/rust-lang/crates.io-index)" = "d8abc04833dcedef24221a91852931df2f63e3369ae003134e70aff3645775cc"

@xieyuheng
Copy link
Author

by the way, I can not re-open an issue not closed by me,
because github have the following rules :

you can re-open your own issues if you closed them yourself
you cannot re-open your own issues if a repo collaborator closed them

@xieyuheng
Copy link
Author

I hope this can help ::

substrate v0.1.0 (file:///home/xyh/sd0/lang/rust/substrate)
└── node-cli v0.1.0 (file:///home/xyh/sd0/lang/rust/substrate/node/cli)
    ├── node-service v0.1.0 (file:///home/xyh/sd0/lang/rust/substrate/node/service)
    │   ├── node-consensus v0.1.0 (file:///home/xyh/sd0/lang/rust/substrate/node/consensus)
    │   │   ├── node-transaction-pool v0.1.0 (file:///home/xyh/sd0/lang/rust/substrate/node/transaction-pool)
    │   │   │   │   ├── substrate-telemetry v0.3.0 (file:///home/xyh/sd0/lang/rust/substrate/core/telemetry)
    │   │   │   │   │   └── ws v0.7.8
    │   │   │   │   │       ├── openssl v0.9.24
    │   ├── node-network v0.1.0 (file:///home/xyh/sd0/lang/rust/substrate/node/network)
    │   │   ├── substrate-network v0.1.0 (file:///home/xyh/sd0/lang/rust/substrate/core/network)
    │   │   │   ├── substrate-network-libp2p v0.1.0 (file:///home/xyh/sd0/lang/rust/substrate/core/network-libp2p)
    │   │   │   │   ├── libp2p v0.1.0 (https://github.com/tomaka/libp2p-rs?rev=8111062f0177fd7423626f2db9560273644a4c4d#8111062f)
    │   │   │   │   │   ├── libp2p-websocket v0.1.0 (https://github.com/tomaka/libp2p-rs?rev=8111062f0177fd7423626f2db9560273644a4c4d#81
    │   │   │   │   │   │   └── websocket v0.20.3 (https://github.com/tomaka/rust-websocket?branch=send#28ea5eb8)
    │   │   │   │   │   │       ├── native-tls v0.1.5
    │   │   │   │   │   │       │   └── openssl v0.9.24 (*)

lamafab pushed a commit to lamafab/substrate that referenced this issue Jun 16, 2020
* Final commit of tested westend config

* Minor update for validator 4's stake amount
liuchengxu pushed a commit to chainx-org/substrate that referenced this issue Aug 23, 2021
* Add MaxUnbondEntriesPerIntention

Close paritytech#681

* Add test

* Nits
liuchengxu added a commit to chainx-org/substrate that referenced this issue Aug 23, 2021
* Introduce Delta

* Add VoteWeightBase

* Upper bound of intention (paritytech#796)

* Add UpperBoundFactor

Close paritytech#672

* Check if the intention is nominating itself and add tests

* Add set_upper_bound_factor and build wasm

* Add LastRenominationOf (paritytech#794)

* Add LastRenominationOf

Close paritytech#692

* Fix renominate tests

* Build wasm

* genesis bitcoin (paritytech#799)

genesis runtime wasm

notice, do not copy wasm file into cli/src for develop!

* Add MaxUnbondEntriesPerIntention (paritytech#800)

* Add MaxUnbondEntriesPerIntention

Close paritytech#681

* Add test

* Nits

* Nit

* Pass tests

* Replace settle_amount() with settle_and_set_amount()

* Nit

* Build wasm

* Rename set_new_state to set_state

* Rebuild wasm
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Z7-question Issue is a question. Closer should answer.
Projects
None yet
Development

No branches or pull requests

3 participants