checking for gsapi_new_instance in -lgs... no configure: error: You need libgs in order to compile libspectre first off, strangely app-text/ghostscript-gpl wasn't updated beforehand, problem with dependency? however, looking at config.log shows the real culprit: configure compiled the test-program without media-libs/jbig2dec which is needed in my app-text/ghostscript-gpl-9.26 libs. i.e. /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../lib64/libgs.so: undefined reference to `jbig2_ctx_new' can be fixed by adding -ljbig2dec to the $LIBS variable. alternatively upgrading to app-text/ghostscript-gpl-9.50 helped too. maybe completely remove the older broken version?
The problem you are looking at was already fixed in this commit where the sub-SLOT operator on the media-libs/jbig2dec dependency was added: commit afdbdbedba9222816f18bbf03d102bdb73ce3a15 Author: Thomas Deutschmann <whissi@gentoo.org> Date: Fri Oct 25 00:18:04 2019 +0200 app-text/ghostscript-gpl: bump to v9.50 Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> It should probably help to get your system fully up to date before you try to install new packages.