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

Bug 64088

Summary: sun-jdk-1.4.2-05 is linked against libXp.so.6
Product: Gentoo Linux Reporter: Jaime Lopez <jaime.lopez>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal CC: jaime.lopez
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jaime Lopez 2004-09-14 21:51:40 UTC
When running some java programs with sun's jdk, I get the following exception:

Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/sun-jdk-1.4.2.05/jre/lib/i386/libawt.so: libXp.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:1586)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503)
        at java.lang.Runtime.loadLibrary0(Runtime.java:788)
        at java.lang.System.loadLibrary(System.java:834)
        at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)
        at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
        at java.awt.Component.<clinit>(Component.java:506)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:141)
        at bsh.Capabilities.classExists(Unknown Source)
        at bsh.Capabilities.haveSwing(Unknown Source)
        at bsh.Console.main(Unknown Source)

I have no libXp.so.6 in my system; is it something specific to XFree86? I recently migrated to X.org 6.8.0

Also tried to rebuild sun's jdk with no luck (it's binary based, so it links to fixed libs)

The error is reproducible using beanshell (bsh-2.0b1.jar), and I suppose that also with other depending on AWT

Reproducible: Always
Steps to Reproduce:
1. emerge sun-jdk
2. bsh.Console
3. voila!

Actual Results:  
Exception in thread "main" java.lang.UnsatisfiedLinkError:
/opt/sun-jdk-1.4.2.05/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared
object file: No such file or directory

Expected Results:  
I suppose launching the bsh Console

Portage 2.0.50-r11 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.3.20040420-r1,
2.6.8-gentoo-r3)
=================================================================
System uname: 2.6.8-gentoo-r3 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distcc sandbox"
GENTOO_MIRRORS="http://ftp.caliu.info/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow S3TC X X509 Xaw3d aalib acpi acpi4linux alsa apache2 apm arts avi
berkdb bitmap-fonts bluetooth bonobo cdr clanJavaScript clanVoice crypt cscope
cups curl dedicated dga directfb dv dvb dvd dvdr encode esd evo faad fam fastcgi
fbcon ffmpeg firebird flash fluidsynth foomaticdb freetype fs gatos gb gd gdbm
gif gnome gnomedb gpm gstreamer gtk gtk2 gtkhtml guile i8x0 idea imagemagick
imap imlib ipv6 irmc jabber java javascript jdepend jikes joystick jpeg js kde
lcms ldap libg++ libwww mad matroska mbox mcal mdb mikmod mmx mng mono motif
mozilla mpeg mpeg4 mpi msn music mysql ncurses nls nvidia oav oci8 odbc
offensive ofx oggvorbis oldworld openal opengl openssh opie orathreads oro oscar
oss pam pcmcia pda pdflib perl php physfs png pnp postgres ppds pthreads python
qhull qt quicktime radeon rage128 readline regexp ruby samba sdk sdl sis slang
slp socks5 sox speedo speex spell sse ssl stencil-buffer stroke svg svga t1lib
tcltk tcpd threads tiff transcode transparent-proxy truetype unicode usb v4l
video_cards_3dfx video_cards_gamma video_cards_i810 video_cards_i830
video_cards_mach64 video_cards_matrox video_cards_radeon video_cards_rage128
video_cards_sis videos wmf wxwin wxwindows x86 xchattext xine xinerama xml xml2
xmms xosd xprint xv xvid yahoo zeo zlib zvbi"
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2004-09-14 23:17:11 UTC
remerge xorg-x11 and this time make sure "xprint" is in USE
Comment 2 Jaime Lopez 2004-09-16 06:32:22 UTC
xprint has always been in my USE flags
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2004-09-16 16:17:16 UTC
did you put it there manually?  because it wasn't part of the default set when xorg's new ebuilds first went in.  Please re-emerge xorg-x11