[EMAIL PROTECTED] writes:
...
> *+        3    /usr/lib/j2sdk1.4-sun/bin/java
...
> I also set $JAVA_HOME to "/usr/lib/j2sdk1.4-sun".

Right, looks fine.  I'm not sure the readme's document this as
well as they should.

> 
> "make jafs" can't find jni.h but the file exists in 
> "/usr/lib/j2sdk1.4-sun/incl
> ude":
> 
> gcc -pipe -I/home/cglabadmin/Desktop/openafs-1.4.4/src/libuafs 
> -I/home/cglabadm
...
> GetNativeString.c:2:17: error: jni.h: Datei oder Verzeichnis nicht gefunden

Yes.  In "afs-m40-java2.patch" I had this:
-       INC := -I${TOP_INCDIR} -I${TOP_INCDIR}/afs/ -I${JAVA_HOME}/include -I 
${JNI_INC}
+       INC := -I${TOP_INCDIR} -I${TOP_INCDIR}/afs/ -I${JAVA_HOME}/include -I 
${JNI_INC} -I ${JNI_INC}/linux

to fix this.  As far as I know, this is a debian linux packaging weirdness,
perhaps related to wanting to support multiple different java environments
simultaneously.


> now, I did ./configure --with-java-home=... and it works :)

There's a "--with-java-home"?  You *sure* about that?....
As long as it works though...


> hello,
> i get an error by creating a Token-object.
> The local cell name is in /etc/openafs/ThisCell and the ip's of our two 
> afs-ser
> vers are in /etc/openafs/CellServDB:
> 
> AFSException: Error Code: 180500; Message: error reading cell database
> AFSException: Error Code: 180500; Message: error reading cell database
>       at org.openafs.jafs.Token.getToken(Native Method)
>       at org.openafs.jafs.Token.login(Token.java:252)
>       at org.openafs.jafs.Token.<init>(Token.java:166)
>       at meinTest.main(meinTest.java:21)
> ** Can't determine local cell name!

Try "strace".  It might be looking at /etc/openafs/server/ThisCell
or /usr/vice/etc/ThisCell or something...  If it's looking at
/usr/{vice,af}/etc/ThisCell then you've managed to configure with
transarc paths but installed something configured with fhs paths.
If it's looking at /usr/local - then you didn't set prefix, &etc.

Your pre-compiled debian install was probably configured this way:
        env afslogsdir=/var/log/openafs sh configure
        --with-afs-sysname=i386_linux26 --disable-kernel-module \
        --prefix=/usr --sysconfdir=/etc \
        --libexecdir=/usr/lib --localstatedir=/var/lib
                (sysname might vary - amd64_linux26?  Try "fs sys"...)
Do a "make clean" before reconfiguring built source.

                                        -Marcus Watts
_______________________________________________
OpenAFS-devel mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-devel

Reply via email to