<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>50582</bug_id>
          
          <creation_ts>2004-05-09 16:07 0000</creation_ts>
          <short_desc>eclipse-sdk-3.0.0_pre8 crashes with java.lang.UnsatisfiedLinkError on sun-jdk</short_desc>
          <delta_ts>2004-05-10 09:30:43 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>harmgeerts@home.nl</reporter>
          <assigned_to>karltk@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>harmgeerts@home.nl</who>
            <bug_when>2004-05-09 16:07:31 0000</bug_when>
            <thetext>First: the ebuild doesn&apos;t symlink the eclipse executable to a location in my path (/usr/lib/eclipse-3/eclipse-gtk)

Second: eclipse crashes with the following error
!SESSION May 10, 2004 00:58:53.133 ---------------------------------------------
java.version=1.4.2_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_IE
!ENTRY org.eclipse.osgi May 10, 2004 00:58:53.134
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: /usr/lib/eclipse-3/plugins/org.eclipse.swt.gtk/os/linux/x86/libswt-pi-gtk-3044.so: /usr/lib/eclipse-3/plugins/org.eclipse.swt.gtk/os/linux/x86/libswt-pi-gtk-3044.so: undefined symbol: g_thread_init
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1469)
	at java.lang.Runtime.loadLibrary0(Runtime.java:788)
	at java.lang.System.loadLibrary(System.java:834)
	at org.eclipse.swt.internal.Library.loadLibrary(Library.java:100)
	at org.eclipse.swt.internal.gtk.OS.&lt;clinit&gt;(OS.java:19)
	at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
	at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
	at org.eclipse.swt.widgets.Display.&lt;clinit&gt;(Display.java:112)
	at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:271)
	at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:151)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:66)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:277)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:239)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:117)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:267)
	at org.eclipse.core.launcher.Main.run(Main.java:692)
	at org.eclipse.core.launcher.Main.main(Main.java:676)


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




x11-libs/gtk+-2.4.1
dev-java/sun-jdk-1.4.2.04

