hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Lok <fula...@gmail.com>
Subject Error: redefinition of 'struct timeval' compiling libhdfs
Date Tue, 14 Feb 2012 04:06:28 GMT
Hi folks,

I'm trying to compile Hadoop v1.0.0 libhdfs on Ubuntu 11.10 64-bit.  All
java classes compile fine except when I specify -Dislibhdfs=1.  Here's
where the error starts:

     [exec] In file included from
/usr/include/x86_64-linux-gnu/sys/select.h:46:0,
     [exec]                  from
/usr/include/x86_64-linux-gnu/sys/types.h:220,
     [exec]                  from
/home/hadoop/hadoop-1.0.0/src/c++/libhdfs/hdfs.h:22,
     [exec]                  from
/home/hadoop/hadoop-1.0.0/src/c++/libhdfs/hdfs.c:19:
     [exec] /usr/include/x86_64-linux-gnu/bits/time.h:75:8: error:
redefinition of 'struct timeval'
     [exec] /usr/include/linux/time.h:15:8: note: originally defined here

Any idea what could be the problem?


Thanks.

Mime
View raw message