Skip to content

Error compiling for linux-musl #454

@posk-io

Description

@posk-io

cargo build --release --target=x86_64-unknown-linux-musl produces

   Compiling alioth v0.12.0
error: cannot construct `msghdr` with struct literal syntax due to private fields
  --> [...].cargo/registry/src/index.crates.io-1949cf8c6b5b557f/alioth-0.12.0/src/utils/uds.rs:34:23
   |
34 |     let mut uds_msg = libc::msghdr {
   |                       ^^^^^^^^^^^^
   |
   = note: ...and other private fields `__pad1` and `__pad2` that were not provided

error: cannot construct `msghdr` with struct literal syntax due to private fields
   --> [...].cargo/registry/src/index.crates.io-1949cf8c6b5b557f/alioth-0.12.0/src/utils/uds.rs:110:19
    |
110 |     let uds_msg = libc::msghdr {
    |                   ^^^^^^^^^^^^
    |
    = note: ...and other private fields `__pad1` and `__pad2` that were not provided

error[E0063]: missing field `__pad1` in initializer of `cmsghdr`
   --> [...].cargo/registry/src/index.crates.io-1949cf8c6b5b557f/alioth-0.12.0/src/utils/uds.rs:120:20
    |
120 |         let cmsg = libc::cmsghdr {
    |                    ^^^^^^^^^^^^^ missing `__pad1`

For more information about this error, try `rustc --explain E0063`.
error: could not compile `alioth` (lib) due to 3 previous errors

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