Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51090 - ibm-jdk 1.4.1: with gcc3 system the incorrect mozilla plugin is being symlinked
Summary: ibm-jdk 1.4.1: with gcc3 system the incorrect mozilla plugin is being symlinked
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-14 14:50 UTC by William Blew
Modified: 2004-10-05 11:55 UTC (History)
1 user (show)

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 William Blew 2004-05-14 14:50:25 UTC
The emerging of ibm-jdk-1.4.1-r1 should enable its use as a mozilla plugin. It does this by symbolic linking:
    /usr/lib/mozilla/plugins/libjavaplugin_oji.so
to 
    /opt/ibm-jdk-1.4.1/jre/bin/libjavaplugin_oji.so

However, the above link isn't valid when mozilla was compiled with a gcc3
compiler. Instead the target of the link should be (note the gcc3 suffix):

    /opt/ibm-jdk-1.4.1/jre/bin/libjavaplugin_ojigcc3.so

The result of this behaviour is that the ibm-jdk-1.4.1 with a gcc3 system fails to properly enable its mozilla java plugin. This issue has the obscure, yet easy workaround of manually symlinking the libjavaplugin_oji.so correctly for gcc3.

Perhaps the ebuild could be changed to defect gcc3 system and react correctly?

Reproducible: Always
Steps to Reproduce:
1. on a gcc3 based system
2. emerge mozilla
3. emerge =ibm-sdk-1.4.1-r1
4. utilize java-config to specify the ibm-jdk's java VM
5. open mozilla's About Plugins dialog
Actual Results:  
Mozilla's About Plugins dialog fails to identify any java plugin.

Expected Results:  
Mozilla's About Plugins dialog should list the plugin:
    IBM Java(TM) Plug-in: J2RE 1.4.1 IBM build cxia321411-20040301

Gentoo Base System version 1.4.10
Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 AMD Athlon(tm) XP 3200+
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -fomit-frame-pointer -mfpmath=sse,387 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /lib/modules /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -fomit-frame-pointer -mfpmath=sse,387 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache nostrip sandbox"
GENTOO_MIRRORS="http://gentoo.llarian.net/ http://gentoo.binarycompass.org
http://mirror.tucdemonic.org/gentoo/ http://mirrors.tds.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apache2 apm avi berkdb bonobo cdr crypt cups dvd encode
esd evms2 evo foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib innodb
java jpeg libg++ libwww mad mikmod mmx motif mozilla moznocompose moznoirc
moznomail mozsvg mpeg mysql ncurses nls nptl oggvorbis opengl oss pam pdflib
perl php pic png python qt quicktime readline sdl slang spell sse ssl svga tcltk
tcpd tetex truetype type1 usb vim-with-x wmf x86 xml xml2 xmms xv zlib"
Comment 1 Alexandru Toma 2004-06-23 07:02:42 UTC
I can confirm this... changing the /usr/lib/nsbrowser/plugins/libjavaplugin_oji.so symlink to /opt/ibm-jdk-bin-1.4.1/jre/bin/libjavaplugin_ojigcc3.so works as intended... 

Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.20-gaming-r11)
=================================================================
System uname: 2.4.20-gaming-r11 i686 AMD Athlon(tm) XP 1600+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.iasi.roedu.net/pub/mirrors/gentoo.org http://gentoo.oregonstate.edu"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync1.ro.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apache apm avi cdr crypt cups curl encode flac foomaticdb gd gif gphoto2 gpm gtk2 guile imlib jikes jpeg libwww mad matroska mikmod mmx motif mpeg mysql ncurses nls oggvorbis opengl pam pdflib png python quicktime readline sdl slang spell sse ssl tcpd tiff truetype x86 xml2 xmms xv xvid zlib"
Comment 2 Thomas Matthijs (RETIRED) gentoo-dev 2004-10-05 11:55:28 UTC
fixed this a few days ago wit the big plugin cleanup