crashes after building from most recent sources

Kelly O'Hair kelly.ohair at
Mon Mar 21 09:11:34 PDT 2011

On Mar 20, 2011, at 11:07 AM, Greg Lewis wrote:

>> +JVMLIB          = -Xlinker -rpath -Xlinker $(LIBDIR)/$(LIBARCH)/$(VM_NAME) -L$(LIBDIR)/$(LIBARCH)/$(VM_NAME) -ljvm

Normally you would not bake in a runpath/rpath directly to a particular JVM library instance.
It's not unusual to have shared libraries with a dependency on JVM but not have a runpath/rpath
directory that includes the JVM. This is normal.
The JVM library instances are usually the ones that dlopen/LoadLibrary these other shared libraries.
Since there are multiple JVM instances, you need to let the JVM drive, so to speak.

So for example, on Solaris you would see:

svc6<821> ldd /opt/java/jdk1.7.0/jre/lib/i386/ =>     (file not found)                  <------------------------------ =>  /opt/java/jdk1.7.0-b134/jre/lib/i386/ =>        /lib/ =>   /lib/ =>    /lib/ =>     /lib/ =>     (file not found) =>    /lib/ =>    /lib/ =>   /lib/ =>         /lib/ =>   /lib/ =>        /usr/lib/ =>     /lib/

You would need to do this:
   ( setenv LD_LIBRARY_PATH  /opt/java/jdk1.7.0-b134/jre/lib/i386/server &&  ldd /opt/java/jdk1.7.0/jre/lib/i386/ )
to get utilities like ldd to find


-------------- next part --------------
An HTML attachment was scrubbed...

More information about the bsd-port-dev mailing list