bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

readline dev andro termux clang build problem


From: alex xmb ratchev
Subject: readline dev andro termux clang build problem
Date: Sun, 2 Jul 2023 16:59:43 +0200

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

greets

reply via email to

[Prev in Thread] Current Thread [Next in Thread]