Created attachment 460582 [details] build.log This is another incident of a common issue, where ncurses splits its library into libncurses and libtinfo (or libncursesw and libtinfow) when the tinfo use flag is given. The fix is to add -ltinfo (or -ltinfow) to the compile line. x86_64-pc-linux-gnu-gcc -O2 -march=native -pipe -std=gnu89 -lvformat -Wl,-O1 -Wl,--as-needed -o abook abook.o abook_rl.o database.o edit.o filter.o getname.o getopt.o getopt1.o gettext.o ld if.o list.o mbswidth.o misc.o options.o ui.o views.o xmalloc.o vcard.o -lncursesw -lreadline /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: ui.o: undefined reference to symbol 'curs_set' /lib64/libtinfow.so.6: error adding symbols: DSO missing from command line
Created attachment 460586 [details, diff] patch to abook to fix compile error Attached a patch to fix the issue. The patch should only be applied if ncurses is built with with the tinfo USE flag enabled.
Created attachment 461700 [details, diff] pkg-config hack I think it should use pkg-config. Attached is a hack that adds it to the ebuild, but better is probably to incorporate it into the package - i.e. add pkg-config to the first patch.
Fixed in -r1.