After a lot of search if someone want's to compile hadoop with libhdfs this script should work
#!/bin/bash export JAVA_HOME=/yourdir/jdk-1.6 export CFLAGS=-m64 export CXXFLAGS=-m64 ant \ -Dforrest.home=/home/arion/forrest/apache-forrest-0.9 \ -Djava5.home=/home/arion/java/jdk1.5.0_22 \ -Dfindbugs.home=/home/arion/findbugs/findbugs-2.0.0 \ -Dversion=20.206.0 \ -Dhadoop.version=20.206.0 \ -Dcompile.native=true \ -Dcompile.c++=true \ -Dlibhdfs=true \ -Dlibrecordio=true \ compile-core-native compile-c++ compile-c++-libhdfs please update the wiki page http://wiki.apache.org/hadoop/MountableHDFS --Nikos Hatzopoulos