bug-readline
[Top][All Lists]
Advanced

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

Re: readline dev andro termux clang build problem


From: Grisha Levit
Subject: Re: readline dev andro termux clang build problem
Date: Mon, 3 Jul 2023 04:39:01 -0400



On Sun, Jul 2, 2023, 11:36 alex xmb ratchev <fxmbsw7@gmail.com> wrote:
complete.c:2342:7: error: call to undeclared function 'setpwent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      setpwent ();
      ^

The regular rl_username_completion_function body should probably be skipped on platforms without getpwent, not just for _WIN32 explicitly (patch attached).  This would solve the issue on older Android versions.

But it doesn't actually solve the issue reported, which is due to a (imho) bug in Termux [1], where the default clang target doesn't have the same API level as that of libc, so some functions that are linkable are nevertheless not declared in headers unless the API level is overridden.

[1]: https://github.com/termux/termux-packages/issues/2469#issuecomment-522669644

Attachment: 0001-no-username-completion-wo-getpwent.patch
Description: Text Data


reply via email to

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