[Webkit-unassigned] [Bug 162268] New: webkitgtk-2.14.0 build failure on Linux with clang/libc++

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 20 07:51:54 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=162268

            Bug ID: 162268
           Summary: webkitgtk-2.14.0 build failure on Linux with
                    clang/libc++
    Classification: Unclassified
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Gtk
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: krejzi at email.com
                CC: bugs-noreply at webkitgtk.org

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160920/20509499/attachment.html>


More information about the webkit-unassigned mailing list