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

Bug 700540

Summary: app-text/ghostscript-gpl should set sub-SLOT operator on media-libs/jbig2dec - /usr/lib64/libgs.so: undefined reference to `jbig2_ctx_new'
Product: Gentoo Linux Reporter: piotr5
Component: Current packagesAssignee: Printing Team <printing>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description piotr5 2019-11-19 07:32:02 UTC
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?
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2019-11-19 07:49:08 UTC
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.