See bug #457530
Can you please attach the build log?
*** Bug 608250 has been marked as a duplicate of this bug. ***
Created attachment 464378 [details] build.log Attaching build.log of 0.99 here because my original bug report was marked as duplicate.
Unfortunately, I am not acquainted with the autoconf business. It sets the curseslib variable wrong - it misses -ltinfo As a work-around one can do the following: ebuild /usr/portage/app-antivirus/clamav/clamav-0.99.2.ebuild configure then patch (edit) the file /var/tmp/portage/app-antivirus/clamav-0.99.2/work/clamav-.99.2/clamdtop/Makefile according to --- clamdtop/Makefile.bck 2017-03-15 12:54:58.754529748 +0100 +++ clamdtop/Makefile 2017-03-15 12:54:58.754529748 +0100 @@ -486,7 +486,7 @@ AM_CFLAGS = AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -I$(top_srcdir)/libclamav -clamdtop_LDADD = -lssl -lcrypto -lz -lncurses $(top_builddir)/libclamav/libclamav_internal_utils_nothreads.la +clamdtop_LDADD = -lssl -lcrypto -lz -lncurses -ltinfo $(top_builddir)/libclamav/libclamav_internal_utils_nothreads.la EXTRA_DIST = clamdtop.c all: all-am Finally, run ebuild /usr/portage/app-antivirus/clamav/clamav-0.99.2.ebuild merge
Fixed in 0.99.2-r1.