Hello, I sent that more or less same patch months ago, which was included in buildroot. The difference with my patch is that I also removed the 2>/dev/null redirection so that it does not hide the issue and I added a return zero because AFAIK the C programming does not allow the main to omit the return, this is actually defined in C++ and GCC allows it as a non-standard extension. So to avoid any future warning if the diagnostic level is raised again, I just prefer writing everything explicitely once and for all.
Le jeu. 6 mars 2025 à 16:24, R Z <[email protected]> a écrit : > 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 > _______________________________________________ > busybox mailing list > [email protected] > https://lists.busybox.net/mailman/listinfo/busybox >
_______________________________________________ busybox mailing list [email protected] https://lists.busybox.net/mailman/listinfo/busybox
