-
Notifications
You must be signed in to change notification settings - Fork 528
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
DllImport code does not work when compile from Linux #3311
Comments
The problem here is this:
The Here are the symbols in some DSOs involved: Android/lib/arm64-v8a $ nm -C -D libmono-android.debug.so|grep __cxa_finalize
U __cxa_finalize
Android/lib/arm64-v8a $ nm -C -D libmonosgen-2.0.so|grep __cxa_finalize
U __cxa_finalize
ndk/platforms/android-21/arch-arm64/usr/lib$ nm -C -D libc.so|grep __cxa_finalize
000000000000c01c T __cxa_finalize
android-21/arch-arm64/usr/lib$ nm -C -D libdl.so|grep __cxa_finalize
Now, considering that ndk/platforms/android-21/arch-arm64/usr/lib$ readelf -a libdl.so | grep NEEDED
further on, assuming your app is a Android/lib/arm64-v8a $ readelf -a libmonosgen-2.0.so | grep NEEDED
0x0000000000000001 (NEEDED) Shared library: [libz.so]
0x0000000000000001 (NEEDED) Shared library: [libdl.so]
0x0000000000000001 (NEEDED) Shared library: [libc.so]
0x0000000000000001 (NEEDED) Shared library: [libm.so]
0x0000000000000001 (NEEDED) Shared library: [liblog.so]
Android/lib/arm64-v8a $ readelf -a libmono-android.debug.so | grep NEEDED
0x0000000000000001 (NEEDED) Shared library: [libz.so]
0x0000000000000001 (NEEDED) Shared library: [liblog.so]
0x0000000000000001 (NEEDED) Shared library: [libxamarin-app.so]
0x0000000000000001 (NEEDED) Shared library: [libm.so]
0x0000000000000001 (NEEDED) Shared library: [libstdc++.so]
0x0000000000000001 (NEEDED) Shared library: [libdl.so]
0x0000000000000001 (NEEDED) Shared library: [libc.so]
At this point @cra0zy, I have no slightest clue as to what might be going on. Your device's
Hopefully we can then pin-point the issue (which doesn't seem to be a problem in |
So... a quick test later and the only way that this occurs is this specific device and only when compiling the above code from Linux... strange. Device in question is: https://www.gsmarena.com/alcatel_pixi_4_(7)-7847.php I can't provide you with more details right now. |
@cra0zy |
@grendello @dellis1972 So... turns out this issue is not limited to Linux SDK :/ |
Steps to Reproduce
Expected Behavior
No crashing.
Actual Behavior
DllNotFoundException gets called.
Version Information
Last stable Linux build.
Log File
Full logcat: https://gist.github.com/cra0zy/8af965b4f44ec0b954b30f382ca0fdb8
The text was updated successfully, but these errors were encountered: