Re: strftime-induced linker errors on Android API 35.

2025-05-08 Thread Paul Eggert
On 2025-05-08 17:50, Po Lu wrote: I will be unable to merge this update into Emacs for several days yet as my attention is currently concentrated elsewhere, but if anyone does it will be automatically tested within 24 hours. I merged it.

Re: strftime-induced linker errors on Android API 35.

2025-05-08 Thread Po Lu
Bruno Haible writes: > B) Always use the C locale. This is suitable because the C locale is the > only one supported on Android. (See bionic/libc/tzcode/strftime.c .) [...] > I went for approach B, because it is the simplest one. > > > 2025-05-08 Bruno Haible > > nstrftime: Fix a

Re: strftime-induced linker errors on Android API 35.

2025-05-08 Thread Bruno Haible via Gnulib discussion list
So, the situation is: * timezone_t exists * The functions tzalloc, tzfree, mktime_z, localtime_rz exist timezone_t _Nullable tzalloc(const char* _Nullable __id) __INTRODUCED_IN(35); void tzfree(timezone_t _Nullable __tz) __INTRODUCED_IN(35); time_t mktime_z(timezone_t _Nonnull __t

Re: strftime-induced linker errors on Android API 35.

2025-05-06 Thread Po Lu
Bruno Haible writes: > Po Lu wrote: >> > - Is NEED_TIMEZONE_NULL_SUPPORT defined in config.h ? >> > - Is time_rz.c among the source code, after the gnulib import? >> > - Is time_rz.o among the compiled files? >> >> Sure. Yes to all of the above. >> >> > - What symbols are shown as defi

Re: strftime-induced linker errors on Android API 35.

2025-05-06 Thread Bruno Haible via Gnulib discussion list
Po Lu wrote: > > - Is NEED_TIMEZONE_NULL_SUPPORT defined in config.h ? > > - Is time_rz.c among the source code, after the gnulib import? > > - Is time_rz.o among the compiled files? > > Sure. Yes to all of the above. > > > - What symbols are shown as defined ('T') in "nm time_rz.o"? >

Re: strftime-induced linker errors on Android API 35.

2025-05-06 Thread Po Lu
Po Lu writes: >> - Is HAVE_NATIVE_TIME_Z defined in config.h ? Actually, this is defined in strftime.c (and evaluates to 0). Nowhere does it appear in the generated config.h.in or config.h.

Re: strftime-induced linker errors on Android API 35.

2025-05-06 Thread Po Lu
Bruno Haible writes: > Hi Po Lu, > >> Emacs shared libraries fail to link at runtime when compiled with >> __ANDROID_API__ == 35 and the NDK r28a: > > OK, that is a supported configuration. > >> E AndroidRuntime: FATAL EXCEPTION: main >> E AndroidRuntime: Process: org.gnu.emacs, PID: 21651 >> E A

Re: strftime-induced linker errors on Android API 35.

2025-05-06 Thread Bruno Haible via Gnulib discussion list
Hi Po Lu, > Emacs shared libraries fail to link at runtime when compiled with > __ANDROID_API__ == 35 and the NDK r28a: OK, that is a supported configuration. > E AndroidRuntime: FATAL EXCEPTION: main > E AndroidRuntime: Process: org.gnu.emacs, PID: 21651 > E AndroidRuntime: java.lang.Unsatisfie