ndk icon indicating copy to clipboard operation
ndk copied to clipboard

libc.so for NDK r12(b) platforms/android-19/arch-arm/ doesn't contain arc4random_stir function

Open timofey-retailnext opened this issue 10 years ago • 2 comments

all arc4random* stuff exists in both libc.a and libc.so for {NDK-r10e}/platforms/android-19/arch-arm/usr/lib/libc.* but in case of {NDK-r12} & {NDK-r12b} it exists only in .a version of the library. .so version doesn't have at least one function: arc4random_stir, therefore I'm unable to build openssh that actively uses it.

timofey-retailnext avatar Jul 18 '16 19:07 timofey-retailnext

https://github.com/android-ndk/ndk/issues/42

DanAlbert avatar Jul 18 '16 19:07 DanAlbert

Thanks for explanation, are there any specific reasons why removed arc4random_* functions still exist in stdlib.h ?

ex. {NDK-r12b}/platforms/android-19/arch-arm/include/stdlib.h lines 119-120: extern void arc4random_stir(void); extern void arc4random_addrandom(unsigned char *, int);

timofey-retailnext avatar Jul 18 '16 20:07 timofey-retailnext