You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by Nikolaos Hatzopoulos <nh...@gmail.com> on 2012/01/10 02:41:51 UTC

HDFS FUSE compile

Hi Guys,

cd /home/arion/hadoop-0.20.203.0/src/c++/libhdfs

I made the configure file executable
chmod +x configure

I run it ./configure

I fixed the m32 m64 issue but:

gcc -DPACKAGE_NAME=\"libhdfs\" -DPACKAGE_TARNAME=\"libhdfs\"
-DPACKAGE_VERSION=\"0.1.0\" "-DPACKAGE_STRING=\"libhdfs 0.1.0\""
-DPACKAGE_BUGREPORT=\"omalley@apache.org\" -DPACKAGE=\"libhdfs\"
-DVERSION=\"0.1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" "-Dsize_t=unsigned int"
-DHAVE_FCNTL_H=1 -Dconst= -Dvolatile= -I. -I. -g -O2 -DOS_LINUX -DDSO_DLFCN
-DCPU=\"amd64\" -m64 -I/usr/java/jdk1.6.0_27/include
-I/usr/java/jdk1.6.0_27/include/linux -Wall -Wstrict-prototypes -MT hdfs.lo
-MD -MP -MF .deps/hdfs.Tpo -c hdfs.c  -fPIC -DPIC -o .libs/hdfs.o


In file included from /usr/include/bits/types.h:31,
                 from /usr/include/sys/types.h:31,
                 from hdfs.h:22,
                 from hdfs.c:19:
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/include/stddef.h:214: error:
duplicate ‘unsigned’
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/include/stddef.h:214: error: two or
more data types in declaration specifiers
hdfs.c: In function ‘errnoFromException’:
hdfs.c:125: warning: cast from pointer to integer of different size
hdfs.c:125: warning: cast from pointer to integer of different size
hdfs.c:125: warning: cast from pointer to integer of different size
hdfs.c:125: warning: cast from pointer to integer of different size
hdfs.c:125: warning: cast from pointer to integer of different size
hdfs.c:125: warning: cast from pointer to integer of different size
hdfs.c:131: warning: cast from pointer to integer of different size
hdfs.c:131: warning: cast from pointer to integer of different size
hdfs.c:131: warning: cast from pointer to integer of different size
hdfs.c:131: warning: cast from pointer to integer of different size
hdfs.c:131: warning: cast from pointer to integer of different size
hdfs.c:131: warning: cast from pointer to integer of different size
hdfs.c:137: warning: cast from pointer to integer of different size
hdfs.c:137: warning: cast from pointer to integer of different size
hdfs.c:137: warning: cast from pointer to integer of different size
hdfs.c:137: warning: cast from pointer to integer of different size
hdfs.c:137: warning: cast from pointer to integer of different size
hdfs.c:137: warning: cast from pointer to integer of different size
hdfs.c: In function ‘hdfsConnectAsUser’:
hdfs.c:228: warning: cast from pointer to integer of different size
hdfs.c:228: warning: cast from pointer to integer of different size
hdfs.c:228: warning: cast from pointer to integer of different size
hdfs.c:228: warning: cast from pointer to integer of different size
hdfs.c:228: warning: cast from pointer to integer of different size
hdfs.c:228: warning: cast from pointer to integer of different size
hdfs.c: In function ‘hdfsGetHosts’:
hdfs.c:1589: warning: cast from pointer to integer of different size
hdfs.c:1589: warning: cast from pointer to integer of different size
hdfs.c: In function ‘getFileInfoFromStat’:
hdfs.c:1802: warning: cast from pointer to integer of different size
hdfs.c:1802: warning: cast from pointer to integer of different size
hdfs.c:1817: warning: cast from pointer to integer of different size
hdfs.c:1817: warning: cast from pointer to integer of different size
hdfs.c:1832: warning: cast from pointer to integer of different size
hdfs.c:1832: warning: cast from pointer to integer of different size


Any suggestions??

---Nikos Hatzopoulos