Skip to content

Instantly share code, notes, and snippets.

View drs5ma's full-sized avatar

Daniel Saha drs5ma

View GitHub Profile
peter$ cargo run
Compiling crypto_test v0.1.0 (file:///Users/peter/dev/rust/crypto_test)
error: linking with `cc` failed: exit code: 1
note: "cc" "-m64" "-L" "/Users/peter/.multirust/toolchains/nightly/lib/rustlib/x86_64-apple-darwin/lib" "/Users/peter/dev/rust/crypto_test/target/debug/crypto_test.0.o" "-o" "/Users/peter/dev/rust/crypto_test/target/debug/crypto_test" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/Users/peter/dev/rust/crypto_test/target/debug" "-L" "/Users/peter/dev/rust/crypto_test/target/debug/deps" "-L" "/Users/peter/.multirust/toolchains/nightly/lib/rustlib/x86_64-apple-darwin/lib" "/Users/peter/dev/rust/crypto_test/target/debug/deps/libsecrets-0014f6abd3757ae1.rlib" "/Users/peter/dev/rust/crypto_test/target/debug/deps/liblibc-dd3420cb049117bb.rlib" "/Users/peter/.multirust/toolchains/nightly/lib/rustlib/x86_64-apple-darwin/lib/libstd-fd663c41.rlib" "/Users/peter/.multirust/toolchains/nightly/lib/rustlib/x86_64-apple-darwin/lib/libcollections-fd663c41.rlib" "/Users/peter/.multirust/toolchain
@markan
markan / vpncfix.md
Created August 21, 2015 17:52
shimo/vpnc "ERROR: can't send packet: Can't assign requested address"

The problem

I've frequently been bit by failures restarting my vpn on my Mac. The connection may appear to start up in Shimo (the menu icon will change) but it looks like vpnc can't connect.

Looking at the log, we see the connection gets stuck

ERROR: can't send packet: Can't assign requested address

This has plagued me for a while, and my only fix has been to restart the machine. I hate restarting my machine. So I finally made time to dig in and find a better solution