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

Fails to install on Ubuntu 18.04 #129

Closed
VVelox opened this issue Mar 15, 2020 · 11 comments
Closed

Fails to install on Ubuntu 18.04 #129

VVelox opened this issue Mar 15, 2020 · 11 comments

Comments

@VVelox
Copy link

VVelox commented Mar 15, 2020

'cargo install cargo-update' results in the item below. libssh-dev, libssh2-1-dev, or libssh-gcrypt-dev being installed does not solve this.

          /tmp/cargo-installxakvhf/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(mac.o): In function `mac_method_hmac_sha2_512_hash':
          (.text+0x43e): undefined reference to `gcry_md_open'
          (.text+0x450): undefined reference to `gcry_md_setkey'
          (.text+0x462): undefined reference to `gcry_md_write'
          (.text+0x471): undefined reference to `gcry_md_write'
          (.text+0x48f): undefined reference to `gcry_md_write'
          (.text+0x499): undefined reference to `gcry_md_get_algo'
          (.text+0x4a0): undefined reference to `gcry_md_get_algo_dlen'
          (.text+0x4ae): undefined reference to `gcry_md_read'
          (.text+0x4c5): undefined reference to `gcry_md_close'
          /tmp/cargo-installxakvhf/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(mac.o): In function `mac_method_hmac_sha2_256_hash':
          (.text+0x53e): undefined reference to `gcry_md_open'
          (.text+0x550): undefined reference to `gcry_md_setkey'
          (.text+0x562): undefined reference to `gcry_md_write'
          (.text+0x571): undefined reference to `gcry_md_write'
          (.text+0x58f): undefined reference to `gcry_md_write'
          (.text+0x599): undefined reference to `gcry_md_get_algo'
          (.text+0x5a0): undefined reference to `gcry_md_get_algo_dlen'
          (.text+0x5ae): undefined reference to `gcry_md_read'
          (.text+0x5c5): undefined reference to `gcry_md_close'
          /tmp/cargo-installxakvhf/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(crypt.o): In function `crypt_dtor':
          (.text+0x1e): undefined reference to `gcry_cipher_close'
          collect2: error: ld returned 1 exit status

@fragrans
Copy link

some here.

@johanwiden
Copy link

Same issue in Ubuntu 19.10.

@nabijaczleweli
Copy link
Owner

nabijaczleweli commented Mar 15, 2020

Okay, so: here's my log in a clean chroot (debootstrap $REL $REL) for eoan and bionic (this Ubuntu site tells me that's "19.10" and "18.04.4 LTS", respectively):

root@eoan:/# cargo install cargo-update
    Updating crates.io index
  Installing cargo-update v3.0.0
   Compiling libc v0.2.67
   Compiling pkg-config v0.3.17
   Compiling autocfg v1.0.0
   Compiling maybe-uninit v2.0.0
   Compiling proc-macro2 v1.0.9
   Compiling cfg-if v0.1.10
   Compiling unicode-xid v0.2.0
   Compiling matches v0.1.8
   Compiling memchr v2.3.3
   Compiling bitflags v1.2.1
   Compiling serde v1.0.104
   Compiling syn v1.0.16
   Compiling log v0.4.8
   Compiling unicode-width v0.1.7
   Compiling embed-resource v1.3.2
   Compiling lazy_static v1.4.0
   Compiling percent-encoding v2.1.0
   Compiling regex-syntax v0.6.17
   Compiling strsim v0.8.0
   Compiling vec_map v0.8.1
   Compiling ansi_term v0.11.0
   Compiling semver-parser v0.7.0
   Compiling openssl-probe v0.1.2
   Compiling array_tool v1.0.3
   Compiling lazysort v0.2.1
   Compiling hex v0.4.2
   Compiling json v0.11.15
   Compiling unicode-bidi v0.3.4
   Compiling thread_local v1.0.1
   Compiling textwrap v0.11.0
   Compiling tabwriter v1.2.1
   Compiling cargo-update v3.0.0
   Compiling aho-corasick v0.7.10
   Compiling smallvec v0.6.13
   Compiling unicode-normalization v0.1.9
   Compiling quote v1.0.3
   Compiling jobserver v0.1.21
   Compiling dirs-sys v0.3.4
   Compiling atty v0.2.14
   Compiling clap v2.33.0
   Compiling dirs v2.0.2
   Compiling idna v0.2.0
   Compiling cc v1.0.50
   Compiling url v2.1.1
   Compiling regex v1.3.5
   Compiling libz-sys v1.0.25
   Compiling openssl-sys v0.9.54
   Compiling libssh2-sys v0.2.16
   Compiling libgit2-sys v0.10.0
   Compiling serde_derive v1.0.104
   Compiling toml v0.5.6
   Compiling semver v0.9.0
   Compiling git2 v0.11.0
    Finished release [optimized] target(s) in 52.44s
  Installing /root/.cargo/bin/cargo-install-update
  Installing /root/.cargo/bin/cargo-install-update-config
   Installed package `cargo-update v3.0.0` (executables `cargo-install-update`, `cargo-install-update-config`)
