after ncurses upgrade, slang fails to compile, ld searching -ltermcap. downgrading ncurses solves the problem. from log: x86_64-pc-linux-gnu-gcc -march=k8 -O2 -pipe slsh.o readline.o -o slsh_exe -Wl, -O1 -Wl,-export-dynamic -L/var/tmp/portage/sys-libs/slang-2.1.4/work/slang-2.1.4 /src/elfamd64objs -lslang -lreadline -ltermcap -ldl -lm /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../x86_64-pc-linux-gnu/bin/ld: c annot find -ltermcap Reproducible: Always Steps to Reproduce: 1. upgrade to ncurses-5.7 2. upgrade to slang-2.1.4 Actual Results: <snip> x86_64-pc-linux-gnu-gcc -march=k8 -O2 -pipe slsh.o readline.o -o slsh_exe -Wl, -O1 -Wl,-export-dynamic -L/var/tmp/portage/sys-libs/slang-2.1.4/work/slang-2.1.4 /src/elfamd64objs -lslang -lreadline -ltermcap -ldl -lm /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../x86_64-pc-linux-gnu/bin/ld: c annot find -ltermcap </snip>
*** Bug 245377 has been marked as a duplicate of this bug. ***
Like Uwe Barthel pointed out in the duplicate bug, this error seems to be the same like bug #210063 Assigning bug to cjk...
Another workaround is to recompile sys-libs/ncurses with USE="-berkdb", after that slang compiles fine. My USE flags for both are: [ebuild R ] sys-libs/ncurses-5.7 USE="unicode -ada -berkdb -debug -doc -gpm -minimal -nocxx -profile -trace" 0 kB [ebuild R ] sys-libs/slang-2.1.4 USE="pcre readline -cjk -png" 0 kB
it seems that ncurses has the issue. 'emerge =ncurses-5.7' doesn't install /usr/share/terminfo/* files.
It's surprising that it's an issue _now_, since I added the hashed-database option two years ago, for ncurses 5.6 (what changed?).
30 Apr 2009; Samuli Suominen <ssuominen@gentoo.org> ncurses-5.6-r2.ebuild, ncurses-5.7.ebuild: Because ncurses5-config --terminfo returns /usr/share/terminfo we keepdir it wrt #245374. 30 Apr 2009; Samuli Suominen <ssuominen@gentoo.org> slang-2.1.3-r1.ebuild, slang-2.1.4.ebuild: Because ncurses5-config --terminfo returns /usr/share/terminfo we keepdir it wrt #245374 and drop USE -minimal depend.