On Sun, Jul 2, 2023, 11:36 alex xmb ratchev <[email protected]> wrote:
> bash-5.2$ make > rm -f complete.o > gcc -c -DHAVE_CONFIG_H -I. -I. -DRL_LIBRARY_VERSION='"8.2"' > -DBRACKETED_PASTE_DEFAULT=1 -g -O2 -Wno-parentheses -Wno-format-security > -Wno-tautological-constant-out-of-range-compare complete.c > complete.c:2342:7: error: call to undeclared function 'setpwent'; ISO C99 > and later do not support implicit function declarations > [-Wimplicit-function-declaration] > setpwent (); > ^ > complete.c:2347:18: error: call to undeclared function 'getpwent'; ISO C99 > and later do not support implicit function declarations > [-Wimplicit-function-declaration] > while (entry = getpwent ()) > ^ > complete.c:2347:16: error: incompatible integer to pointer conversion > assigning to 'struct passwd *' from 'int' [-Wint-conversion] > while (entry = getpwent ()) > ^ ~~~~~~~~~~~ > 3 errors generated. > make: *** [Makefile:105: complete.o] Error 1 > bash-5.2$ gcc -v > clang version 16.0.6 > Target: aarch64-unknown-linux-android24 > Thread model: posix > InstalledDir: /data/data/com.termux/files/usr/bin > > i assume its an clang issue ? termux has only clang , i also only know > some simple gcc not clang > Check your SDK version with getprop ro.build.version.sdk Then, if the number is >= 26, make sure to run the bash configure script like: ./configure CFLAGS='-target aarch64-linux-androidXX' With XX being the SDK version from getprop.
