killercup / killercup/cargo-edit

cargo install cargo-edit failed.

Open
#826 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
3.5k
Forks
166
PR merge metrics
No merged PRs in 30d

Description

```shell
git checkout openssl-3.0.0
./Configure
make j8 && make install
cargo install cargo-edit
```

```shell
Compiling cargo-edit v0.11.6
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "-m64" "/tmp/rustcK7BMDI/symbols.o" "/tmp/cargo-installYOe2gk/release/deps/cargo_rm-5a9a0722b038c830.cargo_rm.95ec3325-cgu.0.rcgu.o" "/tmp/cargo-installYOe2gk/release/deps/cargo_rm-5a9a0722b038c830.cargo_rm.95ec3325-cgu.1.rcgu.o"

..........................................................................................

= note: /usr/bin/ld: /tmp/cargo-installYOe2gk/release/deps/liblibssh2_sys-b352d6f683bf7c5e.rlib(openssl.o): undefined reference to symbol 'EVP_PKEY_get_id@@OPENSSL_3.0.0'
/usr/bin/ld: /usr/local/lib64/libcrypto.so.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

= help: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
= note: use the `-l` flag to specify native libraries to link
= note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)

error: could not compile `cargo-edit` due to previous error
error: failed to compile `cargo-edit v0.11.6`, intermediate artifacts can be found at `/tmp/cargo-installYOe2gk`
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the reported `cargo install cargo-edit` command after the OpenSSL 3.0.0 setup and inspect the linker error shown in the issue. The report names no repository file or test; done would mean identifying a scoped fix and confirming that the installation completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.