Print

Print


On Mon, 11 Feb 2008, Brad Cavanagh wrote:

> Hi Peter,
>
> On Mon, 11 Feb 2008, Peter W. Draper wrote:
>
>>  there has been one report of a similar problem with SPLAT in the Puana
>>  build. I'd hoped this latest release would fix that, but as I don't have
>>  access to an Intel 10.5 machine to check things, that was just a hope.
>>
>>  In the terminal where you run up SPLAT are there any messages? If so
>>  could you post them as well.
>
> Possibly tangentially related, we get the error:
>
> SPLAT_DIR = /star/starjava/bin/splat
> Feb 11, 2008 10:41:03 AM uk.ac.starlink.splat.imagedata.NDFJ <clinit>
> WARNING: Failed to load the Starlink SPLAT-VO JNI library
> Feb 11, 2008 10:41:03 AM uk.ac.starlink.splat.imagedata.NDFJ <clinit>
> WARNING: No native NDF support available
>
> ...when we try to load an NDF in SPLAT on mauka. I've done 'ant build-native 
> && ant install' on mauka, so the library should be up-to-date.
>
> We seem to remember going through this before, but can't remember how to 
> diagnose or fix it. Is there a debug option or something that'll let us 
> see why it's not loading the library?

Hi Brad,

not sure why you cannot see the fuller messages, you should, but OS X Java
seems to be reporting less and less about these problems. Anyway, I've tried
mauka out today and it seems that the problems you're having are down to
picking up the wrong libraries during the JNI build:

% otool -L /star/starjava/lib/i386/libsplat.jnilib
/star/starjava/lib/i386/libsplat.jnilib:
   /Users/bradc/development/humu-cvs-checkout/source/splat/build/lib/i386/libsplat.jnilib (compatibility version 0.0.0, current version 0.0.0)
   /Users/bradc/development/humu-cvs-checkout/source/jniast/build/lib/i386/libjniast.jnilib (compatibility version 0.0.0, current version 0.0.0)
   /star/lib/gcc-lib/i386-apple-darwin8.11.1/4.0.3/libf95.dylib (compatibility version 0.0.0, current version 0.0.0)
   /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.9)
   /usr/local/lib/libgcc_s.1.0.dylib (compatibility version 1.0.0, current version 1.0.0)
   /usr/lib/libmx.A.dylib (compatibility version 1.0.0, current version 220.0.0)

The problem is that /usr/local/lib/libgcc_s.1.0.dylib, that's a PPC library on
mauka:

% ls -l /usr/local/lib/libgcc_s.1.0.dylib 
lrwxr-xr-x   1 root  wheel  72 May 10  2007 /usr/local/lib/libgcc_s.1.0.dylib -> /local-star/lib/gcc-lib/powerpc-apple-darwin6.8/4.0.3/libgcc_s.1.0.dylib

Should be linked against the version in /star/lib. Presumably you linked 
this library elsewhere?

Peter.