Closed
Description
When tried to building the clib, it get error while trying to make install
src/common/clib-package.c:1081:5: error: call to undeclared function 'pthread_cancel'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1081 | pthread_cancel(fetch->thread);
| ^
src/common/clib-package.c:1081:5: note: did you mean 'pthread_once'?
/data/data/com.termux/files/usr/include/pthread.h:258:5: note: 'pthread_once' declared here
258 | int pthread_once(pthread_once_t* _Nonnull __once, void (* _Nonnull __init_routine)(void));
And were tried to build with CFLAGS="-Wno-error=implicit-function-declaration"
It get failed with
ld.lld: error: undefined symbol: pthread_cancel
>>> referenced by clib-package.c >>> /data/data/com.termux/files/usr/tmp/clib-package-b790c2.o:(fetch_package_file)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:53: clib] Error 1
How can I fix this?
System info
OS: Android 7, aarch64
Name: Termux
Device: Redmi 4A
Metadata
Metadata
Assignees
Labels
No labels