I try to compile resin 4.0.13 pro on macosx 10.6.4 intel

Here is the error during ./configure :

configure: error:

     *** Can't find JNI directory in 
     *** JNI is expected in 

In configure script there is a

test -r "$JAVA_HOME/../Headers/jni_md.h"

and this actually won't work because 
/System/Library/Frameworks/JavaVM.framework/Headers/jni_md.h exists but 
is a soft link within a directory which is a soft link :

 > ll /System/Library/Frameworks/JavaVM.framework/Headers/jni_md.h

lrwxr-xr-x  1 root  wheel  33 24 jul 16:15 
/System/Library/Frameworks/JavaVM.framework/Headers/jni_md.h -> 

 > ll /System/Library/Frameworks/JavaVM.framework/Headers

lrwxr-xr-x  1 root  wheel  24 25 oct 08:50 
/System/Library/Frameworks/JavaVM.framework/Headers -> 

So replacing test -r by test -L should normally work, but actually it 
won't, because :

 > test -L /System/Library/Frameworks/JavaVM.framework/Headers/jni_md.h
 > echo $?

all right without /../, BUT :

 > test -L 
 > echo $?

fails with the /../

For the moment I replaced with full path hardcoded
Same problem for JVMTI except that the test -L will work.

Now configure is all right but make as an error :

 > make
Makefile:283: warning: overriding commands for target 
Makefile:273: warning: ignoring old commands for target 
CDPATH="${ZSH_VERSION+.}:" && cd . && aclocal -I m4
aclocal: couldn't open directory `m4': No such file or directory
make: *** [aclocal.m4] Error 1

I don't know how to solve this one.
Thanks for your help.

For information, there was no error in 4.0.10

Riccardo Cohen
Architecte du Logiciel
+33 (0)
Membre du réseau http://www.reflexe-conseil-centre.org

resin-interest mailing list

Reply via email to