Emacs shared libraries fail to link at runtime when compiled with
__ANDROID_API__ == 35 and the NDK r28a:

E AndroidRuntime: FATAL EXCEPTION: main
E AndroidRuntime: Process: org.gnu.emacs, PID: 21651
E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate 
symbol "set_tz" referenced by 
"/data/app/~~yw5LUubWzSHUwprjT3OZ5w==/org.gnu.emacs-0EFFUQxDS3mpZzvhMyF-4g==/lib/arm64/libemacs.so"...
E AndroidRuntime:       at java.lang.Runtime.loadLibrary0(Runtime.java:1081)
E AndroidRuntime:       at java.lang.Runtime.loadLibrary0(Runtime.java:1003)
E AndroidRuntime:       at java.lang.System.loadLibrary(System.java:1765)
E AndroidRuntime:       at 
org.gnu.emacs.EmacsNative.<clinit>(EmacsNative.java:355)
E AndroidRuntime:       at 
org.gnu.emacs.EmacsApplication.onCreate(EmacsApplication.java:148)
E AndroidRuntime:       at 
android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1391)
E AndroidRuntime:       at 
android.app.ActivityThread.handleBindApplication(ActivityThread.java:7698)
E AndroidRuntime:       at 
android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
E AndroidRuntime:       at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2500)
E AndroidRuntime:       at android.os.Handler.dispatchMessage(Handler.java:109)
E AndroidRuntime:       at android.os.Looper.loopOnce(Looper.java:232)
E AndroidRuntime:       at android.os.Looper.loop(Looper.java:317)
E AndroidRuntime:       at 
android.app.ActivityThread.main(ActivityThread.java:8934)
E AndroidRuntime:       at java.lang.reflect.Method.invoke(Native Method)
E AndroidRuntime:       at 
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:591)
E AndroidRuntime:       at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)

because the strftime module assumes that localtime_rz replacements are
enabled and set_tz is defined if neither of strftime_lz and strftime_z
are available, but the presence of localtime_rz/mktime_z in the C
library does not indicate the former.

Reply via email to