root@bionic:/# cargo install cargo-update
    Updating crates.io index
  Installing cargo-update v3.0.0
   Compiling libc v0.2.67
   Compiling pkg-config v0.3.17
   Compiling autocfg v1.0.0
   Compiling maybe-uninit v2.0.0
   Compiling proc-macro2 v1.0.9
   Compiling cfg-if v0.1.10
   Compiling memchr v2.3.3
   Compiling serde v1.0.104
   Compiling bitflags v1.2.1
   Compiling unicode-xid v0.2.0
   Compiling matches v0.1.8
   Compiling syn v1.0.16
   Compiling unicode-width v0.1.7
   Compiling log v0.4.8
   Compiling embed-resource v1.3.2
   Compiling lazy_static v1.4.0
   Compiling percent-encoding v2.1.0
   Compiling ansi_term v0.11.0
   Compiling semver-parser v0.7.0
   Compiling regex-syntax v0.6.17
   Compiling vec_map v0.8.1
   Compiling strsim v0.8.0
   Compiling openssl-probe v0.1.2
   Compiling hex v0.4.2
   Compiling json v0.11.15
   Compiling lazysort v0.2.1
   Compiling array_tool v1.0.3
   Compiling unicode-bidi v0.3.4
   Compiling thread_local v1.0.1
   Compiling textwrap v0.11.0
   Compiling tabwriter v1.2.1
   Compiling cargo-update v3.0.0
   Compiling aho-corasick v0.7.10
   Compiling smallvec v0.6.13
   Compiling unicode-normalization v0.1.9
   Compiling quote v1.0.3
   Compiling jobserver v0.1.21
   Compiling atty v0.2.14
   Compiling dirs-sys v0.3.4
   Compiling clap v2.33.0
   Compiling dirs v2.0.2
   Compiling cc v1.0.50
   Compiling idna v0.2.0
   Compiling url v2.1.1
   Compiling regex v1.3.5
   Compiling libz-sys v1.0.25
   Compiling openssl-sys v0.9.54
   Compiling libssh2-sys v0.2.16
   Compiling libgit2-sys v0.10.0
   Compiling serde_derive v1.0.104
   Compiling toml v0.5.6
   Compiling semver v0.9.0
   Compiling git2 v0.11.0
    Finished release [optimized] target(s) in 52.36s
  Installing /root/.cargo/bin/cargo-install-update
  Installing /root/.cargo/bin/cargo-install-update-config
   Installed package `cargo-update v3.0.0` (executables `cargo-install-update`, `cargo-install-update-config`)

And the versions of native library packages I installed (beyond build-essential and pkg-config):

root@eoan:/# apt list libss{h,l}{,-dev,*} --installed
Listing... Done
libssl-dev/eoan,now 1.1.1c-1ubuntu4 amd64 [installed]
libssl1.1/eoan,now 1.1.1c-1ubuntu4 amd64 [installed]
root@bionic:# apt list libss{h,l}{,-dev,*} --installed
Listing... Done
libssl-dev/bionic,now 1.1.0g-2ubuntu4 amd64 [installed]
libssl-doc/bionic,now 1.1.0g-2ubuntu4 all [installed,automatic]
libssl1.1/bionic,now 1.1.0g-2ubuntu4 amd64 [installed]

Most notably:

root@eoan:/# apt list --installed | grep ssh

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

root@eoan:/#
root@bionic:/# apt list --installed | grep ssh

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

root@bionic:/#

Ubuntu releases:

root@eoan:/$ cat /etc/os-release
NAME="Ubuntu"
VERSION="19.10 (Eoan Ermine)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 19.10"
VERSION_ID="19.10"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=eoan
UBUNTU_CODENAME=eoan
root@bionic:/$ cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

I have read through the issue trackers for our upstreams and didn't see anything related to this, so to further diagnose this (if it's anything beyond the usual ubuntu brokenness) I'm asking someone from here with a failing build to do apt update && apt full-upgrade, and post the output of those commands above (cargo install cargo-update, apt list libss{h,l}{,-dev,*} --installed, apt list --installed | grep ssh, cat /etc/os-release), to hopefully find a fix for this ASAP.

@johanwiden
Copy link

Ubuntu 19:10: The command "apt list --installed | grep ssh" listed a number of libraries.
I started to remove them one at a time, and tried installing cargo-update in between (I also discovered that I could no longer install version 2.5.3, which I had managed to install earlier, got the same ld errors), When I finally did "apt remove libssh2-1" I could install cargo-update version 3.0.0.

@nabijaczleweli
Copy link
Owner

nabijaczleweli commented Mar 15, 2020

Yes! Thanks to your comment I've managed to reproduce this:

