<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [CMake][GTK][OSX] ThreadIdentifierData::initialize assertion fails because there are two copies of WTF in process (one as part of webkit2, one as part of jsc)"
   href="https://bugs.webkit.org/show_bug.cgi?id=153176#c14">Comment # 14</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [CMake][GTK][OSX] ThreadIdentifierData::initialize assertion fails because there are two copies of WTF in process (one as part of webkit2, one as part of jsc)"
   href="https://bugs.webkit.org/show_bug.cgi?id=153176">bug 153176</a>
              from <span class="vcard"><a class="email" href="mailto:philip.chimento&#64;gmail.com" title="Philip Chimento &lt;philip.chimento&#64;gmail.com&gt;"> <span class="fn">Philip Chimento</span></a>
</span></b>
        <pre>Created <span class=""><a href="attachment.cgi?id=273923&amp;action=diff" name="attach_273923" title="Doesn't fix the problem">attachment 273923</a> <a href="attachment.cgi?id=273923&amp;action=edit" title="Doesn't fix the problem">[details]</a></span>
Doesn't fix the problem

I've been trying to correct this, but have been trying various combinations of PUBLIC, PRIVATE, and INTERFACE all weekend (and waiting most times for WebCore to rebuild, as cmake doesn't seem to be able to determine that all I've changed is the linking libraries). Attached is a work-in-progress patch (not formatted for committing) of what I have now, which doesn't fix the crash.

I think the problem is that I don't understand how the various convenience libraries should be linked together. From the other comments here, it seems it should be something like this:

WTF -&gt; convenience library, linked into JavaScriptCore
    -&gt; symbols used from JavaScriptCore, WebCore, and WebKit2

JavaScriptCore -&gt; public, uses and exports WTF symbols

WebCore -&gt; convenience library, linked into WebKit2
        -&gt; uses WTF and JavaScriptCore symbols
        -&gt; symbols used from WebKit2

WebKit2 -&gt; public, uses WTF, JavaScriptCore, WebCore symbols

I _think_ that's what I've implemented in the patch, but I still end up with JavaScriptCore and WebKit2 each containing their own copy of WTF.

Advice would be appreciated.</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>