hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ahmad Humayun" <ahmad.hu...@gmail.com>
Subject libhdfs compilation
Date Sun, 24 Feb 2008 11:52:16 GMT
Hello there,

Whenever I try to build libhdfs (by simply running 'make' at
/src/c++/libhdfs/), I get this output:

gcc -g -Wall -O2 -fPIC -m32 -I/usr/lib/jvm/java/include
-I/usr/lib/jvm/java/include/ -c hdfs.c -o /hdfs.o
In file included from hdfs.h:33,
                 from hdfs.c:19:
/usr/lib/jvm/java/include/jni.h:39: error: conflicting types for
/usr/lib/gcc/i586-suse-linux/4.1.2/include/jni_md.h:84: error: previous
declaration of ‘jboolean’ was here
make: *** [/hdfs.o] Error 1

I can also see that the Makefile gives these comments.
# Note: This makefile depends on 4 environment variables to funtion
# b) OS_NAME
# c) OS_ARCH
# All these are passed by build.xml.

But at the moment I'm more concerned about the jboolean errors for jni. Can
somebody specify how to build libhdfs by passing the build.xml. Will it
solve the jboolean conflict error. I'm sorry, a lot of these questions might
seem stupid...but please it will be great if someone can help me here.

Ahmad Humayun
Research Assistant
Computer Science Dpt., LUMS
+92 321 4457315

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message