[Bug 16051] New: "make menuconfig" fails to find ncurses library installed by package manager on Fedora
bugzilla at busybox.net
bugzilla at busybox.net
Tue Apr 30 14:59:44 UTC 2024
https://bugs.busybox.net/show_bug.cgi?id=16051
Bug ID: 16051
Summary: "make menuconfig" fails to find ncurses library
installed by package manager on Fedora
Product: Busybox
Version: 1.36.x
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at busybox.net
Reporter: hunterwnorman at gmail.com
CC: busybox-cvs at busybox.net
Target Milestone: ---
I tried configuring a BusyBox install on a new Fedora system where I installed
ncurses like so: "sudo dnf install ncurses-devel" and I got this error when
running "make menuconfig":
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make[2]: ***
[/home/test/kdev/busybox-1.36.1/scripts/kconfig/lxdialog/Makefile:15:
scripts/kconfig/lxdialog/dochecklxdialog] Error 1
make[1]: *** [/home/test/kdev/busybox-1.36.1/scripts/kconfig/Makefile:14:
menuconfig] Error 2
make: *** [Makefile:444: menuconfig] Error 2
After investigating, I modified the file "check-lxdialog.sh" at line 50 in the
check() function:
Before:
check() {
$cc -x c - -o $tmp 2>/dev/null <<'EOF'
#include CURSES_LOC
main() {}
EOF
if [ $? != 0 ]; then
echo " *** Unable to find the ncurses libraries or the" 1>&2
echo " *** required header files." 1>&2
echo " *** 'make menuconfig' requires the ncurses libraries." 1>&2
echo " *** " 1>&2
echo " *** Install ncurses (ncurses-devel) and try again." 1>&2
echo " *** " 1>&2
exit 1
fi
}
After:
check() {
$cc -x c - -o $tmp 2>/dev/null <<'EOF'
#include CURSES_LOC
int main() {}
EOF
if [ $? != 0 ]; then
echo " *** Unable to find the ncurses libraries or the" 1>&2
echo " *** required header files." 1>&2
echo " *** 'make menuconfig' requires the ncurses libraries." 1>&2
echo " *** " 1>&2
echo " *** Install ncurses (ncurses-devel) and try again." 1>&2
echo " *** " 1>&2
exit 1
fi
}
Making this modification caused the ncurses library to be found properly and I
was able to run "make menuconfig" successfully.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list