x/mobile: JNI library can't find __isoc99_sscanf on Android x86-64 #35441
Milestone
Comments
This was happening because my workstation's copy of go was built from the boringcrypto branch (and apparently this only affected the x86-64 build target). It would be nice if gomobile could separate the target stdlib from the system stdlib, but I wouldn't call that a bug. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I built an Android app using a Go library and Gomobile. The Go library imports "net/http". When I run the app, it works fine on armv7, arm64, and x86, but it crashes as soon as the JNI module is imported on x86-64. This reproduces both in an x86-64 emulator and on x86-64 Chromebooks (e.g. Pixelbook, Pixel Slate) in the ARC++ environment.
__isoc99_sscanf appears to be used by OPENSSL_cpuid_setup, a2i_ipadd, and ipv6_cb. It only appears in the x86-64 library, not any of the other architectures.
The text was updated successfully, but these errors were encountered: