[OpenAFS-devel] JAFS make error
kane96@gmx.de
kane96@gmx.de
Mon, 04 Jun 2007 14:46:35 +0200
> Ok, that's a familiar error. Java 1.5 doesn't like the construction
> there. If you can use java 1.4, that should fix it. This is probably
> your simplest solution if you can do it, because other people have
> reported success in the past using stock jafs with java 1.4.
I installed jdk 1.4.2_14 and it is setuped correctly as I can see in "java -version" and "update-alternatives --config java":
cglab06:/usr/lib/j2sdk1.4-sun/include# update-alternatives --config java
Es gibt 3 Alternativen, die »java« bereitstellen.
Auswahl Alternative
-----------------------------------------------
1 /usr/bin/gij-wrapper-4.1
2 /usr/lib/jvm/java-1.5.0-sun/jre/bin/java
*+ 3 /usr/lib/j2sdk1.4-sun/bin/java
I also set $JAVA_HOME to "/usr/lib/j2sdk1.4-sun".
"make jafs" can't find jni.h but the file exists in "/usr/lib/j2sdk1.4-sun/include":
gcc -pipe -I/home/cglabadmin/Desktop/openafs-1.4.4/src/libuafs -I/home/cglabadmin/Desktop/openafs-1.4.4/include -I/include -I /include -O2 -D_REENTRANT -DLIBJUAFS -DAFS_PTHREAD_ENV -pthread -D_REENTRANT -g -O2 -D_LARGEFILE64_SOURCE -c GetNativeString.c
GetNativeString.c:2:17: error: jni.h: Datei oder Verzeichnis nicht gefunden
In file included from GetNativeString.c:3:
GetNativeString.h:5: error: expected ‘)’ before ‘*’ token
GetNativeString.h:6: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GetJavaString’
GetNativeString.c:5: error: expected ‘)’ before ‘*’ token
GetNativeString.c:49: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GetJavaString’
make[2]: *** [GetNativeString.o] Fehler 1
make[2]: Leaving directory `/home/cglabadmin/Desktop/openafs-1.4.4/src/JAVA/libjafs'
make[1]: *** [libjafs] Fehler 2
make[1]: Leaving directory `/home/cglabadmin/Desktop/openafs-1.4.4/src/JAVA/libjafs'
make: *** [libjafs] Fehler 2
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer