Open LinuxRocks2000 opened 1 year ago
When compiling from source, cargo makes it to the linker step and fails with
error: linking with `cc` failed: exit status: 1 | = note: "cc" "-m64" "/tmp/rustct2ZmZT/symbols.o" "/tmp/cargo-installxzRAzJ/release/deps/websocat-d0328a35f1228dd5.websocat.5a09a8ba-cgu.0.rcgu.o" "-Wl,--as-needed" "-L" "/tmp/cargo-installxzRAzJ/release/deps" "-L" "/home/awesome/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/awesome/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-7f2d6606c0ceff89.rlib" "-Wl,-Bdynamic" "-lssl" "-lcrypto" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/home/awesome/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/tmp/cargo-installxzRAzJ/release/deps/websocat-d0328a35f1228dd5" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-nodefaultlibs" = note: /usr/bin/ld: /tmp/cargo-installxzRAzJ/release/deps/websocat-d0328a35f1228dd5.websocat.5a09a8ba-cgu.0.rcgu.o: in function `<futures::future::and_then::AndThen<A,B,F> as futures::future::Future>::poll': websocat.5a09a8ba-cgu.0:(.text._ZN95_$LT$futures..future..and_then..AndThen$LT$A$C$B$C$F$GT$$u20$as$u20$futures..future..Future$GT$4poll17h161ec0507add728cE+0x17f): undefined reference to `SSL_get_peer_certificate' collect2: error: ld returned 1 exit status
Looks like a problem with bad native dependencies.
What system are you building for? Have you tried cargo update?
cargo update
Note that you can build Websocat without TLS support if needed.
When compiling from source, cargo makes it to the linker step and fails with
Looks like a problem with bad native dependencies.