Thread: [Kosmosfs-users] Error compiling JNI
Status: Alpha
Brought to you by:
sriramsrao
From: Clement J. <jeb...@gm...> - 2009-05-04 10:07:37
|
Hi.. Linking CXX executable rereplicator [ 98%] Built target rereplicator Scanning dependencies of target kfs_access [ 99%] Building CXX object src/cc/access/CMakeFiles/kfs_access.dir/KfsAccessJni.o In file included from /home/clement/code/kfs/src/cc/access/KfsAccessJni.cc:28: /usr/lib/jvm/java-6-sun-1.6.0.13/include/jni.h:39: error: conflicting declaration ‘typedef unsigned char jboolean’ /usr/lib/gcc/i486-linux-gnu/4.3.3/include/jni_md.h:81: error: ‘jboolean’ has a previous declaration as ‘typedef signed char jboolean’ gmake[2]: *** [src/cc/access/CMakeFiles/kfs_access.dir/KfsAccessJni.o] Error 1 gmake[1]: *** [src/cc/access/CMakeFiles/kfs_access.dir/all] Error 2 gmake: *** [all] Error 2 I got his error with java-6-sun, then i changed to java-gcj it worked.. but error in java-6-sun Clement Jebakumar, http://www.declum.com/clement.html |
From: kuer ku <ku...@gm...> - 2009-05-13 09:18:04
|
hi, Clement, Are you going to work with KFS in Java environment ? If not, you may disable java environment when compiling KFS module. Just try to check code/CMakeLists.txt , and comment something like JAVA_INCLUDE_DIR , it is simple. thanks - kuer On Mon, May 4, 2009 at 6:07 PM, Clement Jebakumar <jeb...@gm...>wrote: > Hi.. > > Linking CXX executable rereplicator > [ 98%] Built target rereplicator > Scanning dependencies of target kfs_access > [ 99%] Building CXX object > src/cc/access/CMakeFiles/kfs_access.dir/KfsAccessJni.o > In file included from > /home/clement/code/kfs/src/cc/access/KfsAccessJni.cc:28: > /usr/lib/jvm/java-6-sun-1.6.0.13/include/jni.h:39: error: conflicting > declaration ‘typedef unsigned char jboolean’ > /usr/lib/gcc/i486-linux-gnu/4.3.3/include/jni_md.h:81: error: ‘jboolean’ > has a previous declaration as ‘typedef signed char jboolean’ > gmake[2]: *** [src/cc/access/CMakeFiles/kfs_access.dir/KfsAccessJni.o] > Error 1 > gmake[1]: *** [src/cc/access/CMakeFiles/kfs_access.dir/all] Error 2 > gmake: *** [all] Error 2 > > I got his error with java-6-sun, > then i changed to java-gcj it worked.. but error in java-6-sun > > > > Clement Jebakumar, > http://www.declum.com/clement.html > > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Kosmosfs-users mailing list > Kos...@li... > https://lists.sourceforge.net/lists/listinfo/kosmosfs-users > > |