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
syscall: mmap constants missing on netbsd, openbsd #4929
Labels
Comments
Additional notes for the issue. 1) My language may not be perfectly clear about where I've seen this issue. On my darwin machine the code compiles correctly (386/amd64). When I use a cross compiler, then I've gotten the code to compile for linux (386/amd64/arm). For all the *bsds the cross-compiler choked on the PROT_READ and MAP_PRIVATE symbols, and nothing else (not the Mmap call itself). I also installed freebsd 9.1 64-bit on a virtual machine to check more directly, and failed identically to the cross-compiler: ./mmap.go:23: undefined: syscall.PROT_READ ./mmap.go:23: undefined: syscall.MAP_PRIVATE These results are backed up by my cursory look into the zerrors_*.go files. 2) On my VM I tried to rebuild the z*.go files using the mkall.sh script. Even without changing any files at all I get out z*.go files which are different than the ones checked into the repository, and more importantly, syscall then fails to build. The most likely reason is because my freebsd version (9.1) has C headers significantly enough different to cause the resulting files to be broken. This is not terribly relevant to the issue, except that I was trying to solve the issue myself (and post a CL), but this development suggests that any solution I come up with may break other people's code in unexpected ways, and I don't feel my *bsd skills are up to the task. |
On it. Owner changed to @davecheney. Status changed to Accepted. |
https://golang.org/cl/7432046/ Status changed to Started. |
This issue was updated by revision 9dd92d5. Regenerated from FreeBSD-9.1 for amd64 and 386, FreeBSD-CURRENT for arm. R=devon.odell, minux.ma, rsc CC=golang-dev https://golang.org/cl/7438053 |
Owner changed to @4a6f656c. |
This issue was closed by revision f40dd8f. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: