2026-02-08 — linux0 [at] texto-plano.xyz
Me descargué el SDK de Espressif, (ESP8266_RTOS_SDK) e intenté correrlo, por alguna puta razón no funcionaba aunque tengo libncurses5-dev y libncurses6-dev... habia que cambiar algo en el motherfucking archivo check-lxdialog.sh ...
TL;DR: Entra al archivo ESP8266_RTOS_SDK/tools/kconfig/lxdialog/check-lxdialog.sh, buscá "main" y agregale int al inicio de forma que quede int main
De user3272754 via Unix - Stack Exchange
There's a simple issue in check-lxdialog.sh at line 50. It's making up a tiny c program and then trying to compile it. It always fails and reports ncurses as missing, unless you add "int" so main is defined as a function returning int, IOW make line 50 below say "int main", as shown:
# Check if we can link to ncurses
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
}
Credit where it's due: I learned this by following the link here, then the second link given in a post by "seth", to this post which gives the exact fix: