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

Fix build failure on illumos #2359

Merged
merged 1 commit into from
Apr 18, 2020
Merged

Fix build failure on illumos #2359

merged 1 commit into from
Apr 18, 2020

Conversation

MosakujiHokuto
Copy link

Previously v2ray can not be built on illumos due to following reasons:

  1. missing build tags in transport/internet/sockopt_other.go
  2. many definitions in syscall does not exist on illumos
    This commit addresses these problems by adding missing build tags, and
    updates those missing syscall deps on illumos to use x/sys/unix.

Fix #2358.

Previously v2ray can not be built on illumos due to following reasons:
1. missing build tags in transport/internet/sockopt_other.go
2. many definitions in syscall does not exist on illumos
This commit addresses these problems by adding missing build tags, and
updates those missing syscall deps on illumos to use x/sys/unix.
@MosakujiHokuto
Copy link
Author

MosakujiHokuto commented Mar 21, 2020

This PR should allow go test to run successfully, and shadowsocks/v2ray-plugin compiled with this version seems to be working find.

Be aware though, by the time this PR is submitted, unix.Readv does not present in x/sys/unix on illumos yet. My patch (https://go-review.googlesource.com/c/sys/+/224238) has already been merged so it should be available soon.

@agioi
Copy link
Contributor

agioi commented Apr 15, 2020

LGTM

@kslr kslr merged commit edb4fed into v2ray:master Apr 18, 2020
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 this pull request may close these issues.

Build failure on illumos (omnios-r151032-19f7bd2ae5)
3 participants