Skip to content

Instantly share code, notes, and snippets.

@Byron
Created June 26, 2015 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Byron/b7a50cdcf7c60234335d to your computer and use it in GitHub Desktop.
Save Byron/b7a50cdcf7c60234335d to your computer and use it in GitHub Desktop.
hyper 0.6.0 link error
➜ hyper git:(master) ✗ cargo test
Compiling openssl-sys v0.6.3
Compiling openssl v0.6.3
Compiling cookie v0.1.21
Compiling solicit v0.3.0
Compiling hyper v0.6.0 (file:///Users/byron/Documents/dev/rust/hyper)
error: linking with `cc` failed: exit code: 1
note: "cc" "-m64" "-L" "/Users/byron/.multirust/toolchains/stable/lib/rustlib/x86_64-apple-darwin/lib" "-o" "/Users/byron/Documents/dev/rust/hyper/target/debug/examples/client" "/Users/byron/Documents/dev/rust/hyper/target/debug/examples/client.o" "-Wl,-force_load,/Users/byron/.multirust/toolchains/stable/lib/rustlib/x86_64-apple-darwin/lib/libmorestack.a" "-Wl,-dead_strip" "-nodefaultlibs" "/Users/byron/Documents/dev/rust/hyper/target/debug/libhyper.rlib" "/Users/byron/Documents/dev/rust/hyper/target/debug/deps/libtraitobject-dc1e70e5c4501fdd.rlib" "/Users/byron/Documents/dev/rust/hyper/target/debug/deps/libenv_logger-63352e48193fbb80.rlib" "/Users/byron/Documents/dev/rust/hyper/target/debug/deps/libcookie-ac7973d866daef44.rlib" "/Users/byron/Documents/dev/rust/hyper/target/debug/deps/libopenssl-d8a07f4882d58f7a.rlib" "/Users/byron/Documents/dev/rust/hyper/target/debug/deps/libtypeable-10065b0bbdf3bed9.rlib" "/Users/byron/Documents/dev/rust/hyper/target/debug/deps/liblanguage_tags-6df8014d46c07784.rlib" "/Users/byron/Documents/dev/rust/hyper/target/debug/deps/libregex-9fdf902336334c8a.rlib" "/Users/byron/Documents/dev/rust/hyper/target/debug/deps/libbitflags-6ad6262463ad8b4b.rlib" "/Users/byron/Documents/dev/rust/hyper/target/debug/deps/libunicase-29c711cff0d04b16.rlib" "/Users/byron/Documents/dev/rust/hyper/target/debug/deps/libmime-fb0ec5b544b44065.rlib" "/Users/byron/Documents/dev/rust/hyper/target/debug/deps/libsolicit-e59d7ad908a81672.rlib" "/Users/byron/Documents/dev/rust/hyper/target/debug/deps/libtime-f08bec52f4924e95.rlib" "/Users/byron/Documents/dev/rust/hyper/target/debug/deps/libaho_corasick-719f26bc796a3444.rlib" "/Users/byron/Documents/dev/rust/hyper/target/debug/deps/liblazy_static-7e1b752366784e2f.rlib" "/Users/byron/Documents/dev/rust/hyper/target/debug/deps/libmemchr-ce56c6a379c614cd.rlib" "/Users/byron/Documents/dev/rust/hyper/target/debug/deps/libhttparse-7ecdaf5da0017654.rlib" "/Users/byron/Documents/dev/rust/hyper/target/debug/deps/libnum_cpus-d64cdaf0c78cf4e8.rlib" "/Users/byron/Documents/dev/rust/hyper/target/debug/deps/liburl-a4f53e129e04fc84.rlib" "/Users/byron/Documents/dev/rust/hyper/target/debug/deps/librustc_serialize-0e2cbfb69293d88f.rlib" "/Users/byron/Documents/dev/rust/hyper/target/debug/deps/libhpack-0002de409367b417.rlib" "/Users/byron/Documents/dev/rust/hyper/target/debug/deps/liblog-54cf393d3c69686f.rlib" "/Users/byron/Documents/dev/rust/hyper/target/debug/deps/libmatches-68db25b520030534.rlib" "/Users/byron/Documents/dev/rust/hyper/target/debug/deps/libregex_syntax-8db057a1d27b1529.rlib" "/Users/byron/Documents/dev/rust/hyper/target/debug/deps/libopenssl_sys-c89f03ae8929b564.rlib" "/Users/byron/Documents/dev/rust/hyper/target/debug/deps/liblibc-2eda841eb12a3090.rlib" "/Users/byron/.multirust/toolchains/stable/lib/rustlib/x86_64-apple-darwin/lib/libstd-7d23ff90.rlib" "/Users/byron/.multirust/toolchains/stable/lib/rustlib/x86_64-apple-darwin/lib/libcollections-7d23ff90.rlib" "/Users/byron/.multirust/toolchains/stable/lib/rustlib/x86_64-apple-darwin/lib/librustc_unicode-7d23ff90.rlib" "/Users/byron/.multirust/toolchains/stable/lib/rustlib/x86_64-apple-darwin/lib/librand-7d23ff90.rlib" "/Users/byron/.multirust/toolchains/stable/lib/rustlib/x86_64-apple-darwin/lib/liballoc-7d23ff90.rlib" "/Users/byron/.multirust/toolchains/stable/lib/rustlib/x86_64-apple-darwin/lib/liblibc-7d23ff90.rlib" "/Users/byron/.multirust/toolchains/stable/lib/rustlib/x86_64-apple-darwin/lib/libcore-7d23ff90.rlib" "-L" "/Users/byron/Documents/dev/rust/hyper/target/debug" "-L" "/Users/byron/Documents/dev/rust/hyper/target/debug/deps" "-L" "/usr/lib" "-L" "/Users/byron/Documents/dev/rust/hyper/target/debug/build/openssl-sys-c89f03ae8929b564/out" "-L" "/Users/byron/Documents/dev/rust/hyper/target/debug/build/time-f08bec52f4924e95/out" "-L" "/Users/byron/.multirust/toolchains/stable/lib/rustlib/x86_64-apple-darwin/lib" "-L" "/Users/byron/Documents/dev/rust/hyper/.rust/lib/x86_64-apple-darwin" "-L" "/Users/byron/Documents/dev/rust/hyper/lib/x86_64-apple-darwin" "-lssl" "-lcrypto" "-lz" "-lc" "-lm" "-lSystem" "-lpthread" "-lc" "-lm" "-Wl,-rpath,@loader_path/../../../../../../../.multirust/toolchains/stable/lib/rustlib/x86_64-apple-darwin/lib" "-Wl,-rpath,/usr/local/lib/rustlib/x86_64-apple-darwin/lib" "-lcompiler-rt"
note: ld: warning: directory not found for option '-L/Users/byron/Documents/dev/rust/hyper/.rust/lib/x86_64-apple-darwin'
ld: warning: directory not found for option '-L/Users/byron/Documents/dev/rust/hyper/lib/x86_64-apple-darwin'
Undefined symbols for architecture x86_64:
"_TLSv1_2_method", referenced from:
ssl::SslMethod::to_raw::h35d3304e52e49589fOc in libopenssl-d8a07f4882d58f7a.rlib(openssl-d8a07f4882d58f7a.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: aborting due to previous error
Build failed, waiting for other jobs to finish...
Could not compile `hyper`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment