Skip to content
This repository has been archived by the owner on Dec 29, 2017. It is now read-only.

Build fails #3

Open
clauseggers opened this issue Sep 30, 2017 · 0 comments
Open

Build fails #3

clauseggers opened this issue Sep 30, 2017 · 0 comments

Comments

@clauseggers
Copy link

Building tw-rs fails with this output:

cargo install tw-rs     
    Updating registry `https://github.com/rust-lang/crates.io-index`
  Installing tw-rs v0.1.34
   Compiling lazy_static v0.2.9
   Compiling vec_map v0.8.0
   Compiling ansi_term v0.9.0
   Compiling cc v1.0.0
   Compiling bitflags v0.9.1
   Compiling strsim v0.6.0
   Compiling unicode-normalization v0.1.5
   Compiling gcc v0.3.54
   Compiling pkg-config v0.3.9
   Compiling rustc-serialize v0.3.24
   Compiling byteorder v1.1.0
   Compiling percent-encoding v1.0.0
   Compiling log v0.3.8
   Compiling libc v0.2.31
   Compiling yaml-rust v0.3.5
   Compiling openssl-probe v0.1.1
   Compiling unicode-width v0.1.4
   Compiling matches v0.1.6
   Compiling colored v1.5.3
   Compiling openssl-sys v0.7.17
   Compiling base64 v0.5.2
   Compiling time v0.1.38
   Compiling rand v0.3.16
   Compiling term_size v0.3.0
   Compiling atty v0.2.2
   Compiling memchr v1.0.1
   Compiling libz-sys v1.0.17
   Compiling curl-sys v0.2.5
   Compiling rust-crypto v0.2.36
   Compiling unicode-bidi v0.3.4
   Compiling textwrap v0.8.0
   Compiling nom v3.2.0
   Compiling clap v2.26.2
   Compiling idna v0.1.4
   Compiling curl v0.3.11
   Compiling url v1.5.1
   Compiling oauth-client-fix v0.1.5
   Compiling tw-rs v0.1.34
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/claus/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/tmp/cargo-install.ifyjiiJW7wu5/release/deps/tw-f212183413b1911d.0.o" "-o" "/tmp/cargo-install.ifyjiiJW7wu5/release/deps/tw-f212183413b1911d" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "-L" "/tmp/cargo-install.ifyjiiJW7wu5/release/deps" "-L" "/usr/lib" "-L" "/usr/lib" "-L" "/usr/lib" "-L" "/tmp/cargo-install.ifyjiiJW7wu5/release/build/rust-crypto-1dac9b312727ab2d/out" "-L" "/home/claus/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/tmp/rustc.38ej74qObW2t/libcrypto-b4757d0c33083281.rlib" "/tmp/rustc.38ej74qObW2t/libstd-f5614285b35f1c78.rlib" "/tmp/rustc.38ej74qObW2t/liballoc_jemalloc-78da0d9f215f6e02.rlib" "/home/claus/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-bc08577478188180.rlib" "-Wl,-Bdynamic" "-l" "curl" "-l" "ssl" "-l" "crypto" "-l" "z" "-l" "util" "-l" "dl" "-l" "rt" "-l" "pthread" "-l" "pthread" "-l" "gcc_s" "-l" "c" "-l" "m" "-l" "rt" "-l" "pthread" "-l" "util"
  = note: /tmp/cargo-install.ifyjiiJW7wu5/release/deps/tw-f212183413b1911d.0.o: In function `std::sync::once::Once::call_once::{{closure}}':
          tw.cgu-0.rs:(.text._ZN3std4sync4once4Once9call_once28_$u7b$$u7b$closure$u7d$$u7d$17h4ccf9c5eb2374d5aE+0x1c): undefined reference to `SSL_library_init'
          tw.cgu-0.rs:(.text._ZN3std4sync4once4Once9call_once28_$u7b$$u7b$closure$u7d$$u7d$17h4ccf9c5eb2374d5aE+0x21): undefined reference to `SSL_load_error_strings'
          tw.cgu-0.rs:(.text._ZN3std4sync4once4Once9call_once28_$u7b$$u7b$closure$u7d$$u7d$17h4ccf9c5eb2374d5aE+0x26): undefined reference to `OPENSSL_add_all_algorithms_noconf'
          tw.cgu-0.rs:(.text._ZN3std4sync4once4Once9call_once28_$u7b$$u7b$closure$u7d$$u7d$17h4ccf9c5eb2374d5aE+0x2b): undefined reference to `CRYPTO_num_locks'
          /tmp/cargo-install.ifyjiiJW7wu5/release/deps/tw-f212183413b1911d.0.o: In function `std::sync::once::Once::call_once::{{closure}}':
          /checkout/src/liballoc_jemalloc/lib.rs:(.text._ZN3std4sync4once4Once9call_once28_$u7b$$u7b$closure$u7d$$u7d$17h4ccf9c5eb2374d5aE+0x2f6): undefined reference to `CRYPTO_set_locking_callback'
          /checkout/src/liballoc_jemalloc/lib.rs:(.text._ZN3std4sync4once4Once9call_once28_$u7b$$u7b$closure$u7d$$u7d$17h4ccf9c5eb2374d5aE+0x302): undefined reference to `CRYPTO_set_id_callback'
          collect2: error: ld returned 1 exit status
          

error: aborting due to previous error

error: failed to compile `tw-rs v0.1.34`, intermediate artifacts can be found at `/tmp/cargo-install.ifyjiiJW7wu5`

Caused by:
  Could not compile `tw-rs`.

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

I have OpenSSL installed on my ArchLinux box.

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

No branches or pull requests

1 participant