Subject: Re: Plugin java on emulated linux browsers ?
To: None <netbsd-users@netbsd.org>
From: Florence HENRY <Florence.Henry@obspm.fr>
List: netbsd-users
Date: 11/09/2003 11:57:27
On Sat, 8 Nov 2003, Christian Biere wrote:

> you probably have to put something like /usr/pkg/gcc3/lib (the path
> which contains libgcc_s.so.1) into LD_LIBRARY_PATH before starting it.
> Note, that the plugin has to be compiled with the same compiler as
> Mozilla/Netscape i.e., the C++ ABI must be compatible. If the
> browser is compiled with GCC 2.95.x, you cannot use a plugin that
> is compiled with GCC 3.x. IIRC, you can use
>
> 	strings -a libjavaplugin_oji.so|grep gcc
>
> to find out which GCC was used (if at all).

I presume that the
/usr/pkg/java/sun-1.4/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
plugin is compiled with gcc 3.x, and
/usr/pkg/java/sun-1.4/plugin/i386/ns610/libjavaplugin_oji.so
comiled with gcc 2.x

But I couldn't find which gcc was used to compile netscape7-1 :
strings -a netscape-bin | grep gcc
gives only :
.gcc_except_table

However, I tried to add
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/pkg/gcc-3.3/lib
in /usr/pkg/lib/netscape/netscape7/run-mozilla.sh
netscape7 doesn't complain anymore at startup, but if I try to load a web
page with java inside, netscape crashed with :

Internal error : Could not dup 45 into 10
Internal error : Could not dup 43 into 11
Internal error : Could not dup 41 into 12
Internal error : Could not dup 47 into 13
INTERNAL ERROR on Browser End: Could not read ack from child process
System error?:: Resource temporarily unavailable

the ktrace -di gives a 3Mo ktrace.out file, I put it here
http://wwwusr.obspm.fr/~henry/ktrace.out.bz2
if you want to have a look.

There is something that I'm not sure to understand well : both netscape7
and the java plugin are linux binaries, and the gcc3 libraries are netbsd
binaries. There is no problem to mix linux and netbsd binaries ???

----
Florence HENRY
florence.henry@obspm.fr