[...] checking for tgetent in -lncurses... no configure: error: Cannot find termcap compatible library. [...] # ( cd /var/db/pkg && ls -1d */ncurses* ) sys-libs/ncurses-5.9-r101 sys-libs/ncurses-6.0-r1 # ( objdump -T /usr/lib64/libncurses.so.5; objdump -T /lib64/libncurses.so.6 ) | grep tgetent | wc -l 0 -> So, it's actually not there. However, it's somewhere else: # ( for i in $(grep -h "/lib\(64\)\?/" /var/db/pkg/sys-libs/ncurses-*/CONTENTS | sed -e 's+/lib\(64\)\?/\(debug\|pkgconfig\)\(\(/usr\)\?/lib\(64\)\?\)\?/+/GO_AWAY/+' | grep "/lib\(64\)\?/" | grep -v "^\(dir\|sym\) " | sed -e 's/^obj \(.*\) [0-9a-f]\+ [0-9]\+$/\1/'); do objdump -T "$i" 2>/dev/null | sed -e "s#^.*\$#$(grep -l "^obj $i [0-9a-f]\+ [0-9]\+\$" /var/db/pkg/sys-libs/ncurses-*/CONTENTS | sed -e 's#^/var/db/pkg/\(sys-libs/ncurses-.*\)/CONTENTS#\1#' ) $i &#"; done ) | grep tgetent sys-libs/ncurses-5.9-r101 /usr/lib64/libtinfow.so.5 0000000000012b20 g DF .text 000000000000060d Base tgetent sys-libs/ncurses-5.9-r101 /usr/lib64/libtinfo.so.5 0000000000012b20 g DF .text 000000000000060d Base tgetent sys-libs/ncurses-6.0-r1 /usr/lib64/libtinfotw.so.6.0 000000000000deb0 g DF .text 0000000000000925 Base tgetent_sp sys-libs/ncurses-6.0-r1 /usr/lib64/libtinfotw.so.6.0 000000000000e7d8 g DF .text 0000000000000015 Base tgetent sys-libs/ncurses-6.0-r1 /usr/lib64/libtinfot.so.6.0 000000000000deb0 g DF .text 0000000000000925 Base tgetent_sp sys-libs/ncurses-6.0-r1 /usr/lib64/libtinfot.so.6.0 000000000000e7d8 g DF .text 0000000000000015 Base tgetent sys-libs/ncurses-6.0-r1 /lib64/libtinfo.so.6.0 0000000000015d30 g DF .text 0000000000000665 Base tgetent_sp sys-libs/ncurses-6.0-r1 /lib64/libtinfo.so.6.0 0000000000016398 g DF .text 0000000000000015 Base tgetent sys-libs/ncurses-6.0-r1 /lib64/libtinfow.so.6.0 0000000000015d30 g DF .text 0000000000000665 Base tgetent_sp sys-libs/ncurses-6.0-r1 /lib64/libtinfow.so.6.0 0000000000016398 g DF .text 0000000000000015 Base tgetent Reproducible: Always
I assume your ncurses is built with USE="tinfo"?
[ebuild R ] sys-libs/ncurses-5.9-r101:5::gentoo USE="tinfo unicode -gpm" ABI_X86="32 (64) (-x32)" 0 KiB [ebuild R ] sys-libs/ncurses-6.0-r1:0/6::gentoo USE="cxx threads tinfo unicode -ada -debug -doc -gpm -minimal -profile -static-libs {-test} -trace" ABI_X86="32 (64) (-x32)" 0 KiB You assume correctly. Sadly for me, just removing tinfo is no option, because dev-util/android-studio seemes to need tinfo on ncurses for some reason.
This guess is already fixed in 3.3.12-r4 and we should stabilize that.
*** This bug has been marked as a duplicate of bug 458186 ***