-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
x/sys/unix: __sysctl is used on iOS instead of sysctl #35103
Comments
Change https://golang.org/cl/202778 mentions this issue: |
Change https://golang.org/cl/202837 mentions this issue: |
Thank you. I'm sorry that I wasn't more thorough. Is this a backport candidate? |
x/sys/unix is not relevant for backports. Perhaps you meant to chime in on #35101 for which there is already a backport candidate in #35105 Or are you thinking that we should update the vendored x/sys/unix and backport that? |
This was disabled due to a report that the App Store rejects the symbol __sysctl. However, we use the sysctl symbol, which is fine. The __sysctl symbol is used by x/sys/unix, which needs fixing instead. So, this commit reenables sysctl on iOS, so that things like net.InterfaceByName can work again. This reverts CL 193843, CL 193844, CL 193845, and CL 193846. Fixes #35101 Updates #34133 Updates #35103 Change-Id: Ib8eb9f87b81db24965b0de29d99eb52887c7c60a Reviewed-on: https://go-review.googlesource.com/c/go/+/202778 Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com> Reviewed-by: David Crawshaw <crawshaw@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Change https://golang.org/cl/202779 mentions this issue: |
The change fails for me on macOS 10.14.6 (mojave) with
I think the issue is that the assembly files still refer to These files look like they're generated though, so I'm not sure if this analysis is correct. |
Change https://golang.org/cl/202958 mentions this issue: |
CL 202837 forgot to properly re-generate zsyscall_darwin_{386,amd64,arm64}.s with the correct trampoline name. Updates golang/go#35103 Updates golang/go#34133 Updates golang/go#35101 Change-Id: I98805988f97c7ff51da858fdc36c436aa680c8c7 Reviewed-on: https://go-review.googlesource.com/c/sys/+/202958 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Jason A. Donenfeld <Jason@zx2c4.com>
This was disabled due to a report that the App Store rejects the symbol __sysctl. However, we use the sysctl symbol, which is fine. The __sysctl symbol is used by x/sys/unix, which needs fixing instead. So, this commit reenables sysctl on iOS, so that things like net.InterfaceByName can work again. This reverts CL 193843, CL 193844, CL 193845, and CL 193846. Fixes #35105 Updates #35101 Updates #34133 Updates #35103 Change-Id: Ib8eb9f87b81db24965b0de29d99eb52887c7c60a Reviewed-on: https://go-review.googlesource.com/c/go/+/202778 Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com> Reviewed-by: David Crawshaw <crawshaw@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-on: https://go-review.googlesource.com/c/go/+/202779 Reviewed-by: Elias Naur <mail@eliasnaur.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
In issue #34133, @mmaxim reported that the app store was rejecting his app due to the use of
__sysctl
, which he ascribed to the Go runtime. However, it turns out that the Go runtime usessysctl
, whereas it was x/sys/unix using__sysctl
. So, x/sys/unix should be adjusted to usesysctl
instead of__sysctl
.CC @eliasnaur
The text was updated successfully, but these errors were encountered: