<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>162268</bug_id>
          
          <creation_ts>2016-09-20 07:51:54 -0700</creation_ts>
          <short_desc>webkitgtk-2.14.0 build failure on Linux with clang/libc++</short_desc>
          <delta_ts>2016-09-20 08:31:24 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>162261</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Armin K.">krejzi</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1231613</commentid>
    <comment_count>0</comment_count>
    <who name="Armin K.">krejzi</who>
    <bug_when>2016-09-20 07:51:54 -0700</bug_when>
    <thetext>When building webkitgtk-2.14.0 with clang++, which uses libc++ as its standard library, the build fails with the following errors:

In file included from /home/armin/src/webkitgtk-2.14.0/Source/WebCore/platform/gtk/PasteboardHelper.cpp:24:
/home/armin/src/webkitgtk-2.14.0/Source/WebCore/platform/gtk/PasteboardHelper.h:49:75: error: no type named &apos;function&apos; in namespace &apos;std&apos;
    void writeClipboardContents(GtkClipboard*, const DataObjectGtk&amp;, std::function&lt;void()&gt;&amp;&amp; primarySelectionCleared = nullptr);
                                                                     ~~~~~^

In file included from /home/armin/src/webkitgtk-2.14.0/Source/WebCore/platform/gtk/PlatformPasteboardGtk.cpp:20:
/home/armin/src/webkitgtk-2.14.0/Source/WebCore/platform/PlatformPasteboard.h:89:72: error: no template named &apos;function&apos; in namespace &apos;std&apos;; did you mean &apos;Function&apos;?
    WEBCORE_EXPORT void writeToClipboard(const RefPtr&lt;DataObjectGtk&gt;&amp;, std::function&lt;void()&gt;&amp;&amp; primarySelectionCleared);
                                                                       ^~~~~~~~~~~~~

Solution was to add #include &lt;functional&gt; to Source/WebCore/platform/gtk/PasteboardHelper.h and Source/WebCore/platform/PlatformPasteboard.h</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1231635</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2016-09-20 08:31:24 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 162261 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>