debootstrap eoan eoan
mount --bind /proc eoan/proc
chroot eoan
sed -i 's/main/main universe/' /etc/apt/sources.list
apt update
apt install -y --no-install-{suggest,recommend}s pkg-config libssl-dev build-essential wget
bash <(wget -O- https://sh.rustup.rs) -y --profile=minimal
. ~/.cargo/env
cargo install cargo-update     # Works
apt install -y --no-install-{suggest,recommend}s libssh-dev libssh2-1-dev
cargo install -f cargo-update  # Doesn't link

Any other combination of {libssh-dev, libssh2-1-dev} ({}, {libssh-dev}, {libssh2-1-dev}) links as well.

Build output:

root@tarta:/# cargo install -f cargo-update  # Doesn't link
    Updating crates.io index
  Installing cargo-update v3.0.0
   Compiling libc v0.2.67
   Compiling pkg-config v0.3.17
   Compiling autocfg v1.0.0
   Compiling maybe-uninit v2.0.0
   Compiling proc-macro2 v1.0.9
   Compiling memchr v2.3.3
   Compiling unicode-xid v0.2.0
   Compiling serde v1.0.104
   Compiling matches v0.1.8
   Compiling cfg-if v0.1.10
   Compiling bitflags v1.2.1
   Compiling log v0.4.8
   Compiling syn v1.0.16
   Compiling unicode-width v0.1.7
   Compiling lazy_static v1.4.0
   Compiling percent-encoding v2.1.0
   Compiling embed-resource v1.3.2
   Compiling vec_map v0.8.1
   Compiling strsim v0.8.0
   Compiling regex-syntax v0.6.17
   Compiling semver-parser v0.7.0
   Compiling openssl-probe v0.1.2
   Compiling ansi_term v0.11.0
   Compiling json v0.11.15
   Compiling hex v0.4.2
   Compiling lazysort v0.2.1
   Compiling array_tool v1.0.3
   Compiling unicode-bidi v0.3.4
   Compiling thread_local v1.0.1
   Compiling textwrap v0.11.0
   Compiling tabwriter v1.2.1
   Compiling cargo-update v3.0.0
   Compiling aho-corasick v0.7.10
   Compiling smallvec v0.6.13
   Compiling unicode-normalization v0.1.9
   Compiling quote v1.0.3
   Compiling jobserver v0.1.21
   Compiling atty v0.2.14
   Compiling dirs-sys v0.3.4
   Compiling clap v2.33.0
   Compiling dirs v2.0.2
   Compiling cc v1.0.50
   Compiling idna v0.2.0
   Compiling url v2.1.1
   Compiling regex v1.3.5
   Compiling libz-sys v1.0.25
   Compiling openssl-sys v0.9.54
   Compiling libssh2-sys v0.2.16
   Compiling libgit2-sys v0.10.0
   Compiling serde_derive v1.0.104
   Compiling semver v0.9.0
   Compiling toml v0.5.6
   Compiling git2 v0.11.0
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/tmp/cargo-installTq5jkm/release/deps/cargo_install_update-915cd7e95fee5b36.cargo_install_update.524rel0p-cgu.0.rcgu.o" "/tmp/cargo-installTq5jkm/release/deps/cargo_install_update-915cd7e95fee5b36.cargo_install_update.524rel0p-cgu.1.rcgu.o" "/tmp/cargo-installTq5jkm/release/deps/cargo_install_update-915cd7e95fee5b36.cargo_install_update.524rel0p-cgu.10.rcgu.o" "/tmp/cargo-installTq5jkm/release/deps/cargo_install_update-915cd7e95fee5b36.cargo_install_update.524rel0p-cgu.11.rcgu.o" "/tmp/cargo-installTq5jkm/release/deps/cargo_install_update-915cd7e95fee5b36.cargo_install_update.524rel0p-cgu.12.rcgu.o" "/tmp/cargo-installTq5jkm/release/deps/cargo_install_update-915cd7e95fee5b36.cargo_install_update.524rel0p-cgu.13.rcgu.o" "/tmp/cargo-installTq5jkm/release/deps/cargo_install_update-915cd7e95fee5b36.cargo_install_update.524rel0p-cgu.14.rcgu.o" "/tmp/cargo-installTq5jkm/release/deps/cargo_install_update-915cd7e95fee5b36.cargo_install_update.524rel0p-cgu.15.rcgu.o" "/tmp/cargo-installTq5jkm/release/deps/cargo_install_update-915cd7e95fee5b36.cargo_install_update.524rel0p-cgu.2.rcgu.o" "/tmp/cargo-installTq5jkm/release/deps/cargo_install_update-915cd7e95fee5b36.cargo_install_update.524rel0p-cgu.3.rcgu.o" "/tmp/cargo-installTq5jkm/release/deps/cargo_install_update-915cd7e95fee5b36.cargo_install_update.524rel0p-cgu.4.rcgu.o" "/tmp/cargo-installTq5jkm/release/deps/cargo_install_update-915cd7e95fee5b36.cargo_install_update.524rel0p-cgu.5.rcgu.o" "/tmp/cargo-installTq5jkm/release/deps/cargo_install_update-915cd7e95fee5b36.cargo_install_update.524rel0p-cgu.6.rcgu.o" "/tmp/cargo-installTq5jkm/release/deps/cargo_install_update-915cd7e95fee5b36.cargo_install_update.524rel0p-cgu.7.rcgu.o" "/tmp/cargo-installTq5jkm/release/deps/cargo_install_update-915cd7e95fee5b36.cargo_install_update.524rel0p-cgu.8.rcgu.o" "/tmp/cargo-installTq5jkm/release/deps/cargo_install_update-915cd7e95fee5b36.cargo_install_update.524rel0p-cgu.9.rcgu.o" "-o" "/tmp/cargo-installTq5jkm/release/deps/cargo_install_update-915cd7e95fee5b36" "/tmp/cargo-installTq5jkm/release/deps/cargo_install_update-915cd7e95fee5b36.12keu1ojtj4u544w.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-Wl,-O1" "-nodefaultlibs" "-L" "/tmp/cargo-installTq5jkm/release/deps" "-L" "/tmp/cargo-installTq5jkm/release/build/libgit2-sys-a275490a66db30f7/out/build" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/tmp/cargo-installTq5jkm/release/build/libssh2-sys-0a9b99d869ad95fd/out/build" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/tmp/cargo-installTq5jkm/release/deps/liblazysort-019c3593fc631562.rlib" "/tmp/cargo-installTq5jkm/release/deps/libtabwriter-57471f841a2c954f.rlib" "/tmp/cargo-installTq5jkm/release/deps/libcargo_update-553a19ca3cf22274.rlib" "/tmp/cargo-installTq5jkm/release/deps/libhex-9885bf430244fcab.rlib" "/tmp/cargo-installTq5jkm/release/deps/libjson-acbaaeb07191dadb.rlib" "/tmp/cargo-installTq5jkm/release/deps/libtoml-ec6beeeb3eb2ea95.rlib" "/tmp/cargo-installTq5jkm/release/deps/libdirs-dc55c397ca9cdbf9.rlib" "/tmp/cargo-installTq5jkm/release/deps/libdirs_sys-64ae61990d38300b.rlib" "/tmp/cargo-installTq5jkm/release/deps/libclap-50e6939333990818.rlib" "/tmp/cargo-installTq5jkm/release/deps/libvec_map-9e8b251f80bfb5dc.rlib" "/tmp/cargo-installTq5jkm/release/deps/libtextwrap-b81bbef39a510fac.rlib" "/tmp/cargo-installTq5jkm/release/deps/libunicode_width-8ea4e47463abb2ce.rlib" "/tmp/cargo-installTq5jkm/release/deps/libstrsim-7515e8e85cdc22cb.rlib" "/tmp/cargo-installTq5jkm/release/deps/libatty-d6177a1a2d9edd44.rlib" "/tmp/cargo-installTq5jkm/release/deps/libansi_term-66910f7037323d7c.rlib" "/tmp/cargo-installTq5jkm/release/deps/libgit2-69164056153a7c05.rlib" "/tmp/cargo-installTq5jkm/release/deps/libopenssl_probe-bac88af65e73e297.rlib" "/tmp/cargo-installTq5jkm/release/deps/liburl-b9782f673bc586d2.rlib" "/tmp/cargo-installTq5jkm/release/deps/libpercent_encoding-1f6a22ab3d3f335f.rlib" "/tmp/cargo-installTq5jkm/release/deps/libidna-e829566e4cb9e94f.rlib" "/tmp/cargo-installTq5jkm/release/deps/libunicode_normalization-060018e40f789d8a.rlib" "/tmp/cargo-installTq5jkm/release/deps/libsmallvec-be7538dc339bd268.rlib" "/tmp/cargo-installTq5jkm/release/deps/libmaybe_uninit-362f926b26b2b66e.rlib" "/tmp/cargo-installTq5jkm/release/deps/libunicode_bidi-c68a63efdf856339.rlib" "/tmp/cargo-installTq5jkm/release/deps/libmatches-b6fb7335c7f8f112.rlib" "/tmp/cargo-installTq5jkm/release/deps/liblog-5df94976745ffbe1.rlib" "/tmp/cargo-installTq5jkm/release/deps/libcfg_if-ca69715010a08b95.rlib" "/tmp/cargo-installTq5jkm/release/deps/liblibgit2_sys-9bed633bb3c1f80e.rlib" "/tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib" "/tmp/cargo-installTq5jkm/release/deps/libopenssl_sys-3b309424470218d6.rlib" "/tmp/cargo-installTq5jkm/release/deps/liblibz_sys-023155bca0763a03.rlib" "/tmp/cargo-installTq5jkm/release/deps/liblibc-259ac4f060cb78d9.rlib" "/tmp/cargo-installTq5jkm/release/deps/libbitflags-477724e7e0289424.rlib" "/tmp/cargo-installTq5jkm/release/deps/libregex-9c5a3d94b625142c.rlib" "/tmp/cargo-installTq5jkm/release/deps/libthread_local-9a8f838ade3d691c.rlib" "/tmp/cargo-installTq5jkm/release/deps/libregex_syntax-a114d3637e49b99f.rlib" "/tmp/cargo-installTq5jkm/release/deps/libaho_corasick-e2302d359b0f9c17.rlib" "/tmp/cargo-installTq5jkm/release/deps/libmemchr-f246873024de842f.rlib" "/tmp/cargo-installTq5jkm/release/deps/libsemver-e5d839bf77992b65.rlib" "/tmp/cargo-installTq5jkm/release/deps/libserde-ff9fb3a218ef04a5.rlib" "/tmp/cargo-installTq5jkm/release/deps/libsemver_parser-7f4e1a8a960ab571.rlib" "/tmp/cargo-installTq5jkm/release/deps/libarray_tool-2c57c13d0e42c003.rlib" "/tmp/cargo-installTq5jkm/release/deps/liblazy_static-0929cad8e74482bf.rlib" "-Wl,--start-group" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c32b051c3aafd36c.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-eabf8b29c0a244dd.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-5c336cc1b5ec2048.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-c7631f762b1ba6d9.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace-db0f6c539591c951.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-32c2dc6fbc292c9c.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-84e9c510dc249620.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-13bc027534de0b4c.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-b3c13ecda1794c6c.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-72dc11de859645e9.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-a78b04f112feb31a.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-29469f6c53ac35f8.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-0eb3c513c640c4a6.rlib" "-Wl,--end-group" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-0b278345638bce90.rlib" "-Wl,-Bdynamic" "-lz" "-lssl" "-lcrypto" "-lz" "-lutil" "-ldl" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil"
  = note: /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(channel.o): in function `libssh2_channel_x11_req_ex':
          (.text+0x1bf3): undefined reference to `gcry_randomize'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(hostkey.o): in function `hostkey_method_ssh_rsa_dtor':
          (.text+0xc): undefined reference to `gcry_sexp_release'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(hostkey.o): in function `hostkey_method_ssh_dss_signv':
          (.text+0x7f): undefined reference to `gcry_md_open'
          /usr/bin/ld: (.text+0xa9): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0xba): undefined reference to `gcry_md_read'
          /usr/bin/ld: (.text+0xd4): undefined reference to `gcry_md_close'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(hostkey.o): in function `hostkey_method_ssh_dss_initPEMFromMemory':
          (.text+0x168): undefined reference to `gcry_sexp_release'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(hostkey.o): in function `hostkey_method_ssh_dss_initPEM':
          (.text+0x1f3): undefined reference to `gcry_sexp_release'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(hostkey.o): in function `hostkey_method_ssh_dss_init':
          (.text+0x281): undefined reference to `gcry_sexp_release'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(hostkey.o): in function `hostkey_method_ssh_rsa_signv':
          (.text+0x3c1): undefined reference to `gcry_md_open'
          /usr/bin/ld: (.text+0x3f1): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x402): undefined reference to `gcry_md_read'
          /usr/bin/ld: (.text+0x41c): undefined reference to `gcry_md_close'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(hostkey.o): in function `hostkey_method_ssh_rsa_initPEMFromMemory':
          (.text+0x4c8): undefined reference to `gcry_sexp_release'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(hostkey.o): in function `hostkey_method_ssh_rsa_initPEM':
          (.text+0x553): undefined reference to `gcry_sexp_release'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(hostkey.o): in function `hostkey_method_ssh_rsa_init':
          (.text+0x5dd): undefined reference to `gcry_sexp_release'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(hostkey.o): in function `hostkey_method_ssh_dss_dtor':
          (.text+0x6ec): undefined reference to `gcry_sexp_release'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(transport.o): in function `_libssh2_transport_send':
          (.text+0xa49): undefined reference to `gcry_randomize'
          /usr/bin/ld: (.text+0xc51): undefined reference to `gcry_randomize'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(libgcrypt.o): in function `_libssh2_rsa_new':
          (.text+0x48): undefined reference to `gcry_sexp_build'
          /usr/bin/ld: (.text+0x77): undefined reference to `gcry_sexp_build'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(libgcrypt.o): in function `_libssh2_rsa_sha1_verify':
          (.text+0xcb): undefined reference to `gcry_md_hash_buffer'
          /usr/bin/ld: (.text+0xe8): undefined reference to `gcry_sexp_build'
          /usr/bin/ld: (.text+0x103): undefined reference to `gcry_sexp_build'
          /usr/bin/ld: (.text+0x118): undefined reference to `gcry_pk_verify'
          /usr/bin/ld: (.text+0x123): undefined reference to `gcry_sexp_release'
          /usr/bin/ld: (.text+0x12d): undefined reference to `gcry_sexp_release'
          /usr/bin/ld: (.text+0x166): undefined reference to `gcry_sexp_release'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(libgcrypt.o): in function `_libssh2_dsa_new':
          (.text+0x1cc): undefined reference to `gcry_sexp_build'
          /usr/bin/ld: (.text+0x203): undefined reference to `gcry_sexp_build'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(libgcrypt.o): in function `_libssh2_rsa_sha1_sign':
          (.text+0x73f): undefined reference to `gcry_sexp_build'
          /usr/bin/ld: (.text+0x757): undefined reference to `gcry_pk_sign'
          /usr/bin/ld: (.text+0x763): undefined reference to `gcry_sexp_release'
          /usr/bin/ld: (.text+0x77d): undefined reference to `gcry_sexp_find_token'
          /usr/bin/ld: (.text+0x79d): undefined reference to `gcry_sexp_nth_data'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(libgcrypt.o): in function `_libssh2_dsa_sha1_sign':
          (.text+0x87c): undefined reference to `gcry_sexp_build'
          /usr/bin/ld: (.text+0x896): undefined reference to `gcry_pk_sign'
          /usr/bin/ld: (.text+0x8a2): undefined reference to `gcry_sexp_release'
          /usr/bin/ld: (.text+0x8d0): undefined reference to `gcry_sexp_find_token'
          /usr/bin/ld: (.text+0x8f3): undefined reference to `gcry_sexp_nth_data'
          /usr/bin/ld: (.text+0x937): undefined reference to `gcry_sexp_release'
          /usr/bin/ld: (.text+0x946): undefined reference to `gcry_sexp_release'
          /usr/bin/ld: (.text+0x985): undefined reference to `gcry_sexp_release'
          /usr/bin/ld: (.text+0x998): undefined reference to `gcry_sexp_find_token'
          /usr/bin/ld: (.text+0x9b2): undefined reference to `gcry_sexp_nth_data'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(libgcrypt.o): in function `_libssh2_dsa_sha1_verify':
          (.text+0xa62): undefined reference to `gcry_md_hash_buffer'
          /usr/bin/ld: (.text+0xa84): undefined reference to `gcry_sexp_build'
          /usr/bin/ld: (.text+0xab2): undefined reference to `gcry_sexp_build'
          /usr/bin/ld: (.text+0xac9): undefined reference to `gcry_pk_verify'
          /usr/bin/ld: (.text+0xad4): undefined reference to `gcry_sexp_release'
          /usr/bin/ld: (.text+0xade): undefined reference to `gcry_sexp_release'
          /usr/bin/ld: (.text+0xb16): undefined reference to `gcry_sexp_release'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(libgcrypt.o): in function `_libssh2_cipher_init':
          (.text+0xb5a): undefined reference to `gcry_cipher_get_algo_keylen'
          /usr/bin/ld: (.text+0xb6c): undefined reference to `gcry_cipher_open'
          /usr/bin/ld: (.text+0xb7f): undefined reference to `gcry_cipher_setkey'
          /usr/bin/ld: (.text+0xba4): undefined reference to `gcry_cipher_get_algo_blklen'
          /usr/bin/ld: (.text+0xbb8): undefined reference to `gcry_cipher_setiv'
          /usr/bin/ld: (.text+0xbc5): undefined reference to `gcry_cipher_close'
          /usr/bin/ld: (.text+0xbd1): undefined reference to `gcry_cipher_setctr'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(libgcrypt.o): in function `_libssh2_cipher_crypt':
          (.text+0xc02): undefined reference to `gcry_cipher_encrypt'
          /usr/bin/ld: (.text+0xc11): undefined reference to `gcry_cipher_decrypt'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(global.o): in function `libssh2_init':
          (.text+0x38): undefined reference to `gcry_control'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(kex.o): in function `diffie_hellman_sha1':
          (.text+0x10b): undefined reference to `gcry_mpi_release'
          /usr/bin/ld: (.text+0x11c): undefined reference to `gcry_mpi_release'
          /usr/bin/ld: (.text+0x12d): undefined reference to `gcry_mpi_release'
          /usr/bin/ld: (.text+0x141): undefined reference to `gcry_mpi_release'
          /usr/bin/ld: (.text+0x1fd): undefined reference to `gcry_mpi_new'
          /usr/bin/ld: (.text+0x208): undefined reference to `gcry_mpi_new'
          /usr/bin/ld: (.text+0x21b): undefined reference to `gcry_mpi_new'
          /usr/bin/ld: (.text+0x244): undefined reference to `gcry_mpi_randomize'
          /usr/bin/ld: (.text+0x257): undefined reference to `gcry_mpi_powm'
          /usr/bin/ld: (.text+0x260): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: (.text+0x26c): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: (.text+0x28a): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: (.text+0x2c9): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: (.text+0x2e2): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(kex.o):(.text+0x2ee): more undefined references to `gcry_mpi_get_nbits' follow
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(kex.o): in function `diffie_hellman_sha1':
          (.text+0x315): undefined reference to `gcry_mpi_print'
          /usr/bin/ld: (.text+0x43d): undefined reference to `gcry_md_open'
          /usr/bin/ld: (.text+0x45e): undefined reference to `gcry_md_open'
          /usr/bin/ld: (.text+0x4df): undefined reference to `gcry_mpi_scan'
          /usr/bin/ld: (.text+0x524): undefined reference to `gcry_mpi_powm'
          /usr/bin/ld: (.text+0x530): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: (.text+0x53f): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: (.text+0x563): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: (.text+0x5a6): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: (.text+0x5bd): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(kex.o):(.text+0x5cc): more undefined references to `gcry_mpi_get_nbits' follow
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(kex.o): in function `diffie_hellman_sha1':
          (.text+0x5f5): undefined reference to `gcry_mpi_print'
          /usr/bin/ld: (.text+0x611): undefined reference to `gcry_md_open'
          /usr/bin/ld: (.text+0x643): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x663): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x68c): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x6ab): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x6cb): undefined reference to `gcry_md_write'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(kex.o):(.text+0x6e3): more undefined references to `gcry_md_write' follow
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(kex.o): in function `diffie_hellman_sha1':
          (.text+0x7ee): undefined reference to `gcry_md_read'
          /usr/bin/ld: (.text+0x808): undefined reference to `gcry_md_close'
          /usr/bin/ld: (.text+0x964): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x970): undefined reference to `gcry_md_read'
          /usr/bin/ld: (.text+0x990): undefined reference to `gcry_md_close'
          /usr/bin/ld: (.text+0x9b3): undefined reference to `gcry_md_open'
          /usr/bin/ld: (.text+0x9cb): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x9dd): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x9fc): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0xa13): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0xa84): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0xa90): undefined reference to `gcry_md_read'
          /usr/bin/ld: (.text+0xaaf): undefined reference to `gcry_md_close'
          /usr/bin/ld: (.text+0xad2): undefined reference to `gcry_md_open'
          /usr/bin/ld: (.text+0xaea): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0xafd): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0xb1c): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0xb33): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0xb55): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: (.text+0xb61): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: (.text+0xb88): undefined reference to `gcry_mpi_print'
          /usr/bin/ld: (.text+0xcbc): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0xcc8): undefined reference to `gcry_md_read'
          /usr/bin/ld: (.text+0xce8): undefined reference to `gcry_md_close'
          /usr/bin/ld: (.text+0xd0b): undefined reference to `gcry_md_open'
          /usr/bin/ld: (.text+0xd23): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0xd35): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0xd54): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0xd6b): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0xdab): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0xdb7): undefined reference to `gcry_md_read'
          /usr/bin/ld: (.text+0xdcc): undefined reference to `gcry_md_close'
          /usr/bin/ld: (.text+0xecc): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0xed8): undefined reference to `gcry_md_read'
          /usr/bin/ld: (.text+0xef8): undefined reference to `gcry_md_close'
          /usr/bin/ld: (.text+0xf1b): undefined reference to `gcry_md_open'
          /usr/bin/ld: (.text+0xf33): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0xf45): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0xf64): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0xf7b): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x103c): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x1048): undefined reference to `gcry_md_read'
          /usr/bin/ld: (.text+0x1067): undefined reference to `gcry_md_close'
          /usr/bin/ld: (.text+0x108a): undefined reference to `gcry_md_open'
          /usr/bin/ld: (.text+0x10a2): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x10b5): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x10d4): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x10eb): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x11dc): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x11e8): undefined reference to `gcry_md_read'
          /usr/bin/ld: (.text+0x1208): undefined reference to `gcry_md_close'
          /usr/bin/ld: (.text+0x122b): undefined reference to `gcry_md_open'
          /usr/bin/ld: (.text+0x1243): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x1255): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x1274): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x128b): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x1443): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x144f): undefined reference to `gcry_md_read'
          /usr/bin/ld: (.text+0x146d): undefined reference to `gcry_md_close'
          /usr/bin/ld: (.text+0x14f6): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: (.text+0x1505): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: (.text+0x152e): undefined reference to `gcry_mpi_print'
          /usr/bin/ld: (.text+0x15ba): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x15d0): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x1648): undefined reference to `gcry_md_write'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(kex.o): in function `kex_method_diffie_hellman_group_exchange_sha1_key_exchange':
          (.text+0x16e4): undefined reference to `gcry_mpi_release'
          /usr/bin/ld: (.text+0x16fb): undefined reference to `gcry_mpi_release'
          /usr/bin/ld: (.text+0x1823): undefined reference to `gcry_mpi_scan'
          /usr/bin/ld: (.text+0x1846): undefined reference to `gcry_mpi_scan'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(kex.o): in function `kex_method_diffie_hellman_group1_sha1_key_exchange':
          (.text+0x1a13): undefined reference to `gcry_mpi_release'
          /usr/bin/ld: (.text+0x1a2a): undefined reference to `gcry_mpi_release'
          /usr/bin/ld: (.text+0x1a5e): undefined reference to `gcry_mpi_new'
          /usr/bin/ld: (.text+0x1a72): undefined reference to `gcry_mpi_set_ui'
          /usr/bin/ld: (.text+0x1a92): undefined reference to `gcry_mpi_scan'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(kex.o): in function `kex_method_diffie_hellman_group14_sha1_key_exchange':
          (.text+0x1b19): undefined reference to `gcry_mpi_release'
          /usr/bin/ld: (.text+0x1b30): undefined reference to `gcry_mpi_release'
          /usr/bin/ld: (.text+0x1b5e): undefined reference to `gcry_mpi_new'
          /usr/bin/ld: (.text+0x1b72): undefined reference to `gcry_mpi_set_ui'
          /usr/bin/ld: (.text+0x1b92): undefined reference to `gcry_mpi_scan'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(kex.o): in function `kex_method_diffie_hellman_group_exchange_sha256_key_exchange':
          (.text+0x21ef): undefined reference to `gcry_mpi_release'
          /usr/bin/ld: (.text+0x2206): undefined reference to `gcry_mpi_release'
          /usr/bin/ld: (.text+0x2243): undefined reference to `gcry_mpi_new'
          /usr/bin/ld: (.text+0x2251): undefined reference to `gcry_mpi_new'
          /usr/bin/ld: (.text+0x2350): undefined reference to `gcry_mpi_scan'
          /usr/bin/ld: (.text+0x2372): undefined reference to `gcry_mpi_scan'
          /usr/bin/ld: (.text+0x23d4): undefined reference to `gcry_mpi_release'
          /usr/bin/ld: (.text+0x23eb): undefined reference to `gcry_mpi_release'
          /usr/bin/ld: (.text+0x2402): undefined reference to `gcry_mpi_release'
          /usr/bin/ld: (.text+0x2419): undefined reference to `gcry_mpi_release'
          /usr/bin/ld: (.text+0x24cd): undefined reference to `gcry_mpi_new'
          /usr/bin/ld: (.text+0x24db): undefined reference to `gcry_mpi_new'
          /usr/bin/ld: (.text+0x24f4): undefined reference to `gcry_mpi_new'
          /usr/bin/ld: (.text+0x251d): undefined reference to `gcry_mpi_randomize'
          /usr/bin/ld: (.text+0x2536): undefined reference to `gcry_mpi_powm'
          /usr/bin/ld: (.text+0x2542): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: (.text+0x2551): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: (.text+0x2572): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: (.text+0x25bc): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: (.text+0x25d3): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(kex.o):(.text+0x25e2): more undefined references to `gcry_mpi_get_nbits' follow
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(kex.o): in function `kex_method_diffie_hellman_group_exchange_sha256_key_exchange':
          (.text+0x2608): undefined reference to `gcry_mpi_print'
          /usr/bin/ld: (.text+0x2734): undefined reference to `gcry_md_open'
          /usr/bin/ld: (.text+0x2755): undefined reference to `gcry_md_open'
          /usr/bin/ld: (.text+0x27d9): undefined reference to `gcry_mpi_scan'
          /usr/bin/ld: (.text+0x2824): undefined reference to `gcry_mpi_powm'
          /usr/bin/ld: (.text+0x2830): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: (.text+0x283f): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: (.text+0x2863): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: (.text+0x28a6): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: (.text+0x28bd): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(kex.o):(.text+0x28cc): more undefined references to `gcry_mpi_get_nbits' follow
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(kex.o): in function `kex_method_diffie_hellman_group_exchange_sha256_key_exchange':
          (.text+0x28f4): undefined reference to `gcry_mpi_print'
          /usr/bin/ld: (.text+0x2910): undefined reference to `gcry_md_open'
          /usr/bin/ld: (.text+0x2942): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x2962): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x298b): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x29aa): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x29ca): undefined reference to `gcry_md_write'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(kex.o):(.text+0x29e2): more undefined references to `gcry_md_write' follow
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(kex.o): in function `kex_method_diffie_hellman_group_exchange_sha256_key_exchange':
          (.text+0x2b1a): undefined reference to `gcry_md_read'
          /usr/bin/ld: (.text+0x2b37): undefined reference to `gcry_md_close'
          /usr/bin/ld: (.text+0x2c94): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x2ca0): undefined reference to `gcry_md_read'
          /usr/bin/ld: (.text+0x2cc3): undefined reference to `gcry_md_close'
          /usr/bin/ld: (.text+0x2ce6): undefined reference to `gcry_md_open'
          /usr/bin/ld: (.text+0x2cfe): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x2d10): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x2d2f): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x2d46): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x2df3): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: (.text+0x2e02): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: (.text+0x2e28): undefined reference to `gcry_mpi_print'
          /usr/bin/ld: (.text+0x2f2c): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x2f38): undefined reference to `gcry_md_read'
          /usr/bin/ld: (.text+0x2f5b): undefined reference to `gcry_md_close'
          /usr/bin/ld: (.text+0x2f7e): undefined reference to `gcry_md_open'
          /usr/bin/ld: (.text+0x2f96): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x2fa8): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x2fc7): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x2fde): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x3036): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x3042): undefined reference to `gcry_md_read'
          /usr/bin/ld: (.text+0x3069): undefined reference to `gcry_md_close'
          /usr/bin/ld: (.text+0x308c): undefined reference to `gcry_md_open'
          /usr/bin/ld: (.text+0x30a4): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x30b6): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x30d5): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x30ec): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x322c): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x3238): undefined reference to `gcry_md_read'
          /usr/bin/ld: (.text+0x325b): undefined reference to `gcry_md_close'
          /usr/bin/ld: (.text+0x327e): undefined reference to `gcry_md_open'
          /usr/bin/ld: (.text+0x3296): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x32a8): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x32c7): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x32de): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x334c): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x3358): undefined reference to `gcry_md_read'
          /usr/bin/ld: (.text+0x337a): undefined reference to `gcry_md_close'
          /usr/bin/ld: (.text+0x339d): undefined reference to `gcry_md_open'
          /usr/bin/ld: (.text+0x33b5): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x33c9): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x33e8): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x33ff): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x34ec): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x34f8): undefined reference to `gcry_md_read'
          /usr/bin/ld: (.text+0x351b): undefined reference to `gcry_md_close'
          /usr/bin/ld: (.text+0x353e): undefined reference to `gcry_md_open'
          /usr/bin/ld: (.text+0x3556): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x3568): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x3587): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x359e): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x3735): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x3741): undefined reference to `gcry_md_read'
          /usr/bin/ld: (.text+0x375f): undefined reference to `gcry_md_close'
          /usr/bin/ld: (.text+0x3785): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x3791): undefined reference to `gcry_md_read'
          /usr/bin/ld: (.text+0x37a6): undefined reference to `gcry_md_close'
          /usr/bin/ld: (.text+0x3821): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: (.text+0x3830): undefined reference to `gcry_mpi_get_nbits'
          /usr/bin/ld: (.text+0x3858): undefined reference to `gcry_mpi_print'
          /usr/bin/ld: (.text+0x38d2): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x38e8): undefined reference to `gcry_md_write'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(kex.o): in function `_libssh2_kex_exchange':
          (.text+0x3ca1): undefined reference to `gcry_randomize'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(mac.o): in function `mac_method_hmac_ripemd160_hash':
          (.text+0x92): undefined reference to `gcry_md_open'
          /usr/bin/ld: (.text+0xa4): undefined reference to `gcry_md_setkey'
          /usr/bin/ld: (.text+0xb6): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0xc5): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0xdc): undefined reference to `gcry_md_get_algo'
          /usr/bin/ld: (.text+0xe3): undefined reference to `gcry_md_get_algo_dlen'
          /usr/bin/ld: (.text+0xf1): undefined reference to `gcry_md_read'
          /usr/bin/ld: (.text+0x108): undefined reference to `gcry_md_close'
          /usr/bin/ld: (.text+0x13d): undefined reference to `gcry_md_write'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(mac.o): in function `mac_method_hmac_md5_hash':
          (.text+0x1a2): undefined reference to `gcry_md_open'
          /usr/bin/ld: (.text+0x1b4): undefined reference to `gcry_md_setkey'
          /usr/bin/ld: (.text+0x1c6): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x1d5): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x1ec): undefined reference to `gcry_md_get_algo'
          /usr/bin/ld: (.text+0x1f3): undefined reference to `gcry_md_get_algo_dlen'
          /usr/bin/ld: (.text+0x201): undefined reference to `gcry_md_read'
          /usr/bin/ld: (.text+0x218): undefined reference to `gcry_md_close'
          /usr/bin/ld: (.text+0x24d): undefined reference to `gcry_md_write'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(mac.o): in function `mac_method_hmac_sha1_hash':
          (.text+0x312): undefined reference to `gcry_md_open'
          /usr/bin/ld: (.text+0x324): undefined reference to `gcry_md_setkey'
          /usr/bin/ld: (.text+0x336): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x345): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x35c): undefined reference to `gcry_md_get_algo'
          /usr/bin/ld: (.text+0x363): undefined reference to `gcry_md_get_algo_dlen'
          /usr/bin/ld: (.text+0x371): undefined reference to `gcry_md_read'
          /usr/bin/ld: (.text+0x388): undefined reference to `gcry_md_close'
          /usr/bin/ld: (.text+0x3bd): undefined reference to `gcry_md_write'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(mac.o): in function `mac_method_hmac_sha2_512_hash':
          (.text+0x482): undefined reference to `gcry_md_open'
          /usr/bin/ld: (.text+0x494): undefined reference to `gcry_md_setkey'
          /usr/bin/ld: (.text+0x4a6): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x4b5): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x4cc): undefined reference to `gcry_md_get_algo'
          /usr/bin/ld: (.text+0x4d3): undefined reference to `gcry_md_get_algo_dlen'
          /usr/bin/ld: (.text+0x4e1): undefined reference to `gcry_md_read'
          /usr/bin/ld: (.text+0x4f8): undefined reference to `gcry_md_close'
          /usr/bin/ld: (.text+0x52d): undefined reference to `gcry_md_write'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(mac.o): in function `mac_method_hmac_sha2_256_hash':
          (.text+0x592): undefined reference to `gcry_md_open'
          /usr/bin/ld: (.text+0x5a4): undefined reference to `gcry_md_setkey'
          /usr/bin/ld: (.text+0x5b6): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x5c5): undefined reference to `gcry_md_write'
          /usr/bin/ld: (.text+0x5dc): undefined reference to `gcry_md_get_algo'
          /usr/bin/ld: (.text+0x5e3): undefined reference to `gcry_md_get_algo_dlen'
          /usr/bin/ld: (.text+0x5f1): undefined reference to `gcry_md_read'
          /usr/bin/ld: (.text+0x608): undefined reference to `gcry_md_close'
          /usr/bin/ld: (.text+0x63d): undefined reference to `gcry_md_write'
          /usr/bin/ld: /tmp/cargo-installTq5jkm/release/deps/liblibssh2_sys-c67c8b6af4c7501d.rlib(crypt.o): in function `crypt_dtor':
          (.text+0x22): undefined reference to `gcry_cipher_close'
          collect2: error: ld returned 1 exit status


