[Buildroot] [PATCH 2/2] package/ncurses: Also build termlib
Bagas Sanjaya
bagasdotme at gmail.com
Sat Sep 20 07:47:10 UTC 2025
As a side effect of readline fix in previous commit, building host-gdb
fails with undefined reference to ncurses error:
CXX init.o
CXXLD gdb
/usr/bin/ld: /home/bagas/repo/buildroot/output/host/lib/libreadline.so: undefined reference to `tgoto at NCURSES6_TINFO_5.0.19991023'
/usr/bin/ld: /home/bagas/repo/buildroot/output/host/lib/libreadline.so: undefined reference to `UP at NCURSES6_TINFO_5.0.19991023'
/usr/bin/ld: /home/bagas/repo/buildroot/output/host/lib/libreadline.so: undefined reference to `tgetent at NCURSES6_TINFO_5.0.19991023'
/usr/bin/ld: /home/bagas/repo/buildroot/output/host/lib/libreadline.so: undefined reference to `tgetnum at NCURSES6_TINFO_5.0.19991023'
/usr/bin/ld: /home/bagas/repo/buildroot/output/host/lib/libreadline.so: undefined reference to `PC at NCURSES6_TINFO_5.0.19991023'
/usr/bin/ld: /home/bagas/repo/buildroot/output/host/lib/libreadline.so: undefined reference to `tgetstr at NCURSES6_TINFO_5.0.19991023'
/usr/bin/ld: /home/bagas/repo/buildroot/output/host/lib/libreadline.so: undefined reference to `tgetflag at NCURSES6_TINFO_5.0.19991023'
/usr/bin/ld: /home/bagas/repo/buildroot/output/host/lib/libreadline.so: undefined reference to `BC at NCURSES6_TINFO_5.0.19991023'
/usr/bin/ld: /home/bagas/repo/buildroot/output/host/lib/libreadline.so: undefined reference to `tputs at NCURSES6_TINFO_5.0.19991023'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:2232: gdb] Error 1
Fix above by also building termlib (libtinfo.so.6) so that host-readline
is linked to ncurses from buildroot instead from host distro.
Signed-off-by: Bagas Sanjaya <bagasdotme at gmail.com>
---
package/ncurses/ncurses.mk | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/package/ncurses/ncurses.mk b/package/ncurses/ncurses.mk
index 864f62b57c..a837ac96bf 100644
--- a/package/ncurses/ncurses.mk
+++ b/package/ncurses/ncurses.mk
@@ -162,7 +162,9 @@ HOST_NCURSES_CONF_OPTS = \
--without-ada \
--with-default-terminfo-dir=/usr/share/terminfo \
--disable-db-install \
- --without-normal
+ --without-normal \
+ --with-termlib \
+ --disable-widec
$(eval $(autotools-package))
$(eval $(host-autotools-package))
--
An old man doll... just what I always wanted! - Clara
More information about the buildroot
mailing list