Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 399367 - dev-java/fop or one of its dependencies is requiring x11-libs/libXtst to work correctly.
Summary: dev-java/fop or one of its dependencies is requiring x11-libs/libXtst to work...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-19 10:33 UTC by tristanC
Modified: 2012-02-06 07:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tristanC 2012-01-19 10:33:22 UTC
After emerging dev-java/fop to build a documentation it failed with:
fop src.fo dst.pdf
Exception in thread "main" java.util.ServiceConfigurationError: sun.java2d.cmm.PCMM: Provider sun.java2d.cmm.lcms.LCMS could not be instantiated: java.lang.UnsatisfiedLinkError: /opt/icedtea6-bin-1.10.4/jre/lib/amd64/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
	at java.util.ServiceLoader.fail(ServiceLoader.java:224)
	at java.util.ServiceLoader.access$100(ServiceLoader.java:181)
	at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:370)
	at java.util.ServiceLoader$1.next(ServiceLoader.java:438)
	at sun.java2d.cmm.CMSManager$1.run(CMSManager.java:65)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.java2d.cmm.CMSManager.getModule(CMSManager.java:55)
	at java.awt.color.ICC_Profile.activateDeferredProfile(ICC_Profile.java:1100)
	at java.awt.color.ICC_Profile$1.activate(ICC_Profile.java:741)
	at sun.java2d.cmm.ProfileDeferralMgr.activateProfiles(ProfileDeferralMgr.java:93)
	at java.awt.color.ICC_Profile.getInstance(ICC_Profile.java:774)
	at java.awt.color.ICC_Profile.getInstance(ICC_Profile.java:994)
	at java.awt.color.ICC_Profile.getInstance(ICC_Profile.java:959)
	at java.awt.color.ICC_Profile$2.run(ICC_Profile.java:910)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.color.ICC_Profile.getStandardProfile(ICC_Profile.java:905)
	at java.awt.color.ICC_Profile.getInstance(ICC_Profile.java:866)
	at java.awt.color.ColorSpace.getInstance(ColorSpace.java:321)
	at com.sun.imageio.plugins.jpeg.JPEG.<clinit>(JPEG.java:217)
	at com.sun.imageio.plugins.jpeg.JPEGImageReaderSpi.<init>(JPEGImageReaderSpi.java:45)
	at javax.imageio.spi.IIORegistry.registerStandardSpis(IIORegistry.java:175)
	at javax.imageio.spi.IIORegistry.<init>(IIORegistry.java:137)
	at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:159)
	at javax.imageio.ImageIO.<clinit>(ImageIO.java:64)
	at org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO.getSupportedMIMETypes(ImageLoaderFactoryImageIO.java:39)
	at org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO.isAvailable(ImageLoaderFactoryImageIO.java:59)
	at org.apache.xmlgraphics.image.loader.spi.ImageImplRegistry.registerLoaderFactory(ImageImplRegistry.java:163)
	at org.apache.xmlgraphics.image.loader.spi.ImageImplRegistry.discoverClasspathImplementations(ImageImplRegistry.java:97)
	at org.apache.xmlgraphics.image.loader.spi.ImageImplRegistry.<init>(ImageImplRegistry.java:70)
	at org.apache.xmlgraphics.image.loader.spi.ImageImplRegistry.getDefaultInstance(ImageImplRegistry.java:79)
	at org.apache.xmlgraphics.image.loader.ImageManager.<init>(ImageManager.java:48)
	at org.apache.fop.apps.FopFactory.<init>(FopFactory.java:154)
	at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:166)
	at org.apache.fop.cli.CommandLineOptions.<init>(CommandLineOptions.java:102)
	at org.apache.fop.cli.Main.startFOP(Main.java:153)
	at org.apache.fop.cli.Main.main(Main.java:197)
Caused by: java.lang.UnsatisfiedLinkError: /opt/icedtea6-bin-1.10.4/jre/lib/amd64/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1646)
	at java.lang.Runtime.load0(Runtime.java:787)
	at java.lang.System.load(System.java:1022)
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1667)
	at java.lang.Runtime.loadLibrary0(Runtime.java:840)
	at java.lang.System.loadLibrary(System.java:1047)
	at sun.java2d.cmm.lcms.LCMS$1.run(LCMS.java:94)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.java2d.cmm.lcms.LCMS.<clinit>(LCMS.java:88)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:362)
	... 33 more

Problem solved by doing:
emerge -va x11-libs/libXtst


Reproducible: Always
Comment 1 Ralph Sennhauser (RETIRED) gentoo-dev 2012-01-27 10:39:06 UTC
Could you please add/describe the test case?

Also as a workaround you could remove the directory /opt/icedtea6-bin-1.10.4/jre/lib/amd64/xawt so that the sun.java2d.HeadlessGraphicsEnvironment will be used instead of sun.java2d.X11GrapicsEnvironment.
Comment 2 Ralph Sennhauser (RETIRED) gentoo-dev 2012-02-06 07:21:16 UTC
(In reply to comment #1)
> Could you please add/describe the test case?
> 
> Also as a workaround you could remove the directory
> /opt/icedtea6-bin-1.10.4/jre/lib/amd64/xawt so that the
> sun.java2d.HeadlessGraphicsEnvironment will be used instead of
> sun.java2d.X11GrapicsEnvironment.

With icedtea 6.1.10.5 and 6.1.11 X11GrapicsEnvironment is no longer installed and so there is no longer a need to invoke java with -Djava.awt.headless=true to use the HeadlessGraphicsEnvironment.