Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation fails on Mac #2048

Closed
kevinburke opened this issue May 2, 2019 · 0 comments
Closed

compilation fails on Mac #2048

kevinburke opened this issue May 2, 2019 · 0 comments

Comments

@kevinburke
Copy link

If I try to install libcontainer/utils on Mac, I get:

go install -v ./libcontainer/utils
github.com/opencontainers/runc/libcontainer/utils
# github.com/opencontainers/runc/libcontainer/utils
libcontainer/utils/utils_unix.go:39:62: undefined: unix.SOCK_CLOEXEC

This constant is only defined for Linux machines.

kevinburke added a commit to kevinburke/tableroll that referenced this issue May 2, 2019
This package does not compile on Darwin because a file in
runc/libcontainer/utils contains a constant that does not exist on
Darwin builds.

The code out of that package that we need has no problems compiling on
Darwin however so pull it into a shim and load it from there.

If opencontainers/runc#2048 is resolved maybe we can re-import the
other package.
kevinburke added a commit to kevinburke/tableroll that referenced this issue May 2, 2019
This package does not compile on Darwin because a file in
runc/libcontainer/utils contains a constant that does not exist on
Darwin builds.

The code out of that package that we need has no problems compiling on
Darwin however so pull it into a shim and load it from there.

If opencontainers/runc#2048 is resolved maybe we can re-import the
other package.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants