Subject: Re: pdf plugin under firefox for Linux
To: None <tech-pkg@NetBSD.org>
From: Jonathan Perkin <jonathan@perkin.org.uk>
List: tech-pkg
Date: 05/04/2004 11:22:58
--jTMWTj4UTAEmbWeb
Content-Type: multipart/mixed; boundary="0IvGJv3f9h+YhkrH"
Content-Disposition: inline


--0IvGJv3f9h+YhkrH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* On 2004-05-03 at 21:11 BST, Bryan Vyhmeister wrote:

> The error that appears when I try to start firefox-linux with=20
> firefox-bin-java installed is as follows:
>=20
> LoadPlugin: failed to initialize shared library=20
> /usr/pkg/java/sun-1.3.1/plugin/i386/ns600/libjavaplugin_oji.so=20
> [/usr/pkg/java/sun-1.3.1/plugin/i386/ns600/libjavaplugin_oji.so:=20
> undefined symbol: __vt_17nsGetServiceByCID]
>=20
> Any ideas how to solve this?

Yes, the firefox binary is built using GCC3.* while the java
plugin from the sun-1.3.1 distribution uses GCC2.*, causing
incompatibilities with the shared libraries.  You need to use
the GCC3.*-compiled plugin which is available in the 1.4 JRE.

Try applying the attached diffs to fix the problem, I've been
running them for a while on my laptop with no issues.

I'd like to commit this if it works ok for other people, I'm
just wary as to why it hasn't already been done yet as the
package has been broken for quite a while.  Not knowing anything
about Java makes me more wary.

As a side note, I think the MOZILLA_USE_LINUX thing is too
confusing, and these packages should clearly be marked that they
are Linux-only, as the current out-of-the-box default for pkgsrc
is to install them blindly to the firefix-netbsd directory when
they have no hope of working in there.

Cheers,

--=20
Jonathan Perkin                         <jonathan@perkin.org.uk>
BBC Internet Services         http://www.perkin.org.uk/jonathan/

--0IvGJv3f9h+YhkrH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="firefoxjava.diff"
Content-Transfer-Encoding: quoted-printable

Index: Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/pkgsrc/www/firefox-bin-java/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile	22 Mar 2004 03:23:58 -0000	1.4
+++ Makefile	4 May 2004 10:22:07 -0000
@@ -6,9 +6,9 @@
 DISTFILES=3D		# empty
=20
 MAINTAINER=3D		kei@NetBSD.org
-COMMENT=3D		Java Run Time Environment (JRE) 1.3 plugin for firefox-bin
+COMMENT=3D		Java Run Time Environment (JRE) 1.4 plugin for firefox-bin
=20
-DEPENDS+=3D		sun-jre13-[0-9]*:../../lang/sun-jre13
+DEPENDS+=3D		sun-jre14-[0-9]*:../../lang/sun-jre14
 DEPENDS+=3D		firefox-bin>=3D0.8:../../www/firefox-bin
=20
 ONLY_FOR_PLATFORM=3D	Linux-*-i386 NetBSD-1.[6-9]*-i386 NetBSD-[2-9]*-i386
@@ -21,7 +21,7 @@
 NO_BUILD=3D		YES
=20
 NS_PLUGINS_DIR=3D	${PREFIX}/lib/firefox-linux/plugins
-PLUGIN=3D		${PREFIX}/java/sun-1.3.1/plugin/i386/ns600/libjavaplugin_oji.so
+PLUGIN=3D		${PREFIX}/java/sun-1.4/plugin/i386/ns610-gcc32/libjavaplugin_oj=
i.so
=20
 do-install:
 	${INSTALL_DATA_DIR} ${NS_PLUGINS_DIR}
Index: PLIST
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/pkgsrc/www/firefox-bin-java/PLIST,v
retrieving revision 1.1
diff -u -r1.1 PLIST
--- PLIST	10 Feb 2004 12:55:21 -0000	1.1
+++ PLIST	4 May 2004 10:22:07 -0000
@@ -1,3 +1,2 @@
 @comment $NetBSD: PLIST,v 1.1 2004/02/10 12:55:21 grant Exp $
-@exec ${LN} -s %D/java/sun-1.3.1/plugin/i386/ns600/libjavaplugin_oji.so %%=
D/lib/firefox-linux/plugins/libjavaplugin_oji.so
 lib/firefox-linux/plugins/libjavaplugin_oji.so

--0IvGJv3f9h+YhkrH--

--jTMWTj4UTAEmbWeb
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iQEVAwUBQJdvAiFee6/VMqV4AQLt/Af9HTG9wPRqg/QwZeScTfGK0SZgTw7OT3NH
uw+Zw2mpQnu8LRMT1NLOgyirBk60JpoN10zyGnUnHWVLQWRoZ/pdt/Vwj05Vle30
cudEJzPNrIx0yYtnisNT0tR4/ruKdyMUHGGR1sqXddfoknnVJaj+HDUk5UD2u/1k
IKRfrtgLDYww/MMTMALw3EHsgcJRXNMHKa0qoAFxmmSflZbZEvdGI8EqNwPfGjhd
OIUKDtlJrahYCTSkrawf3GI0X/YGHBbqwZmr+MvlzHU1D7vhwlmEIgIVNCIohEOp
lor6osUF79Ejpe9m3EFlqJItXjku1qULlQS+cv4dg1UZp8Wx9tVN6w==
=yj20
-----END PGP SIGNATURE-----

--jTMWTj4UTAEmbWeb--