error: aborting due to previous error

error: failed to compile `cargo-update v3.0.0`, intermediate artifacts can be found at `/tmp/cargo-installTq5jkm`

Caused by:
  could not compile `cargo-update`.

To learn more, run the command again with --verbose.

I'll open a bug upstream shortly.

@nabijaczleweli
Copy link
Owner

nabijaczleweli commented Mar 15, 2020

Apparently this was reported already, but didn't catch my eye.
Tracking upstream bug: alexcrichton/ssh2-rs#173
Related: alexcrichton/ssh2-rs#172, alexcrichton/ssh2-rs#171

Hotfix, mentioned in alexcrichton/ssh2-rs#171 (comment), worked for me in the setup above:
Build with LIBSSH2_SYS_USE_PKG_CONFIG environment variable set, i.e.

LIBSSH2_SYS_USE_PKG_CONFIG= cargo install cargo-update

for a fresh install.

@edjacob25
Copy link

edjacob25 commented Mar 16, 2020

Can confirm that using:

LIBSSH2_SYS_USE_PKG_CONFIG= cargo install-update -a

Works in Ubuntu 18.04.4.

@VVelox
Copy link
Author

VVelox commented Mar 16, 2020

Woot! Just tested here and it worked.

env LIBSSH2_SYS_USE_PKG_CONFIG='' cargo install cargo-update

@wez
Copy link

wez commented Apr 26, 2020

I've published an updated libssh2-sys crate so this should now be resolved

@nabijaczleweli
Copy link
Owner

And an interesting analysis to boot; thanks!

@nabijaczleweli
Copy link
Owner

Released in v4.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants