-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
toolchain: add API guard for timezone_t
#21120
Conversation
I guess this issue is not specific to termux, i.e. should we report it to android/ndk team? |
Looks like this PR does fix the issue. Thank you! |
Ya I think so. Looking at https://cs.android.com/android/platform/superproject/main/+/main:bionic/libc/include/time.h blame seems intentional for the breaking. Maybe we can get some other ideas / workaround. This PR works too. |
Heads up, it seems like this also effects Here's the relavant part of the log file. In file included from /home/builder/.termux-build/tar/src/gnu/fprintftime.c:19:
/home/builder/.termux-build/tar/src/gnu/nstrftime.c:1189:17: error: call to undeclared function 'mktime_z'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1189 | t = mktime_z (tz, <m);
| ^
/home/builder/.termux-build/tar/src/gnu/nstrftime.c:1189:17: note: did you mean 'mktime'?
/home/builder/.termux-build/_cache/android-r27-api-24-v0/bin/../sysroot/usr/include/time.h:159:8: note: 'mktime' declared here
159 | time_t mktime(struct tm* _Nonnull __tm);
| ^
CC libgnu_a-group-member.o
1 error generated.
CC libgnu_a-hard-locale.o
make[4]: *** [Makefile:4628: libgnu_a-fprintftime.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/home/builder/.termux-build/tar/build/gnu'
make[3]: *** [Makefile:7657: all-recursive] Error 1
make[3]: Leaving directory '/home/builder/.termux-build/tar/build/gnu'
make[2]: *** [Makefile:2975: all] Error 2
make[2]: Leaving directory '/home/builder/.termux-build/tar/build/gnu'
make[1]: *** [Makefile:1882: all-recursive] Error 1
make[1]: Leaving directory '/home/builder/.termux-build/tar/build'
make: *** [Makefile:1822: all] Error 2 After some prodding from Biswa, it looks like |
I think this PR makes sense and should be ready to merge. Then we can propose it at https://github.com/android/ndk/issues (do you want to do that @licy183)? |
This seems to be effecting everything that depends on
It would be good to get this resolved soon. |
I am thinking of adding mktime_z and friends instead... |
Emmm.... These symbols exist in too many packages (almost every package depending on gnulib) and Anyway, adding them makes sense if some package must use them. |
I think this is fine to merge, as it basically adds back the behaviour from earlier NDK versions, where |
Yeah. I'll merge this now. |
Co-authored-by: 5ec1cff <[email protected]> Co-authored-by: Henrik Grimler <[email protected]>
Closes #21113