If you look at the gcc options, then you can see that both 32-bit as well as
64-bit  environments  are specified. Probably only one of them should be
there. To fix this you might have to edit the Makefile in c++/src/libhdfs
and replace/remove the -m32 option.

~ Neeraj

On 6/11/07, Phantom <[EMAIL PROTECTED]> wrote:

Hi

I am assuming that if I need a C/C++ interface to HDFS I must build
libhdfs.
This may be a problem very specific to my environment but would appreciate
if someone could tell me what is going on ? So in order to build libhdfs I
am running the command ant compile-libhdfs. But I get the following output
:

compile-libhdfs:
     [exec] gcc -g -Wall -O2 -fPIC -m64 -m32
-I/home/alakshman/jdk1.6.0_01/include
-I/home/alakshman/jdk1.6.0_01/include/linux -c hdfs.c -o
/home/alakshman/FB-Projects/hadoop-0.13.0/build/libhdfs/hdfs.o
     [exec] In file included from /usr/include/features.h:337,
     [exec]                  from /usr/include/sys/types.h:27,
     [exec]                  from hdfs.h:22,
     [exec]                  from hdfs.c:19:
     [exec] /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such
file or directory
     [exec] make: ***
[/home/alakshman/FB-Projects/hadoop-0.13.0/build/libhdfs/hdfs.o]
Error 1
     [exec] Result: 2

BUILD SUCCESSFUL
Total time: 1 second

What is going on ? I have set my JAVA_HOME correctly and this is the
version
of my Linux box  2.6.12-1.1398_FC4smp.

Thanks
A

Reply via email to