{"action":"created","issue":{"url":"https://api.github.com/repos/sfackler/rust-openssl/issues/293","labels_url":"https://api.github.com/repos/sfackler/rust-openssl/issues/293/labels{/name}","comments_url":"https://api.github.com/repos/sfackler/rust-openssl/issues/293/comments","events_url":"https://api.github.com/repos/sfackler/rust-openssl/issues/293/events","html_url":"https://github.com/sfackler/rust-openssl/issues/293","id":112025539,"number":293,"title":"Missing ssl32.lib using cargo","user":{"login":"csmith1991","id":5216645,"avatar_url":"https://avatars.githubusercontent.com/u/5216645?v=3","gravatar_id":"","url":"https://api.github.com/users/csmith1991","html_url":"https://github.com/csmith1991","followers_url":"https://api.github.com/users/csmith1991/followers","following_url":"https://api.github.com/users/csmith1991/following{/other_user}","gists_url":"https://api.github.com/users/csmith1991/gists{/gist_id}","starred_url":"https://api.github.com/users/csmith1991/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csmith1991/subscriptions","organizations_url":"https://api.github.com/users/csmith1991/orgs","repos_url":"https://api.github.com/users/csmith1991/repos","events_url":"https://api.github.com/users/csmith1991/events{/privacy}","received_events_url":"https://api.github.com/users/csmith1991/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-18T15:29:25Z","updated_at":"2015-10-24T21:35:51Z","closed_at":null,"body":"Hi everyone,\r\n\r\nI'm trying to get a simple project setup, but I can't get openssl working (its one of the dependencies). I've followed all the steps for the windows toolchain, but it's failing in the linker saying it's missing `ssl32.lib`. Any ideas?\r\n\r\nHere's `cargo test --verbose`:\r\n\r\n    c:\\Users\\Charles\\Repos\\rust-openssl\\openssl>cargo test --verbose\r\n           Fresh lazy_static v0.1.15\r\n           Fresh libc v0.1.10\r\n           Fresh rustc-serialize v0.3.16\r\n           Fresh pkg-config v0.3.6\r\n           Fresh bitflags v0.3.2\r\n           Fresh winapi-build v0.1.1\r\n           Fresh winapi v0.2.4\r\n           Fresh cfg-if v0.1.0\r\n           Fresh kernel32-sys v0.1.4\r\n           Fresh advapi32-sys v0.1.2\r\n           Fresh ws2_32-sys v0.1.0\r\n           Fresh gcc v0.3.18\r\n           Fresh net2 v0.2.15\r\n           Fresh openssl-sys v0.6.7 (file:///C:/Users/Charles/Repos/rust-openssl/openssl)\r\n       Compiling openssl v0.6.7 (file:///C:/Users/Charles/Repos/rust-openssl/openssl)\r\n         Running `rustc src\\lib.rs --crate-name openssl --crate-type lib -g --test -C metadata=08be2358417965a0 -C extra-filename=-08be2358417965a0 --out-dir C:\\Users\\Charles\\Repos\\rust-openssl\\openssl\\target\\debug --emit=dep-info,link -L     dependency=C:\\Users\\Charles\\Repos\\rust-openssl\\openssl\\target\\debug -L dependency=C:\\Users\\Charles\\Repos\\rust-openssl\\openssl\\target\\debug\\deps --extern net2=C:\\Users\\Charles\\Repos\\rust-openssl\\openssl\\target\\debug\\deps\\libnet2-2ffd8b554b04092b.rlib --extern     bitflags=C:\\Users\\Charles\\Repos\\rust-openssl\\openssl\\target\\debug\\deps\\libbitflags-c495827ddcd6a202.rlib --extern lazy_static=C:\\Users\\Charles\\Repos\\rust-openssl\\openssl\\target\\debug\\deps\\liblazy_static-f3aa6dfcc7c157cc.rlib --extern     openssl_sys=C:\\Users\\Charles\\Repos\\rust-openssl\\openssl\\target\\debug\\deps\\libopenssl_sys-58120a0dd01cdf9f.rlib --extern rustc_serialize=C:\\Users\\Charles\\Repos\\rust-openssl\\openssl\\target\\debug\\deps\\librustc_serialize-7ff5bfc027146194.rlib --extern     libc=C:\\Users\\Charles\\Repos\\rust-openssl\\openssl\\target\\debug\\deps\\liblibc-144c435538abd757.rlib -L native=C:\\OpenSSL-Win64 -L native=C:\\Users\\Charles\\Repos\\rust-openssl\\openssl\\target\\debug\\build\\openssl-sys-90e2af8b7f885723\\out`\r\n    error: linking with `link.exe` failed: exit code: 1181\r\n    note: \"C:\\\\Program Files (x86)\\\\Microsoft Visual Studio 14.0\\\\VC\\\\bin\\\\link.exe\" \"/LIBPATH:C:\\\\Program Files (x86)\\\\Microsoft Visual Studio 14.0\\\\VC/lib\\\\amd64\" \"/LIBPATH:C:\\\\Program Files (x86)\\\\Windows Kits\\\\10\\\\Lib\\\\10.0.10150.0\\\\ucrt\\\\x64\" \"/LIBPATH:C:\\\\Program Files (x86)\\\\Windows     Kits\\\\8.1\\\\Lib\\\\winv6.3\\\\um\\\\x64\" \"/NOLOGO\" \"/NXCOMPAT\" \"/LIBPATH:C:\\\\Program Files\\\\Rust nightly 1.5\\\\bin\\\\rustlib\\\\x86_64-pc-windows-msvc\\\\lib\" \"C:\\\\Users\\\\Charles\\\\Repos\\\\rust-openssl\\\\openssl\\\\target\\\\debug\\\\openssl-08be2358417965a0.0.o\"     \"/OUT:C:\\\\Users\\\\Charles\\\\Repos\\\\rust-openssl\\\\openssl\\\\target\\\\debug\\\\openssl-08be2358417965a0.exe\" \"/OPT:REF,ICF\" \"/DEBUG\" \"/LIBPATH:C:\\\\Users\\\\Charles\\\\Repos\\\\rust-openssl\\\\openssl\\\\target\\\\debug\" \"/LIBPATH:C:\\\\Users\\\\Charles\\\\Repos\\\\rust-openssl\\\\openssl\\\\target\\\\debug\\\\deps\"     \"/LIBPATH:C:\\\\OpenSSL-Win64\" \"/LIBPATH:C:\\\\Users\\\\Charles\\\\Repos\\\\rust-openssl\\\\openssl\\\\target\\\\debug\\\\build\\\\openssl-sys-90e2af8b7f885723\\\\out\" \"/LIBPATH:C:\\\\Program Files\\\\Rust nightly 1.5\\\\bin\\\\rustlib\\\\x86_64-pc-windows-msvc\\\\lib\"     \"/LIBPATH:c:\\\\Users\\\\Charles\\\\Repos\\\\rust-openssl\\\\openssl\\\\.rust\\\\bin\\\\x86_64-pc-windows-msvc\" \"/LIBPATH:c:\\\\Users\\\\Charles\\\\Repos\\\\rust-openssl\\\\openssl\\\\bin\\\\x86_64-pc-windows-msvc\" \"C:\\\\Users\\\\Charles\\\\Repos\\\\rust-openssl\\\\openssl\\\\target\\\\debug\\\\deps\\\\liblazy_static-f3aa6dfcc7c157cc.rlib\"     \"C:\\\\Users\\\\Charles\\\\Repos\\\\rust-openssl\\\\openssl\\\\target\\\\debug\\\\deps\\\\libnet2-2ffd8b554b04092b.rlib\" \"C:\\\\Users\\\\Charles\\\\Repos\\\\rust-openssl\\\\openssl\\\\target\\\\debug\\\\deps\\\\libopenssl_sys-58120a0dd01cdf9f.rlib\" \"C:\\\\Program Files\\\\Rust nightly     1.5\\\\bin\\\\rustlib\\\\x86_64-pc-windows-msvc\\\\lib\\\\libtest-10cbabc2.rlib\" \"C:\\\\Program Files\\\\Rust nightly 1.5\\\\bin\\\\rustlib\\\\x86_64-pc-windows-msvc\\\\lib\\\\libterm-10cbabc2.rlib\" \"C:\\\\Program Files\\\\Rust nightly 1.5\\\\bin\\\\rustlib\\\\x86_64-pc-windows-msvc\\\\lib\\\\libserialize-10cbabc2.rlib\"     \"C:\\\\Users\\\\Charles\\\\Repos\\\\rust-openssl\\\\openssl\\\\target\\\\debug\\\\deps\\\\liblibc-144c435538abd757.rlib\" \"C:\\\\Users\\\\Charles\\\\Repos\\\\rust-openssl\\\\openssl\\\\target\\\\debug\\\\deps\\\\libbitflags-c495827ddcd6a202.rlib\"     \"C:\\\\Users\\\\Charles\\\\Repos\\\\rust-openssl\\\\openssl\\\\target\\\\debug\\\\deps\\\\libcfg_if-0dcf5e6d515dd4d2.rlib\" \"C:\\\\Users\\\\Charles\\\\Repos\\\\rust-openssl\\\\openssl\\\\target\\\\debug\\\\deps\\\\librustc_serialize-7ff5bfc027146194.rlib\"     \"C:\\\\Users\\\\Charles\\\\Repos\\\\rust-openssl\\\\openssl\\\\target\\\\debug\\\\deps\\\\libws2_32-f4c2e6f3694418f6.rlib\" \"C:\\\\Users\\\\Charles\\\\Repos\\\\rust-openssl\\\\openssl\\\\target\\\\debug\\\\deps\\\\libkernel32-62844336d3806e02.rlib\"     \"C:\\\\Users\\\\Charles\\\\Repos\\\\rust-openssl\\\\openssl\\\\target\\\\debug\\\\deps\\\\libwinapi-21b078e9a1931364.rlib\" \"C:\\\\Program Files\\\\Rust nightly 1.5\\\\bin\\\\rustlib\\\\x86_64-pc-windows-msvc\\\\lib\\\\liblog-10cbabc2.rlib\" \"C:\\\\Program Files\\\\Rust nightly     1.5\\\\bin\\\\rustlib\\\\x86_64-pc-windows-msvc\\\\lib\\\\libgetopts-10cbabc2.rlib\" \"C:\\\\Program Files\\\\Rust nightly 1.5\\\\bin\\\\rustlib\\\\x86_64-pc-windows-msvc\\\\lib\\\\libstd-10cbabc2.rlib\" \"C:\\\\Program Files\\\\Rust nightly 1.5\\\\bin\\\\rustlib\\\\x86_64-pc-windows-msvc\\\\lib\\\\libcollections-10cbabc2.rlib\"     \"C:\\\\Program Files\\\\Rust nightly 1.5\\\\bin\\\\rustlib\\\\x86_64-pc-windows-msvc\\\\lib\\\\librustc_unicode-10cbabc2.rlib\" \"C:\\\\Program Files\\\\Rust nightly 1.5\\\\bin\\\\rustlib\\\\x86_64-pc-windows-msvc\\\\lib\\\\librand-10cbabc2.rlib\" \"C:\\\\Program Files\\\\Rust nightly     1.5\\\\bin\\\\rustlib\\\\x86_64-pc-windows-msvc\\\\lib\\\\liballoc-10cbabc2.rlib\" \"C:\\\\Program Files\\\\Rust nightly 1.5\\\\bin\\\\rustlib\\\\x86_64-pc-windows-msvc\\\\lib\\\\liballoc_system-10cbabc2.rlib\" \"C:\\\\Program Files\\\\Rust nightly 1.5\\\\bin\\\\rustlib\\\\x86_64-pc-windows-msvc\\\\lib\\\\liblibc-10cbabc2.rlib\"     \"C:\\\\Program Files\\\\Rust nightly 1.5\\\\bin\\\\rustlib\\\\x86_64-pc-windows-msvc\\\\lib\\\\libcore-10cbabc2.rlib\" \"ssl32.lib\" \"eay32.lib\" \"kernel32.lib\" \"kernel32.lib\" \"shell32.lib\" \"msvcrt.lib\" \"ws2_32.lib\" \"kernel32.lib\" \"ws2_32.lib\" \"userenv.lib\" \"advapi32.lib\" \"kernel32.lib\" \"shell32.lib\" \"msvcrt.lib\"     \"compiler-rt.lib\"\r\n    note: LINK : fatal error LNK1181: cannot open input file 'ssl32.lib'\r\n\r\n    error: aborting due to previous error\r\n    Could not compile `openssl`.\r\n\r\n    Caused by:\r\n      Process didn't exit successfully: `rustc src\\lib.rs --crate-name openssl --crate-type lib -g --test -C metadata=08be2358417965a0 -C extra-filename=-08be2358417965a0 --out-dir C:\\Users\\Charles\\Repos\\rust-openssl\\openssl\\target\\debug --emit=dep-info,link -L     dependency=C:\\Users\\Charles\\Repos\\rust-openssl\\openssl\\target\\debug -L dependency=C:\\Users\\Charles\\Repos\\rust-openssl\\openssl\\target\\debug\\deps --extern net2=C:\\Users\\Charles\\Repos\\rust-openssl\\openssl\\target\\debug\\deps\\libnet2-2ffd8b554b04092b.rlib --extern     bitflags=C:\\Users\\Charles\\Repos\\rust-openssl\\openssl\\target\\debug\\deps\\libbitflags-c495827ddcd6a202.rlib --extern lazy_static=C:\\Users\\Charles\\Repos\\rust-openssl\\openssl\\target\\debug\\deps\\liblazy_static-f3aa6dfcc7c157cc.rlib --extern     openssl_sys=C:\\Users\\Charles\\Repos\\rust-openssl\\openssl\\target\\debug\\deps\\libopenssl_sys-58120a0dd01cdf9f.rlib --extern rustc_serialize=C:\\Users\\Charles\\Repos\\rust-openssl\\openssl\\target\\debug\\deps\\librustc_serialize-7ff5bfc027146194.rlib --extern     libc=C:\\Users\\Charles\\Repos\\rust-openssl\\openssl\\target\\debug\\deps\\liblibc-144c435538abd757.rlib -L native=C:\\OpenSSL-Win64 -L native=C:\\Users\\Charles\\Repos\\rust-openssl\\openssl\\target\\debug\\build\\openssl-sys-90e2af8b7f885723\\out` (exit code: 101)"},"comment":{"url":"https://api.github.com/repos/sfackler/rust-openssl/issues/comments/150852916","html_url":"https://github.com/sfackler/rust-openssl/issues/293#issuecomment-150852916","issue_url":"https://api.github.com/repos/sfackler/rust-openssl/issues/293","id":150852916,"user":{"login":"sfackler","id":1455697,"avatar_url":"https://avatars.githubusercontent.com/u/1455697?v=3","gravatar_id":"","url":"https://api.github.com/users/sfackler","html_url":"https://github.com/sfackler","followers_url":"https://api.github.com/users/sfackler/followers","following_url":"https://api.github.com/users/sfackler/following{/other_user}","gists_url":"https://api.github.com/users/sfackler/gists{/gist_id}","starred_url":"https://api.github.com/users/sfackler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfackler/subscriptions","organizations_url":"https://api.github.com/users/sfackler/orgs","repos_url":"https://api.github.com/users/sfackler/repos","events_url":"https://api.github.com/users/sfackler/events{/privacy}","received_events_url":"https://api.github.com/users/sfackler/received_events","type":"User","site_admin":false},"created_at":"2015-10-24T21:35:51Z","updated_at":"2015-10-24T21:35:51Z","body":"There should be a file located somewhere like `cat target/debug/build/openssl-sys-4fdc8b9c62d359a5/output` (the hex stuff after openssl-sys may be different). Can you copy its contents here? The only thing I can think of is that it's deciding to link statically which seems weird if you're not passing `OPENSSL_STATIC`."}}