Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 621976

Summary: dev-util/ddd-3.3.12-r3 doesn't recognize ncurses: configure: error: Cannot find termcap compatible library.
Product: Gentoo Linux Reporter: Bodo Thiesen <bothie>
Component: Current packagesAssignee: Maciej Mrozowski <reavertm>
Status: RESOLVED DUPLICATE    
Severity: critical    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 457530    

Description Bodo Thiesen 2017-06-16 22:22:49 UTC
[...]
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
Comment 1 Michael Palimaka (kensington) gentoo-dev 2017-06-18 07:24:52 UTC
I assume your ncurses is built with USE="tinfo"?
Comment 2 Bodo Thiesen 2017-06-18 23:20:58 UTC
[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.
Comment 3 Maciej Mrozowski gentoo-dev 2017-06-19 00:15:26 UTC
This guess is already fixed in 3.3.12-r4 and we should stabilize that.
Comment 4 Maciej Mrozowski gentoo-dev 2017-06-19 00:51:35 UTC

*** This bug has been marked as a duplicate of bug 458186 ***