cross-compiling onionmasq fails
I'm currently working on a build script to cross-compile onionmasq for all android architectures. However compiling using 1.60-nightly fails with the following error. Maybe the easiest solution is to do what is proposed in the error help message.
-- cross compiling to armv7-linux-androideabi (arm) --
[...]
error[E0308]: mismatched types
--> /Users/cyberta/.cargo/git/checkouts/smoltcp-49841526edf29f9d/8cb9667/src/phy/sys/raw_socket.rs:73:17
|
73 | mem::size_of::<libc::sockaddr_ll>() as u32,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `u32`
|
help: you can convert a `u32` to an `i32` and panic if the converted value doesn't fit
|
73 | (mem::size_of::<libc::sockaddr_ll>() as u32).try_into().unwrap(),
| + +++++++++++++++++++++
Compiling hashbrown v0.11.2
Edited by cyberta