Skip to content

Build failure on illumos and Solaris due to TCP_KEEPCNT and TCP_KEEPINTVL #1328

@jasonbking

Description

@jasonbking

The latest nix crate fails to build on illumos based systems (and almost certainly Solaris systems) since both the TCP_KEEPCNT and TCP_KEEPINTVL TCP options aren't defined in the libc crate.

Both platforms support those two options, and I've created a rust-lang/libc#1964 to address that, but there's a bit of a chicken-and-egg problem. I'm not sure how frequently the libc patch versions are bumped -- so even after the PR is merged, it may be some undetermined amount of time before those new values are reflected in a new libc version (and thus fix the nix nix build for those targets). Would it be worth submitting a small PR to temporarily exclude those two options for the illumos and Solaris targets until an updated new libc crate is released?

Currently illumos distress are having to maintain local patches (for this and some other missing support for those targets I'd like to upstream as well) to work around the problem, so we'd like of course to be able to stop doing that.

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