-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
I am getting an undefined symbol related to openssl when I try to compile the latest on OS X. More detail below.
git log
commit e5dfb8233f25a4c57f2c6a68e8a7a854e42295b6
Merge: 41823ca edf6ac2
Author: Sean McArthur <sean.monstar@gmail.com>
Date: Tue Jun 16 22:51:13 2015 -0700
Merge pull request #572 from giftcards/master
feat(headers): add bearer token support
rustc version
rustc -V
rustc 1.0.0 (a59de37e9 2015-05-13) (built 2015-05-14)
OS X version
sw_vers
ProductName: Mac OS X
ProductVersion: 10.10.3
BuildVersion: 14D136
Libssl
ls -l /usr/lib/libssl.*
-rwxr-xr-x 1 root wheel 400608 Sep 9 2014 /usr/lib/libssl.0.9.7.dylib
-rwxr-xr-x 1 root wheel 616512 Mar 19 19:16 /usr/lib/libssl.0.9.8.dylib
lrwxr-xr-x 1 root wheel 18 Feb 22 00:56 /usr/lib/libssl.dylib -> libssl.0.9.8.dylib
Actual error.
➜ cargo clean
➜ cargo test
Compiling traitobject v0.0.1
Compiling gcc v0.3.8
Compiling pkg-config v0.3.5
Compiling lazy_static v0.1.11
Compiling rustc-serialize v0.3.15
Compiling httparse v0.1.4
Compiling unicase v0.1.0
Compiling regex-syntax v0.1.2
Compiling libc v0.1.8
Compiling matches v0.1.2
Compiling typeable v0.1.2
Compiling bitflags v0.1.1
Compiling time v0.1.26
Compiling openssl-sys v0.6.2
Compiling memchr v0.1.3
Compiling log v0.3.1
Compiling num_cpus v0.2.6
Compiling aho-corasick v0.1.3
Compiling mime v0.0.11
Compiling hpack v0.2.0
Compiling regex v0.1.35
Compiling openssl v0.6.2
Compiling solicit v0.2.0
Compiling env_logger v0.3.1
Compiling url v0.2.35
Compiling cookie v0.1.21
Compiling hyper v0.5.2 (file:///Users/user/oss/hyperium/hyper)
error: linking with `cc` failed: exit code: 1
note: "cc" "-m64" "-L" "/Users/user/.multirust/toolchains/stable/lib/rustlib/x86_64-apple-darwin/lib" "-o" "/Users/user/oss/hyperium/hyper/target/debug/examples/client" "/Users/user/oss/hyperium/hyper/target/debug/examples/client.o" "-Wl,-force_load,/Users/user/.multirust/toolchains/stable/lib/rustlib/x86_64-apple-darwin/lib/libmorestack.a" "-Wl,-dead_strip" "-nodefaultlibs" "/Users/user/oss/hyperium/hyper/target/debug/libhyper.rlib" "/Users/user/oss/hyperium/hyper/target/debug/deps/libtypeable-10065b0bbdf3bed9.rlib" "/Users/user/oss/hyperium/hyper/target/debug/deps/libunicase-29c711cff0d04b16.rlib" "/Users/user/oss/hyperium/hyper/target/debug/deps/libsolicit-cd95e739c5df31f7.rlib" "/Users/user/oss/hyperium/hyper/target/debug/deps/libmime-e3d384f950d18291.rlib" "/Users/user/oss/hyperium/hyper/target/debug/deps/libhttparse-7ecdaf5da0017654.rlib" "/Users/user/oss/hyperium/hyper/target/debug/deps/libhpack-0002de409367b417.rlib" "/Users/user/oss/hyperium/hyper/target/debug/deps/libnum_cpus-d64cdaf0c78cf4e8.rlib" "/Users/user/oss/hyperium/hyper/target/debug/deps/libtraitobject-dc1e70e5c4501fdd.rlib" "/Users/user/oss/hyperium/hyper/target/debug/deps/libenv_logger-63352e48193fbb80.rlib" "/Users/user/oss/hyperium/hyper/target/debug/deps/libregex-8de7cf8d3c57f864.rlib" "/Users/user/oss/hyperium/hyper/target/debug/deps/libregex_syntax-8db057a1d27b1529.rlib" "/Users/user/oss/hyperium/hyper/target/debug/deps/libaho_corasick-02c11d7f79c63f6b.rlib" "/Users/user/oss/hyperium/hyper/target/debug/deps/libmemchr-ce56c6a379c614cd.rlib" "/Users/user/oss/hyperium/hyper/target/debug/deps/liblog-54cf393d3c69686f.rlib" "/Users/user/oss/hyperium/hyper/target/debug/deps/libcookie-ac7973d866daef44.rlib" "/Users/user/oss/hyperium/hyper/target/debug/deps/liburl-a4f53e129e04fc84.rlib" "/Users/user/oss/hyperium/hyper/target/debug/deps/librustc_serialize-0e2cbfb69293d88f.rlib" "/Users/user/oss/hyperium/hyper/target/debug/deps/libtime-f08bec52f4924e95.rlib" "/Users/user/oss/hyperium/hyper/target/debug/deps/libmatches-68db25b520030534.rlib" "/Users/user/oss/hyperium/hyper/target/debug/deps/libopenssl-a36d86f1beea2185.rlib" "/Users/user/oss/hyperium/hyper/target/debug/deps/libbitflags-518ea12e21428edd.rlib" "/Users/user/oss/hyperium/hyper/target/debug/deps/liblazy_static-7e1b752366784e2f.rlib" "/Users/user/oss/hyperium/hyper/target/debug/deps/libopenssl_sys-5040130ff99796a0.rlib" "/Users/user/oss/hyperium/hyper/target/debug/deps/liblibc-2eda841eb12a3090.rlib" "/Users/user/.multirust/toolchains/stable/lib/rustlib/x86_64-apple-darwin/lib/libstd-4e7c5e5c.rlib" "/Users/user/.multirust/toolchains/stable/lib/rustlib/x86_64-apple-darwin/lib/libcollections-4e7c5e5c.rlib" "/Users/user/.multirust/toolchains/stable/lib/rustlib/x86_64-apple-darwin/lib/libunicode-4e7c5e5c.rlib" "/Users/user/.multirust/toolchains/stable/lib/rustlib/x86_64-apple-darwin/lib/librand-4e7c5e5c.rlib" "/Users/user/.multirust/toolchains/stable/lib/rustlib/x86_64-apple-darwin/lib/liballoc-4e7c5e5c.rlib" "/Users/user/.multirust/toolchains/stable/lib/rustlib/x86_64-apple-darwin/lib/liblibc-4e7c5e5c.rlib" "/Users/user/.multirust/toolchains/stable/lib/rustlib/x86_64-apple-darwin/lib/libcore-4e7c5e5c.rlib" "-L" "/Users/user/oss/hyperium/hyper/target/debug" "-L" "/Users/user/oss/hyperium/hyper/target/debug/deps" "-L" "/usr/lib" "-L" "/Users/user/oss/hyperium/hyper/target/debug/build/openssl-sys-5040130ff99796a0/out" "-L" "/Users/user/oss/hyperium/hyper/target/debug/build/time-f08bec52f4924e95/out" "-L" "/Users/user/.multirust/toolchains/stable/lib/rustlib/x86_64-apple-darwin/lib" "-L" "/Users/user/oss/hyperium/hyper/.rust/lib/x86_64-apple-darwin" "-L" "/Users/user/oss/hyperium/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/user/oss/hyperium/hyper/.rust/lib/x86_64-apple-darwin'
ld: warning: directory not found for option '-L/Users/user/oss/hyperium/hyper/lib/x86_64-apple-darwin'
Undefined symbols for architecture x86_64:
"_TLSv1_2_method", referenced from:
ssl::SslMethod::to_raw::h7b8cbd53c0831aeeOLc in libopenssl-a36d86f1beea2185.rlib(openssl-a36d86f1beea2185.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Metadata
Metadata
Assignees
Labels
No labels