-
Notifications
You must be signed in to change notification settings - Fork 263
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
NDK r11 undefined reference #23
Comments
Is libusrsctp something that you're building yourself, or a prebuilt library you're including? My test using everything but libusrsctp from your example works fine (my source file was a use of |
It's indeed a prebuilt library (built from source before this step) |
Is it something that can be rebuilt with r11? That would solve the problem. I don't know enough about the NDK ecosystem to know how widespread this kind of thing might be. How common is it to use prebuilt static libraries? (note that if it was a shared libusrsctp, it would actually link and load just fine) |
I'll note that libusrsctp is open-source, so it can certainly be recompiled. That doesn't preclude the question of closed static libraries though. |
Ack. We'd trimmed down the NDK stub libraries to match the current state of the headers (cases like We'll have to add back a bunch of those symbols, since having those gone doesn't help anyone (the symbols that are actually private implementation details will remain hidden, but |
I re-built it with latest NDK r11 without any issue 👍 @DanAlbert you said |
(I checked to be sure, and it is correctly defined as such across every API level, so no surprises there.) |
Awsome! |
Glad to hear it. As far as adding back the symbols so we keep compatibility between r10 and r11 static libraries, I'm going to hold off to see if we get more reports of this. Compatibility for static libraries is something that is fairly fragile anyway (might even break compiler to compiler), so I'm leaning toward believing this isn't the norm. If more reports come in though, then it will be clear that I was wrong and we'll get it fixed :) |
Since NDK r11,
bcopy
is no longer defined in libc and triggers an error during linkage of libusrsctp for instance:error: undefined reference to 'bcopy'
Application.mk:
Android.mk
Is this issue related to #1 ?
The text was updated successfully, but these errors were encountered: