4 ms·
FWIW, I built and successfully ran it on FreeBSD-current. The only hiccup I ran into was that it puked building due to not having /usr/local/lib in its lib sea
by drewg123 8y ago
FWIW, I built and successfully ran it on FreeBSD-current. The only hiccup I ran into was that it puked building due to not having /usr/local/lib in its lib search path & not being able to find libxcb. I had to manually add -L/usr/local/lib to the cc args and manually link it. Not sure if that is a FreeBSD issue w/Rust, or something in your package.
At any rate, the tool works! Thanks so much.
- timvisee 8y agoThanks for sharing your solution! Not sure what is causing it (maybe it's OpenSSL binding related), and am currently not really targeting FreeBSD yet. I wasn't fully ready with this tool for the Firefox Send release to be honest, would have loved to be able to provide better binaries and packages for more platforms, which are a work in progress. If you believe you can improve the README with your solution, be sure to submit a [PR](https://gitlab.com/timvisee/ffsend/ https://gitlab.com/timvisee/ffsend/). Happy to see it's working! :)
- alxlaz 8y agoIt's a BSD world thing :). Local (i.e. non-system) executables and libraries go under /usr/local around here (i.e. libraries under /usr/local/lib, binaries under /usr/local/bin and so on, the hierarchy under /usr/local has the same structure as that under /usr).
- drewg123 8y agoYou can work around it by creating a cargo config with a wrapper. Eg: cat ~/.cargo/config [target.x86_64-unknown-freebsd] linker = "/home/drewg123/bin/cargo-ld" Where cargo-ld is just a wrapper: #!/bin/sh exec /usr/bin/ld -L/usr/local/lib $*
- majewsky 8y agoFor proper formatting of code snippets, indent the entire snippet with two spaces.
- notamy 8y ago> the hierarchy under /usr/local has the same structure as that under /usr So I can have /usr/local/local/local/local...? :)
- deleted 8y ago[deleted]
- inopinatus 8y agoIs there an autotools equivalent in Rust land?
- steveklabnik 8y agoDepends on what you mean exactly.
- Datenstrom 8y agoI just had the same issue with rust linking to a 1553 bus library in /usr/local/lib yesterday. Seems like this should be on the search path.
- IcePic 8y agoAt least on BSD, you want to be able to separate external 3rd party libs and system libs in case they overlap, so that is why BSDs don't automatically include things under /usr/local.