Subject: Libs for blackdown java not found - linux emu problem
To: None <>
From: Alex Sorg <>
List: netbsd-users
Date: 06/13/2004 22:25:03

On my NetBSD-2.0_Beta I have problems setting up the
blackdown-jre13-1nb1 packet for java in mozilla 1.6 (also from pkgsrc). 
Mozilla finds the plugin (symlink in mozilla/plugins/) but can't 
initialise it with the following error:

   LoadPlugin: failed to initialize shared library
   [Shared object "" not found]

It took me some time to set up the libs for the linux emu, and finally
I get this from the linux ldd:

dana:/usr/pkg/lib/mozilla/plugins% /emul/linux/usr/bin/ldd
ldd: warning: you do not have execution permission for `./' => /usr/pkg/OpenOffice.org1.1.0/program/ 
(0x4006f000) => /usr/pkg/OpenOffice.org1.1.0/program/ 
(0x40161000) => not found => not found => not found => not found => /lib/ (0x40191000) => /usr/X11R6/lib/ (0x40195000) => /usr/X11R6/lib/ (0x4019d000) => /usr/X11R6/lib/ (0x401ab000) => /lib/ (0x4028e000) => /lib/ (0x402b0000) => /usr/pkg/OpenOffice.org1.1.0/program/ 
(0x403d7000) => /usr/pkg/OpenOffice.org1.1.0/program/ 
(0x403da000) => /lib/ (0x403df000) => 
/usr/pkg/OpenOffice.org1.1.0/program/ (0x403f5000) => 
/usr/pkg/OpenOffice.org1.1.0/program/ (0x40460000)
         /lib/ => /lib/ (0x00000000)
dana:/usr/pkg/lib/mozilla/plugins% cd ..
dana:/usr/pkg/lib/mozilla% mozilla

As far as I understand, the xpcom lib can be found from the linux 
dynamic linker. So here are my two questions:

1. Why is the xpcom lib not found at mozilla startup?
2. How (if!) can a NetBSD binary use a Linux library?
2b. Do I have to use a linux mozilla to use java?

Kind regards,