emerge info
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.4.26)
=================================================================
System uname: 2.4.26 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.4.11
distcc 2.14 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
ACCEPT_LICENSE=&quot;&quot;
ALSA_CARDS=&quot;emu10k1&quot;
ANT_HOME=&quot;/usr/share/ant&quot;
ARCH=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
BASH_ENV=&quot;/etc/portage/bashrc&quot;
CC=&quot;gcc&quot;
CCACHE_SIZE=&quot;1G&quot;
CFLAGS=&quot;-march=athlon-xp -O3 -pipe -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CLASSPATH=&quot;.&quot;
CLEAN_DELAY=&quot;5&quot;
COLORTERM=&quot;&quot;
COMPILER=&quot;gcc3&quot;
CONFIG_PROTECT=&quot;/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config
/var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CVS_RSH=&quot;ssh&quot;
CXX=&quot;g++&quot;
CXXFLAGS=&quot;-march=athlon-xp -O3 -pipe -fomit-frame-pointer&quot;
DCCC_PATH=&quot;/usr/lib/distcc/bin&quot;
DESKTOP_SESSION=&quot;kde-3.2.2&quot;
DISPLAY=&quot;:0&quot;
DISTCC_DIR=&quot;/var/tmp/portage/.distcc&quot;
DISTCC_LOG=&quot;&quot;
DISTCC_VERBOSE=&quot;0&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
EDITOR=&quot;/bin/nano&quot;
FEATURES=&quot;autoaddcvs ccache distcc fixpackages sandbox&quot;
FETCHCOMMAND=&quot;/usr/bin/wget -t 5 --passive-ftp -P ${DISTDIR} ${URI}&quot;
GDK_USE_XFT=&quot;1&quot;
GENTOO_MIRRORS=&quot;ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo&quot;
GLIBC_SSP_CHECKED=&quot;1&quot;
GRP_STAGE23_USE=&quot;ipv6 pam tcpd readline nls ssl gpm perl python berkdb acl ncurses&quot;
GS_LIB=&quot;/home/harm/.fonts&quot;
GTK2_RC_FILES=&quot;/etc/gtk-2.0/gtkrc:/home/harm/.gtkrc-2.0:/home/harm/.kde3.2/share/config/gtkrc&quot;
GTK_RC_FILES=&quot;/etc/gtk/gtkrc:/home/harm/.gtkrc:/home/harm/.kde3.2/share/config/gtkrc&quot;
GUILE_LOAD_PATH=&quot;/usr/share/guile/1.6&quot;
G_BROKEN_FILENAMES=&quot;1&quot;
HISTCONTROL=&quot;ignoreboth&quot;
HOME=&quot;/home/harm&quot;
HOSTNAME=&quot;manuel&quot;
INFODIR=&quot;/usr/share/info:/usr/X11R6/info&quot;
INFOPATH=&quot;/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info&quot;
INPUTRC=&quot;/etc/inputrc&quot;
JAVAC=&quot;/opt/sun-jdk-1.4.2.04/bin/javac&quot;
JAVA_HOME=&quot;/opt/sun-jdk-1.4.2.04&quot;
JDK_HOME=&quot;/opt/sun-jdk-1.4.2.04&quot;
KDEDIR=&quot;/usr/kde/3.2&quot;
KDEDIRS=&quot;/usr&quot;
KDE_FULL_SESSION=&quot;true&quot;
KDE_MULTIHEAD=&quot;false&quot;
KONSOLE_DCOP=&quot;DCOPRef(konsole-18731,konsole)&quot;
KONSOLE_DCOP_SESSION=&quot;DCOPRef(konsole-18731,session-3)&quot;
LANG=&quot;en_IE@euro&quot;
LC_ALL=&quot;en_IE@euro&quot;
LESS=&quot;-R&quot;
LESSOPEN=&quot;|lesspipe.sh %s&quot;
LOGNAME=&quot;harm&quot;
LS_COLORS=&quot;no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.png=01;35:*.mpg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:&quot;
MAKEOPTS=&quot;-j3&quot;
MANPATH=&quot;/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man:/usr/X11R6/man::/opt/sun-jdk-1.4.2.04/man:/usr/qt/3/doc/man&quot;
NOCOLOR=&quot;false&quot;
OLDPWD=&quot;/home/harm&quot;
PAGER=&quot;/usr/bin/less&quot;
PATH=&quot;/bin:/usr/bin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3:/usr/X11R6/bin:/opt/sun-jdk-1.4.2.04/bin:/opt/sun-jdk-1.4.2.04/jre/bin:/opt/sun-jdk-1.4.2.04/jre/javaws:/usr/qt/3/bin:/usr/kde/3.2/bin:/usr/games/bin&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_BINHOST_CHUNKSIZE=&quot;3000&quot;
PORTAGE_CACHEDIR=&quot;/var/cache/edb/dep/&quot;
PORTAGE_CALLER=&quot;emerge&quot;
PORTAGE_GID=&quot;250&quot;
PORTAGE_MASTER_PID=&quot;17914&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/etc/portage/overlay&quot;
PRELINK_PATH=&quot;&quot;
PRELINK_PATH_MASK=&quot;/opt:/usr/lib/wine:/usr/lib/MozillaFirebird&quot;
PS1=&quot;\[\e[01;32m\][\[\e[01;35m\]\t\[\e[01;32m\]] \u@\h
\[\e[01;34m\]\w\n\[\e[01;31m\]\$ \[\e[00m\]&quot;
PWD=&quot;/home/harm/.eclipse/configuration&quot;
PYTHONDOCS=&quot;/usr/share/doc/python-docs-2.3.3-r1/html&quot;
QMAKESPEC=&quot;linux-g++&quot;
QTDIR=&quot;/usr/qt/3&quot;
RESUMECOMMAND=&quot;/usr/bin/wget -c -t 5 --passive-ftp -P ${DISTDIR} ${URI}&quot;
RPMDIR=&quot;/usr/portage/rpm&quot;
RSYNC_RETRIES=&quot;3&quot;
RSYNC_TIMEOUT=&quot;180&quot;
SANE_CONFIG_DIR=&quot;/etc/sane.d&quot;
SESSION_MANAGER=&quot;local/manuel:/tmp/.ICE-unix/18699&quot;
SHELL=&quot;/bin/bash&quot;
SHLVL=&quot;3&quot;
SYNC=&quot;rsync://rsync1.nl.gentoo.org/gentoo-portage&quot;
TERM=&quot;xterm&quot;
USE=&quot;3dnow X aalib acpi alsa apm arts avi berkdb cdr crypt cups dga dvd dvdr
encode faad fbcon flac foomaticdb gd gdbm gif gpm gtk gtk2 guile icc-pgo imap
imlib imlib2 innodb java jpeg kde libg++ libwww mad maildir matroska mikmod mmx
mpeg mysql ncurses nls offensive oggvorbis opengl oss pam pdflib perl png psyco
python qt quicktime readline samba scanner sdl slang spell sse ssl svga tcltk
tcpd tiff truetype usb x86 xinerama xml xml2 xmms xv xvid zlib&quot;
USER=&quot;harm&quot;
USERLAND=&quot;GNU&quot;
USE_EXPAND=&quot;VIDEO_CARDS INPUT_DEVICES LINGUAS&quot;
WINDOWID=&quot;37748741&quot;
XARGS=&quot;xargs -r&quot;
XCURSOR_SIZE=&quot;&quot;
XCURSOR_THEME=&quot;default&quot;
XDM_MANAGED=&quot;/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,method=classic&quot;
XINITRC=&quot;/etc/X11/xinit/xinitrc&quot;
_=&quot;/usr/bin/emerge&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>karltk@gentoo.org</who>
            <bug_when>2004-05-10 04:23:10 0000</bug_when>
            <thetext>It appears that, for some currently obscure reason, libgthread-2.0.so will not be linked in when eclipse-sdk-3.0.0_pre8 is compiled with the sun-jdk.

Compiling it with the blackdown-jdk works, and it can even be run with the sun-jdk afterwards. I will look into this further. Thanks for spotting this one.

If you happen to have the IBM JDK lying around, please feel free to test with that one also:)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>karltk@gentoo.org</who>
            <bug_when>2004-05-10 08:45:26 0000</bug_when>
            <thetext>Even more interesting: Building with sun-jdk then running with blackdown-jdk works, but running with sun-jdk after building with sun-jdk fails.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>karltk@gentoo.org</who>
            <bug_when>2004-05-10 08:50:52 0000</bug_when>
            <thetext>Cannot seem to reproduce the symlink problem. Be advised that the 3.0 eclipse series will have script file named /usr/bin/eclipse-3 not a symlink.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>karltk@gentoo.org</who>
            <bug_when>2004-05-10 09:30:43 0000</bug_when>
            <thetext>Found it. Stupid typo on my part. 

Available for testing as dev-util/eclipse-3.0.0_pre8-r1</thetext>
          </long_desc>
      
    </bug>

</bugzilla>