[ 
https://issues.apache.org/jira/browse/HDFS-4484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13574777#comment-13574777
 ] 

Colin Patrick McCabe commented on HDFS-4484:
--------------------------------------------

I also got this linker error:
{code}
/home/cmccabe/hadoop1/hadoop-hdfs-project/hadoop-hdfs/src/contrib/libwebhdfs/src/test_libwebhdfs_ops.c:93:
 warning: the use of `mktemp' is dangerous, better use `mkstemp'
CMakeFiles/test_libwebhdfs_ops.dir/src/test_libwebhdfs_ops.c.o: In function 
`main':
test_libwebhdfs_ops.c:(.text.startup+0x4d): undefined reference to `nmdCreate'
test_libwebhdfs_ops.c:(.text.startup+0x65): undefined reference to 
`nmdWaitClusterUp'
test_libwebhdfs_ops.c:(.text.startup+0x89): undefined reference to 
`nmdGetNameNodeHttpAddress'
test_libwebhdfs_ops.c:(.text.startup+0xf96): undefined reference to 
`nmdShutdown'
test_libwebhdfs_ops.c:(.text.startup+0xfa2): undefined reference to `nmdFree'
collect2: ld returned 1 exit status
make[2]: *** [contrib/libwebhdfs/test_libwebhdfs_ops] Error 1
make[1]: *** [contrib/libwebhdfs/CMakeFiles/test_libwebhdfs_ops.dir/all] Error 2
{code}
                
> libwebhdfs compilation broken with gcc 4.6.2
> --------------------------------------------
>
>                 Key: HDFS-4484
>                 URL: https://issues.apache.org/jira/browse/HDFS-4484
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 2.0.4-beta
>         Environment: OpenSUSE 12.1, x86_64, gcc 4.6.2
>            Reporter: Colin Patrick McCabe
>            Assignee: Colin Patrick McCabe
>            Priority: Minor
>
> libwebhdfs doesn't compile with gcc 4.6.2.
> {code}
> /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]
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to