[PATCH] fix make menuconfig when using gcc 14

R Z rzed781 at gmail.com
Thu Mar 6 15:23:47 UTC 2025


Hello,

make menuconfig fails when using gcc 14 due to outdated syntax which
now returns an error instead of a warning. It incorrectly reports that
ncurses is not installed. The following patch fixes this:

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


More information about the busybox mailing list