Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.1.0-beta
-
None
-
None
-
OpenSUSE 12.1, x86_64, gcc 4.6.2
-
Reviewed
Description
libwebhdfs doesn't compile with gcc 4.6.2.
/home/cmccabe/hadoop1/hadoop-hdfs-project/hadoop-hdfs/src/contrib/libwebhdfs/src/test_libwebhdfs_ops.c: In function ‘main’: /home/cmccabe/hadoop1/hadoop-hdfs-project/hadoop-hdfs/src/contrib/libwebhdfs/src/test_libwebhdfs_ops.c:260:9: error: ‘for’ loop initial declarations are only allowed in C99 mode /home/cmccabe/hadoop1/hadoop-hdfs-project/hadoop-hdfs/src/contrib/libwebhdfs/src/test_libwebhdfs_ops.c:260:9: note: use option -std=c99 or -std=gnu99 to compile your code /home/cmccabe/hadoop1/hadoop-hdfs-project/hadoop-hdfs/src/contrib/libwebhdfs/src/test_libwebhdfs_ops.c:284:13: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘tOffset’ [-Wformat] /home/cmccabe/hadoop1/hadoop-hdfs-project/hadoop-hdfs/src/contrib/libwebhdfs/src/test_libwebhdfs_ops.c:285:13: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘tOffset’ [-Wformat] /home/cmccabe/hadoop1/hadoop-hdfs-project/hadoop-hdfs/src/contrib/libwebhdfs/src/test_libwebhdfs_ops.c:308:17: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘tOffset’ [-Wformat] /home/cmccabe/hadoop1/hadoop-hdfs-project/hadoop-hdfs/src/contrib/libwebhdfs/src/test_libwebhdfs_ops.c:309:17: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘tOffset’ [-Wformat]
Attachments
Attachments
Issue Links
- is related to
-
HADOOP-9329 document native build dependencies in BUILDING.txt
- Closed