Gentoo Archives: gentoo-dev

From: Matthew Kennedy <mkennedy@g.o>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Java-Plugin in Mozilla with GCC3.1(.1)
Date: Sun, 11 Aug 2002 03:37:04
Message-Id: 87wuqxg58y.fsf@gentoo.shacknet.nu
In Reply to: [gentoo-dev] Java-Plugin in Mozilla with GCC3.1(.1) by Alexander Jordan
1 Alexander Jordan <jordan29@×××××.de> writes:
2
3 > Hi,
4 >
5 > I'm very enthusiastic about Gentoo, its speed and its configurability.
6 > But there's the problem with mozilla (same seems to be with konqueror) an the
7 > java-plugin.
8 >
9 > I use Gentoo 1.3b, once Athlon-optimized and another i686-optimized with
10 > latest updates by portage (gcc3.1.1, mozilla1.0-r3,blackdown-jdk-1.3.1-r7)
11 > and get this errormessage:
12 >
13 > alex@spitmobil ~ $ mozilla -d
14 >
15 > Gdk-WARNING **: locale not supported by Xlib, locale set to C
16 > LoadPlugin: failed to initialize shared library
17 > /opt/blackdown-jdk-1.3.1/jre/plugin/i386/mozilla/javaplugin_oji.so
18 > [/opt/blackdown-jdk-1.3.1/jre/plugin/i386/mozilla/javaplugin_oji.so:
19 > undefined symbol: __vt_17nsGetServiceByCID]
20 > LoadPlugin: failed to initialize shared library
21 > /usr/lib/mozilla/plugins/java2/plugin/i386/ns600/libjavaplugin_oji.so
22 > [/usr/lib/mozilla/plugins/java2/plugin/i386/ns600/libjavaplugin_oji.so:
23 > undefined symbol: __vt_17nsGetServiceByCID]
24 >
25 > I hope you know anybody in your team, who can resolve this problem :-).
26
27 I think it's a safe bet if I say that nothing can be done about this
28 at the moment. You really need to lobby your Java vendor on this
29 issue.
30
31 http://developer.java.sun.com/developer/bugParade/bugs/4694590.html
32
33 You'll need to sign up to view that URL... might be worth while too
34 since you can vote that bug to be your priority/favourite bug. You can
35 also see what the Sun engineer assigned to it thinks.
36
37 Basically the problem is this: The JDK (IBM, Sun, Blackdown) was
38 compiled against GCC 2.95.x and then distributed to you. Because the
39 C++ ABI changed between GCC 2.95.x and GCC 3.1.x, the GCC
40 2.95.x-compiled JNI[1] portion of the JDK is incompatible with GCC
41 3.1.x compiled interfaces to it. This is the case of the JDK's JNI
42 and, say, the JNI code you compiled with GCC 3.1.x for Mozilla.
43
44 Hope that makes sense.
45
46 If you have an applet you really need to access, you might be able to
47 work-around with the standalone "appletviewer" program bundled with
48 most JDK/JRE.
49
50 The other alternative is to get the source to the JDK and compile it
51 yourself. But this has its own problems with respect to your freedoms
52 and in any case, it's possible (so I hear anyway) that their source
53 release may not be equivlent the source used to compile the JDK for
54 binary release.
55
56 Footnotes:
57 [1] JNI is the interface between Java byte-code and native C++ code.
58
59 --
60 Matthew Kennedy
61 Gentoo Linux Developer
62 Bugs go to http://bugs.gentoo.org!

Replies

Subject Author
Re: [gentoo-dev] Java-Plugin in Mozilla with GCC3.1(.1) Chris Bainbridge <C.J.Bainbridge@×××××.uk>