Hello,

While building BusyBox (current master) on Arch Linux with a recent GCC
version, I encountered a failure when running make menuconfig. The build
reported that ncurses was missing, even though the headers and libraries
were correctly installed.

*The issue is caused by the test program in:*

scripts/kconfig/lxdialog/check-lxdialog.sh
which currently contains:

main() {}
Modern GCC versions reject implicit int return types and may treat them as
errors (e.g. -Werror=implicit-int). As a result, the test compilation
fails, and the script incorrectly reports that ncurses is missing.

*Replacing it with a standards-compliant definition fixes the issue:*

int main(void) { return 0; }
This change restores compatibility with newer GCC toolchains without
altering the detection logic.

Thanks.

Signed-off-by: Arnold <[email protected]>

Attachment: 0001-kconfig-fix-implicit-int-in-check-lxdialog.sh.patch
Description: Binary data

_______________________________________________
busybox mailing list
[email protected]
https://lists.busybox.net/mailman/listinfo/busybox

Reply via email to