Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50596 - mozilla gcc-3.4 java problem
Summary: mozilla gcc-3.4 java problem
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 48528
  Show dependency tree
 
Reported: 2004-05-09 22:38 UTC by Jory A. Pratt
Modified: 2004-09-01 22:37 UTC (History)
3 users (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 Jory A. Pratt 2004-05-09 22:38:29 UTC
java doesnt work with mozilla or firefox when compiled with gcc-3.4

Reproducible: Always
Steps to Reproduce:
1.emerge mozilla (mozilla-firefox) using gcc-3.4
2.emerge blackdown (or your java preference)
3.refer to plugin list

Actual Results:  
plugin doesn't load

Expected Results:  
full working mozilla mozilla-firefox with java support

I have double checked the symlinks to make sure they are corrected and I have
tried sun java all with no success.
Comment 1 Tuan Van (RETIRED) gentoo-dev 2004-05-13 14:05:49 UTC
After I emerged the lastest gcc-3.4.0-r2 + gcc-config-1.3.5-r1, java-plugin works. One thing that you might want to check is the file '/etc/env.d/05gcc' make sure tht you have an entry 'LDPATH="/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.0:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.x"'
(gcc-3.3.x is the latest gcc-3.3 you've emerged.) then do `env-update && source /etc/profile`. Unless you already `emerge -C gcc-3.3.x`.
Comment 2 Travis Tilley (RETIRED) gentoo-dev 2004-05-13 17:38:50 UTC
thankyou for reporting this fixed
Comment 3 Jory A. Pratt 2004-05-15 11:38:15 UTC
I have just tried everything you said, the problem lies in mozilla-firefox being built against the gcc 3.4 libs. this system was completely bootstraped with gcc-3.4 and still has issues when using it needs to use java in the browser.
Comment 4 Carl Bach 2004-05-31 09:04:19 UTC
I have the same problem with a non-working java and gcc 3.4.0-r5. The "fix" did not work for me.

LoadPlugin: failed to initialize shared library /usr/lib/nsbrowser/plugins/java2/plugin/i386/ns600/libjavaplugin_oji.so [/usr/lib/nsbrowser/plugins/java2/plugin/i386/ns600/libjavaplugin_oji.so: undefined symbol: __vt_17nsGetServiceByCID]
LoadPlugin() /usr/lib/nsbrowser/plugins/java2/plugin/i386/ns600/libjavaplugin_oji.so returned 0
LoadPlugin() /usr/lib/nsbrowser/plugins/libnullplugin.so returned 8fdb390
GetMIMEDescription() returned "*:.*:All types"
LoadPlugin: failed to initialize shared library /usr/lib/nsbrowser/plugins/libvlcplugin.so [libstdc++.so.5: cannot open shared object file: No such file or directory]
LoadPlugin() /usr/lib/nsbrowser/plugins/libvlcplugin.so returned 0

Portage 2.0.50-r7 (default-x86-1.4, gcc-3.4.0, glibc-2.3.3_pre20040420-r0, 2.6.7-rc1-love1)
=================================================================
System uname: 2.6.7-rc1-love1 i686 AMD Athlon(TM) MP 2400+
Gentoo Base System version 1.4.15
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-mp -funroll-loops -fomit-frame-pointer -pipe -ftracer -ffast-math"
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/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-mp -funroll-loops -fomit-frame-pointer -pipe -ftracer -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.uninett.no/pub/linux/Gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-main"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X alsa apm avi berkdb bonobo crypt cups curl directfb encode esd evo faad fbcon ffmpeg flac fltk foomaticdb gdbm gif gnome gpm gstreamer gtk gtk2 guile imlib java jpeg ldap libg++ libwww live mad mikmod mmx motif mozilla mpeg mpeg4 ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang spell sse ssl svga tcltk tcpd tiff truetype usb wmf wmv x86 xine xinerama xml2 xmms xv zlib"
Comment 5 Carl Bach 2004-06-04 04:22:49 UTC
I could fix this for me with: Clearing out all old blackdown versions and installing sun-jdk. Now java works with mozilla and firefox again!
Comment 6 Jory A. Pratt 2004-06-15 16:08:50 UTC
I have retested everything when it comes to java problem. Blackdown doesnt work when using gcc-3.4.0 however java works fine when using sunjava maybe this should be upstreamed to blackdown.
Comment 7 Ronald Hummelink 2004-08-13 02:13:18 UTC
Both mozilla 1.7.x and Firefox 0.9.x work just fine with blackdown jdk (for me).

System bootstrapped with gcc 3.4 all the way.

I do have the sys-libs/libstdc++-v3-3.3.3-r1 package merged (this provides an older libstdc++ to which java is linked, my feeling says without this package you will have serious issues on precompiled c++ things)
Comment 8 Jory A. Pratt 2004-09-01 22:37:56 UTC
I have talked with the blackdown developers they do agree there is a problem and they fixed it in the latest release we have in portage already ... if anyone has any questions they are more then willing to explain things thanks for the support from all to a speedy resolution to the problem and lets keep fixin them bugs.