Comments (9)
Trying to use the libevent-provided implementations doesn't work either, because:
[exec] libevent/./arc4random.c:466:1: error: static declaration of 'arc4random_addrandom' follows non-static declaration
[exec] arc4random_addrandom(const unsigned char *dat, int datlen)
[exec] ^
[exec] /usr/local/Cellar/android-ndk/r11b/platforms/android-14/arch-arm/usr/include/stdlib.h:117:13: note: previous declaration is here
[exec] extern void arc4random_addrandom(unsigned char *, int);
from ndk.
Similarly, arc4random_stir
has a different return value. Why is it declared in sodlib.h and defined in libc at all, if it's not actually present or linkable?
from ndk.
See #42 for explanation of why the arc4random ones went away.
issetugid
never had a real implementation in Android. I don't remember all the details (I'll update if I manage to track them down), but since it was only ever a stub implementation and it isn't a part of POSIX, we removed it.
Leaving the bug opened and assigning to @jmgao because we should fix the headers, but these won't be put back (they've never been in the LP64 ABIs anyway).
from ndk.
Hello,
I have the same problem, library compiled fine with r10e, with r11c fails to compile:
jni/modules/timers/timers.cpp: 64: error: undefine reference to 'ftime'
jni/modules/timers/timers.cpp: 93: error: undefine reference to 'ftime'
Regards
from ndk.
Hello
I see that the r12-beta2 continues to have the same reference issue with some library functions (such as FTIME), you might be able to get the fix for the final r12 ?
Regards.
from ndk.
Unfortunately it's going to have to be r13. Our grand plan of replacing all the headers with the current ones from aosp requires an update to clang (and update containing a patch that has not been written yet).
from ndk.
This shouldn't be blocking you though. This bug getting fixed just means you get a compile time failure instead of a link time failure.
from ndk.
@CicTec ftime is obsolete, and was removed in POSIX 2008. You should be using time, gettimeofday, or clock_gettime, depending on the level of precision you need.
from ndk.
Ok, I'll try with these functions, thanks to both.
from ndk.
Related Issues (20)
- [FR] improve bad diagnostic for `__REMOVED_IN` on `ALooper_pollAll` HOT 8
- [BUG] With Compose AndroidView on API 29, ANativeWindow_fromSurface with SurfaceView without an additional ViewGroup makes AndroidViewsHandle go black HOT 3
- [FR] Update Vulkan headers in sysroot of NDK r27 to enable FFmpeg's Vulkan integration HOT 19
- [Feature request] consider to provide libc.a for each API level HOT 6
- [BUG] using thread_local in x64 Android 12L/13 desktop simulator for release build generates invalid init function for thread_local variable that leads to SIGSEGV HOT 1
- [BUG] 23.1.77 Build errors on Unity 2022.3.21f1 HOT 7
- [BUG] Prebuilt clang and ld.lld fail to load compatible pass plugin HOT 1
- [BUG] clang frontend crashes on NDK 27.0.11718014 HOT 9
- [BUG] gettid() optimization HOT 2
- [DOC] cherry-pick changelog update to r27 HOT 3
- [BUG] ndk 27's `lib.a` does not support 16k page size HOT 1
- [FR] [simpleperf] ./app_profiler.py --system_wide should work on rooted "user" phones HOT 1
- [BUG] `std::isblank( charT c, const locale& loc)` is missing from `<locale>` HOT 3
- [BUG] Clang++ Segmentation fault when building AOSP branch android-14.0.0_r35 HOT 3
- [Bug]: error: ran out of registers during register allocation HOT 17
- Android builds with unity fail: "Library\Bee\artifacts\Android" HOT 4
- [FR] push/pop required policies in cmake toolchain file HOT 16
- [DOC] Clarification on 16k page size support for x86_64 devices HOT 3
- [DOC] `system_fonts.h` HOT 7
- [Bug]: Lambda segfaults in Clang HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ndk.