<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - webkitgtk-2.14.0 build failure on Linux with clang/libc++"
href="https://bugs.webkit.org/show_bug.cgi?id=162268">162268</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>webkitgtk-2.14.0 build failure on Linux with clang/libc++
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>Other
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>OS</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>WebKit Gtk
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>krejzi@email.com
</td>
</tr>
<tr>
<th>CC</th>
<td>bugs-noreply@webkitgtk.org
</td>
</tr></table>
<p>
<div>
<pre>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 'function' in namespace 'std'
void writeClipboardContents(GtkClipboard*, const DataObjectGtk&, std::function<void()>&& 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 'function' in namespace 'std'; did you mean 'Function'?
WEBCORE_EXPORT void writeToClipboard(const RefPtr<DataObjectGtk>&, std::function<void()>&& primarySelectionCleared);
^~~~~~~~~~~~~
Solution was to add #include <functional> to Source/WebCore/platform/gtk/PasteboardHelper.h and Source/WebCore/platform/PlatformPasteboard.h</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>