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

"undefined: unix.SO_REUSEPORT" with Go 1.11 for solaris/amd64 target #747

Closed
JeremyRand opened this issue Sep 24, 2018 · 1 comment · Fixed by #750
Closed

"undefined: unix.SO_REUSEPORT" with Go 1.11 for solaris/amd64 target #747

JeremyRand opened this issue Sep 24, 2018 · 1 comment · Fixed by #750

Comments

@JeremyRand
Copy link
Contributor

When building miekg/dns with Go 1.11 for the solaris/amd64 target (cross-compiling on a linux/amd64 host via gox), I get this error:

--> solaris/amd64 error: exit status 2
Stderr: # github.com/miekg/dns
../../miekg/dns/listen_go111.go:18:56: undefined: unix.SO_REUSEPORT

No similar error occurs with Go 1.10.x for any target, nor does any similar error occur with Go 1.11 for other targets.

@tmthrgd
Copy link
Collaborator

tmthrgd commented Sep 24, 2018

This was my fault in #736, unix.SO_REUSEPORT isn’t defined for all platforms. I’ll adjust the build tags later today.

tmthrgd added a commit to tmthrgd/miekgdns that referenced this issue Sep 26, 2018
unix.SO_REUSEPORT isn't defined for solaris (or some other non-windows
platforms).

Fixes miekg#747
miekg pushed a commit that referenced this issue Sep 26, 2018
unix.SO_REUSEPORT isn't defined for solaris (or some other non-windows
platforms).

Fixes #747
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