[MacPorts] #59416: webkit2-gtk @2.26.1: on 10.12: error: reference to 'Handle' is ambiguous

MacPorts noreply at macports.org
Mon Oct 21 19:34:58 UTC 2019


#59416: webkit2-gtk @2.26.1: on 10.12: error: reference to 'Handle' is ambiguous
--------------------+-------------------------
 Reporter:  kencu   |      Owner:  kencu
     Type:  defect  |     Status:  assigned
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:  webkit2-gtk
--------------------+-------------------------
 [https://build.macports.org/builders/ports-10.12_x86_64-builder/builds/103740/steps
 /install-port/logs/stdio]

 This is a name collision from `MacTypes.h` polluting the global namespace.
 It doesn't happen on 10.13+, interestingly. It did happen on `10.6.8`, but
 not when built with `clang-5.0`. We'll see what systems show this error,
 and then decide on where to sanitize `MacTypes.h` (see details in the PR).

 {{{
 n file included from DerivedSources/JavaScriptCore/unified-sources
 /UnifiedSource-0284c6ac-1.cpp:8:
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_www_webkit2-gtk/webkit2-gtk/work/webkitgtk-2.26.1/Source/JavaScriptCore/tools/JSDollarVM.cpp:182:37:
 error: reference to 'Handle' is ambiguous
     bool isReachableFromOpaqueRoots(Handle<JSC::Unknown> handle, void*,
 SlotVisitor& visitor, const char** reason) override
                                     ^
 /usr/include/MacTypes.h:249:41: note: candidate found by name lookup is
 'Handle'
 typedef Ptr *                           Handle;
                                         ^
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_www_webkit2-gtk/webkit2-gtk/work/webkitgtk-2.26.1/Source/JavaScriptCore/heap/Handle.h:109:29:
 note: candidate found by name lookup is 'JSC::Handle'
 template <typename T> class Handle : public HandleBase, public
 HandleConverter<Handle<T>, T> {
                             ^
 1 error generated.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/59416>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list