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

Owen O'Malley commented on HDFS-13534:
--------------------------------------

To get it working with gcc 7, I had to make two changes:
{code:java}
*** lib/common/async_stream.h~    2017-08-30 07:56:51.000000000 -0700
--- lib/common/async_stream.h    2018-06-05 22:02:35.000000000 -0700
***************
*** 20,25 ****
--- 20,26 ----
  #define LIB_COMMON_ASYNC_STREAM_H_

  #include <asio.hpp>
+ #include <functional>

  namespace hdfs {
{code}

{code:java}
*** lib/rpc/request.h~  2017-08-30 07:56:51.000000000 -0700
--- lib/rpc/request.h   2018-06-05 22:33:59.000000000 -0700
***************
*** 22,27 ****
--- 22,28 ----
  #include "common/util.h"
  #include "common/new_delete.h"

+ #include <functional>
  #include <string>

  #include <google/protobuf/message_lite.h>
{code}

Those don't seem to be in this patch. 

> libhdfs++: Fix GCC7 build
> -------------------------
>
>                 Key: HDFS-13534
>                 URL: https://issues.apache.org/jira/browse/HDFS-13534
>             Project: Hadoop HDFS
>          Issue Type: Task
>            Reporter: James Clampffer
>            Assignee: James Clampffer
>            Priority: Major
>         Attachments: HDFS-13534.000.patch, HDFS-13534.001.patch
>
>
> After merging HDFS-13403 [~pifta] noticed the build broke on some platforms.  
> [~bibinchundatt] pointed out that prior to gcc 7 mutex, future, and regex 
> implicitly included functional.  Without that implicit include the compiler 
> errors on the std::function in ioservice.h.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to