Skip to content

FreeBSD compilation error #268

Closed
Closed
@hwchen

Description

@hwchen

Trying to compile basic-http-server on a Digital Ocean Droplet, FreeBSD 10.2.

   Compiling libc v0.2.4

...

   Compiling libc v0.1.12

...

   Compiling nix v0.4.2
/home/freebsd/.cargo/registry/src/github.com-88ac128001ac3a9a/nix-0.4.2/src/lib.rs:46:20: 46:28 error: unresolved import `libc::PATH_MAX`. There is no `PATH_MAX` in `libc` [E0432]
/home/freebsd/.cargo/registry/src/github.com-88ac128001ac3a9a/nix-0.4.2/src/lib.rs:46 use libc::{c_char, PATH_MAX};
                                                                                                         ^~~~~~~~
/home/freebsd/.cargo/registry/src/github.com-88ac128001ac3a9a/nix-0.4.2/src/lib.rs:46:20: 46:28 help: run `rustc --explain E0432` to see a detailed explanation
error: aborting due to previous error
Could not compile `nix`.
cargo 0.7.0 (built 2016-02-11)
rustc 1.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions