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.


             - kuer

On Mon, May 4, 2009 at 6:07 PM, Clement Jebakumar <jeba.ride@gmail.com> wrote:

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- 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,

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