Skip to content

Build fails #222

@yurivict

Description

@yurivict
error[E0432]: unresolved import `crate::device::errno_str`
 --> /home/yuri/.cargo/git/checkouts/boringtun-77e7335b801fcc95/f288b2f/src/device/drop_privileges.rs:4:5
  |
4 | use crate::device::errno_str;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^ no `errno_str` in `device`

error[E0432]: unresolved imports `super::errno`, `super::errno_str`
 --> /home/yuri/.cargo/git/checkouts/boringtun-77e7335b801fcc95/f288b2f/src/device/udp_unix.rs:4:13
  |
4 | use super::{errno, errno_str, Error};
  |             ^^^^^  ^^^^^^^^^ no `errno_str` in `device`
  |             |
  |             no `errno` in `device`

error[E0432]: unresolved import `poll`
  --> /home/yuri/.cargo/git/checkouts/boringtun-77e7335b801fcc95/f288b2f/src/device/mod.rs:48:5
   |
48 | use poll::*;
   |     ^^^^ use of unresolved module or unlinked crate `poll`
   |
   = help: if you wanted to use a crate named `poll`, use `cargo add poll` to add it to your `Cargo.toml`

error[E0432]: unresolved import `tun`
  --> /home/yuri/.cargo/git/checkouts/boringtun-77e7335b801fcc95/f288b2f/src/device/mod.rs:49:5
   |
49 | use tun::*;
   |     ^^^ use of unresolved module or unlinked crate `tun`
   |
help: there is a crate or module with a similar name
   |
49 - use tun::*;
49 + use Tun::*;
   |

error[E0046]: not all trait items implemented, missing: `set_fwmark`
   --> /home/yuri/.cargo/git/checkouts/boringtun-77e7335b801fcc95/f288b2f/src/device/udp_unix.rs:238:1
    |
238 | impl Sock for UDPSocket {
    | ^^^^^^^^^^^^^^^^^^^^^^^ missing `set_fwmark` in implementation
    |
   ::: /home/yuri/.cargo/git/checkouts/boringtun-77e7335b801fcc95/f288b2f/src/device/mod.rs:115:5
    |
115 |     fn set_fwmark(&self, mark: u32) -> Result<(), Error>;
    |     ----------------------------------------------------- `set_fwmark` from trait

error[E0308]: mismatched types
   --> /home/yuri/.cargo/git/checkouts/boringtun-77e7335b801fcc95/f288b2f/src/device/api.rs:66:57
    |
 66 |                         "set=1" => api_set(&mut reader, d),
    |                                    -------              ^ types differ in mutability
    |                                    |
    |                                    arguments to this function are incorrect
    |
    = note: expected mutable reference `&mut LockReadGuard<'_, Device<_, _>>`
                       found reference `&Device<_, _>`
note: function defined here
   --> /home/yuri/.cargo/git/checkouts/boringtun-77e7335b801fcc95/f288b2f/src/device/api.rs:167:4
    |
167 | fn api_set<'a, T: Tun, S: Sock>(
    |    ^^^^^^^
168 |     reader: &mut BufReader<&UnixStream>,
169 |     d: &mut LockReadGuard<Device<T, S>>,
    |     -----------------------------------

error[E0282]: type annotations needed
  --> /home/yuri/.cargo/git/checkouts/boringtun-77e7335b801fcc95/f288b2f/src/device/api.rs:82:28
   |
82 |             Box::new(move |d, _| {
   |                            ^
...
92 |                     d.trigger_exit();
   |                     - type must be known at this point
   |
help: consider giving this closure parameter an explicit type
   |
82 |             Box::new(move |d: /* Type */, _| {
   |                             ++++++++++++

error[E0063]: missing field `sin_len` in initializer of `libc::sockaddr_in`
  --> /home/yuri/.cargo/git/checkouts/boringtun-77e7335b801fcc95/f288b2f/src/device/udp_unix.rs:20:20
   |
20 |         let addr = sockaddr_in {
   |                    ^^^^^^^^^^^ missing `sin_len`

error[E0063]: missing field `sin_len` in initializer of `libc::sockaddr_in`
  --> /home/yuri/.cargo/git/checkouts/boringtun-77e7335b801fcc95/f288b2f/src/device/udp_unix.rs:60:20
   |
60 |         let addr = sockaddr_in {
   |                    ^^^^^^^^^^^ missing `sin_len`

error[E0063]: missing field `sin_len` in initializer of `libc::sockaddr_in`
   --> /home/yuri/.cargo/git/checkouts/boringtun-77e7335b801fcc95/f288b2f/src/device/udp_unix.rs:104:20
    |
104 |         let addr = sockaddr_in {
    |                    ^^^^^^^^^^^ missing `sin_len`

error[E0063]: missing field `sin_len` in initializer of `libc::sockaddr_in`
   --> /home/yuri/.cargo/git/checkouts/boringtun-77e7335b801fcc95/f288b2f/src/device/udp_unix.rs:183:24
    |
183 |         let mut addr = sockaddr_in {
    |                        ^^^^^^^^^^^ missing `sin_len`

error[E0282]: type annotations needed for `std::sync::Arc<_, _>`
   --> /home/yuri/.cargo/git/checkouts/boringtun-77e7335b801fcc95/f288b2f/src/device/mod.rs:257:17
    |
257 |             let queue = Arc::clone(&device_lock.queue);
    |                 ^^^^^
...
260 |                 match queue.wait() {
    |                       ----- type must be known at this point
    |
help: consider giving `queue` an explicit type, where the placeholders `_` are specified
    |
257 |             let queue: std::sync::Arc<T, A> = Arc::clone(&device_lock.queue);
    |                      ++++++++++++++++++++++

error[E0282]: type annotations needed
   --> /home/yuri/.cargo/git/checkouts/boringtun-77e7335b801fcc95/f288b2f/src/device/mod.rs:538:21
    |
538 |                     r.reset_count()
    |                     ^ cannot infer type

error[E0282]: type annotations needed
   --> /home/yuri/.cargo/git/checkouts/boringtun-77e7335b801fcc95/f288b2f/src/device/mod.rs:557:47
    |
557 |                     let endpoint_addr = match peer.endpoint().addr {
    |                                               ^^^^ cannot infer type

error[E0282]: type annotations needed for `(_, _)`
   --> /home/yuri/.cargo/git/checkouts/boringtun-77e7335b801fcc95/f288b2f/src/device/mod.rs:550:21
    |
550 |                 let (udp4, udp6) = match (d.udp4.as_ref(), d.udp6.as_ref()) {
    |                     ^^^^^^^^^^^^
...
570 |                                 SocketAddr::V4(_) => udp4.sendto(packet, endpoint_addr),
    |                                                      ---- type must be known at this point
    |
help: consider giving this pattern a type, where the placeholders `_` are specified
    |
550 |                 let (udp4, udp6): (_, _) = match (d.udp4.as_ref(), d.udp6.as_ref()) {
    |                                 ++++++++

Version: 22.3
rust-1.93.1
FreeBSD 15 STABLE

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions