I'm using Arch Linux and I tried to open the menuconfig before
compilation. However it kept complaining that ncurses was not installed.
I traced the problem to the check-lxdialog.sh . There it tries to
compile a minmal C program consisting the ncurses header and an empty
main function. The exit status of this compilation serves the script as
an indicator if ncurses is found or not. However because the main
function didn't contain return type the compiler didn't return 0 and it
failed the ncurses indication.
After adding the int return type to the main function, make menuconfig
works fine.
---
scripts/kconfig/lxdialog/check-lxdialog.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh
b/scripts/kconfig/lxdialog/check-lxdialog.sh
index 5075ebf2d..4e138366d 100755
--- a/scripts/kconfig/lxdialog/check-lxdialog.sh
+++ b/scripts/kconfig/lxdialog/check-lxdialog.sh
@@ -47,7 +47,7 @@ trap "rm -f $tmp" 0 1 2 3 15
check() {
$cc -x c - -o $tmp 2>/dev/null <<'EOF'
#include CURSES_LOC
-main() {}
+int main() {}
EOF
if [ $? != 0 ]; then
echo " *** Unable to find the ncurses libraries or the" 1>&2
--
2.47.0
_______________________________________________
busybox mailing list
[email protected]
https://lists.busybox.net/mailman/listinfo/busybox