Skip to content

x86_64-unknown-dragonfly build errors #1648

Description

@xtqqczze
$ cargo +nightly check -q -Z build-std --target x86_64-unknown-dragonfly --all-targets --features=all-apis
error[E0425]: cannot find value `IP_ADD_SOURCE_MEMBERSHIP` in module `c`
   --> src/backend/libc/net/sockopt.rs:664:38
    |
664 |     setsockopt(fd, c::IPPROTO_IP, c::IP_ADD_SOURCE_MEMBERSHIP, mreq_source)
    |                                      ^^^^^^^^^^^^^^^^^^^^^^^^
    |
   ::: ~/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.189/src/unix/bsd/freebsdlike/mod.rs:923:1
    |
923 | pub const IP_ADD_MEMBERSHIP: c_int = 12;
    | ---------------------------------- similarly named constant `IP_ADD_MEMBERSHIP` defined here
    |
help: a constant with a similar name exists
    |
664 -     setsockopt(fd, c::IPPROTO_IP, c::IP_ADD_SOURCE_MEMBERSHIP, mreq_source)
664 +     setsockopt(fd, c::IPPROTO_IP, c::IP_ADD_MEMBERSHIP, mreq_source)
    |

error[E0425]: cannot find value `IP_DROP_SOURCE_MEMBERSHIP` in module `c`
   --> src/backend/libc/net/sockopt.rs:676:38
    |
676 |     setsockopt(fd, c::IPPROTO_IP, c::IP_DROP_SOURCE_MEMBERSHIP, mreq_source)
    |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^
    |
   ::: ~/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.189/src/unix/bsd/freebsdlike/mod.rs:924:1
    |
924 | pub const IP_DROP_MEMBERSHIP: c_int = 13;
    | ----------------------------------- similarly named constant `IP_DROP_MEMBERSHIP` defined here
    |
help: a constant with a similar name exists
    |
676 -     setsockopt(fd, c::IPPROTO_IP, c::IP_DROP_SOURCE_MEMBERSHIP, mreq_source)
676 +     setsockopt(fd, c::IPPROTO_IP, c::IP_DROP_MEMBERSHIP, mreq_source)
    |

error[E0425]: cannot find type `ip_mreq_source` in module `c`
    --> src/backend/libc/net/sockopt.rs:1333:9
     |
1333 | ) -> c::ip_mreq_source {
     |         ^^^^^^^^^^^^^^ not found in `c`

error[E0422]: cannot find struct, variant or union type `ip_mreq_source` in module `c`
    --> src/backend/libc/net/sockopt.rs:1334:8
     |
1334 |     c::ip_mreq_source {
     |        ^^^^^^^^^^^^^^ not found in `c`

Some errors have detailed explanations: E0422, E0425.
For more information about an error, try `rustc --explain E0422`.
error: could not compile `rustix` (lib) due to 4 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