Skip to content

Haiku - mismatched socket types #108

@kallisti5

Description

@kallisti5

Dag nabbit, I thought we had Haiku support nailed down. Just ran into another net2 error building a crate.

uname -a
Haiku shredder 1 hrev54759 Dec  7 2020 08:38:40 x86_64 x86_64 Haiku
error[E0308]: mismatched types
   --> /boot/home/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.36/src/socket.rs:121:23
    |
121 |             sin_zero: [0; 8],
    |                       ^^^^^^ expected an array with a fixed size of 24 elements, found one with 8 elements

   Compiling aho-corasick v0.7.15
error[E0063]: missing field `sin_len` in initializer of `libc::sockaddr_in`
   --> /boot/home/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.36/src/socket.rs:117:13
    |
117 |         v4: c::sockaddr_in {
    |             ^^^^^^^^^^^^^^ missing `sin_len`

error[E0063]: missing field `sin6_len` in initializer of `libc::sockaddr_in6`
   --> /boot/home/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.36/src/socket.rs:164:13
    |
164 |         v6: c::sockaddr_in6 {
    |             ^^^^^^^^^^^^^^^ missing `sin6_len`

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0063, E0308.
For more information about an error, try `rustc --explain E0063`.
error: could not compile `net2`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions