<?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>26293</bug_id>
          
          <creation_ts>2009-06-10 09:25:13 -0700</creation_ts>
          <short_desc>Current svn Qt webkit fails to compile even after fixing bug #26289</short_desc>
          <delta_ts>2009-09-07 10:29:48 -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>WebKit Qt</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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>0</everconfirmed>
          <reporter name="Bernhard Rosenkraenzer">bero</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jhaygood</cc>
    
    <cc>laszlo.gombos</cc>
    
    <cc>mrowe</cc>
    
    <cc>pfeldman</cc>
    
    <cc>vestbo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>125141</commentid>
    <comment_count>0</comment_count>
    <who name="Bernhard Rosenkraenzer">bero</who>
    <bug_when>2009-06-10 09:25:13 -0700</bug_when>
    <thetext>After fixing bug #26289, Qt WebKit build barfs during final linkage:

obj/release/JSONObject.o: In function `WebCore::JSONObject::scriptObject() const&apos;:
JSONObject.cpp:(.text._ZNK7WebCore10JSONObject12scriptObjectEv+0x0): multiple definition of `WebCore::JSONObject::scriptObject() const&apos;
obj/release/JSONObject.o:JSONObject.cpp:(.text._ZNK7WebCore10JSONObject12scriptObjectEv+0x0): first defined here
obj/release/JSONObject.o: In function `WebCore::JSONObject::set(char const*, bool)&apos;:
JSONObject.cpp:(.text._ZN7WebCore10JSONObject3setEPKcb+0x0): multiple definition of `WebCore::JSONObject::set(char const*, bool)&apos;
obj/release/JSONObject.o:JSONObject.cpp:(.text._ZN7WebCore10JSONObject3setEPKcb+0x0): first defined here
obj/release/JSONObject.o: In function `WebCore::JSONObject::set(char const*, int)&apos;:
JSONObject.cpp:(.text._ZN7WebCore10JSONObject3setEPKci+0x0): multiple definition of `WebCore::JSONObject::set(char const*, int)&apos;
obj/release/JSONObject.o:JSONObject.cpp:(.text._ZN7WebCore10JSONObject3setEPKci+0x0): first defined here
obj/release/JSONObject.o: In function `WebCore::JSONObject::set(char const*, long long)&apos;:
JSONObject.cpp:(.text._ZN7WebCore10JSONObject3setEPKcx+0x0): multiple definition of `WebCore::JSONObject::set(char const*, long long)&apos;
obj/release/JSONObject.o:JSONObject.cpp:(.text._ZN7WebCore10JSONObject3setEPKcx+0x0): first defined here
obj/release/JSONObject.o: In function `WebCore::JSONObject::set(char const*, double)&apos;:
JSONObject.cpp:(.text._ZN7WebCore10JSONObject3setEPKcd+0x0): multiple definition of `WebCore::JSONObject::set(char const*, double)&apos;
obj/release/JSONObject.o:JSONObject.cpp:(.text._ZN7WebCore10JSONObject3setEPKcd+0x0): first defined here
obj/release/JSONObject.o: In function `WebCore::JSONObject::set(char const*, WebCore::String const&amp;)&apos;:
JSONObject.cpp:(.text._ZN7WebCore10JSONObject3setEPKcRKNS_6StringE+0x0): multiple definition of `WebCore::JSONObject::set(char const*, WebCore::String const&amp;)&apos;
obj/release/JSONObject.o:JSONObject.cpp:(.text._ZN7WebCore10JSONObject3setEPKcRKNS_6StringE+0x0): first defined here
obj/release/JSONObject.o: In function `WebCore::JSONObject::set(char const*, WebCore::ScriptObject const&amp;)&apos;:
JSONObject.cpp:(.text._ZN7WebCore10JSONObject3setEPKcRKNS_12ScriptObjectE+0x0): multiple definition of `WebCore::JSONObject::set(char const*, WebCore::ScriptObject const&amp;)&apos;
obj/release/JSONObject.o:JSONObject.cpp:(.text._ZN7WebCore10JSONObject3setEPKcRKNS_12ScriptObjectE+0x0): first defined here
obj/release/JSONObject.o: In function `WebCore::JSONObject::set(WebCore::String const&amp;, WebCore::String const&amp;)&apos;:
JSONObject.cpp:(.text._ZN7WebCore10JSONObject3setERKNS_6StringES3_+0x0): multiple definition of `WebCore::JSONObject::set(WebCore::String const&amp;, WebCore::String const&amp;)&apos;
obj/release/JSONObject.o:JSONObject.cpp:(.text._ZN7WebCore10JSONObject3setERKNS_6StringES3_+0x0): first defined here
obj/release/JSONObject.o: In function `WebCore::JSONObject::JSONObject(JSC::ExecState*)&apos;:
JSONObject.cpp:(.text._ZN7WebCore10JSONObjectC2EPN3JSC9ExecStateE+0x0): multiple definition of `WebCore::JSONObject::JSONObject(JSC::ExecState*)&apos;
obj/release/JSONObject.o:JSONObject.cpp:(.text._ZN7WebCore10JSONObjectC2EPN3JSC9ExecStateE+0x0): first defined here
obj/release/JSONObject.o: In function `WebCore::JSONObject::set(char const*, WebCore::JSONObject const&amp;)&apos;:
JSONObject.cpp:(.text._ZN7WebCore10JSONObject3setEPKcRKS0_+0x0): multiple definition of `WebCore::JSONObject::set(char const*, WebCore::JSONObject const&amp;)&apos;
obj/release/JSONObject.o:JSONObject.cpp:(.text._ZN7WebCore10JSONObject3setEPKcRKS0_+0x0): first defined here
obj/release/JSONObject.o: In function `WebCore::JSONObject::JSONObject(JSC::ExecState*)&apos;:
JSONObject.cpp:(.text._ZN7WebCore10JSONObjectC1EPN3JSC9ExecStateE+0x0): multiple definition of `WebCore::JSONObject::JSONObject(JSC::ExecState*)&apos;
obj/release/JSONObject.o:JSONObject.cpp:(.text._ZN7WebCore10JSONObjectC1EPN3JSC9ExecStateE+0x0): first defined here
obj/release/JSONObject.o: In function `WebCore::JSONObject::createNew(JSC::ExecState*)&apos;:
JSONObject.cpp:(.text._ZN7WebCore10JSONObject9createNewEPN3JSC9ExecStateE+0x0): multiple definition of `WebCore::JSONObject::createNew(JSC::ExecState*)&apos;
obj/release/JSONObject.o:JSONObject.cpp:(.text._ZN7WebCore10JSONObject9createNewEPN3JSC9ExecStateE+0x0): first defined here
collect2: ld returned 1 exit status
make[1]: *** [../lib/libQtWebKit.so.4.5.2] Error 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125683</commentid>
    <comment_count>1</comment_count>
    <who name="Justin Haygood">jhaygood</who>
    <bug_when>2009-06-13 15:42:41 -0700</bug_when>
    <thetext>*** Bug 26378 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125684</commentid>
    <comment_count>2</comment_count>
    <who name="Justin Haygood">jhaygood</who>
    <bug_when>2009-06-13 15:44:17 -0700</bug_when>
    <thetext>This is because of a way the Qt build system works. The object files for JavaScriptCore and WebCore are output into the same directory. Both WebCore and JavaScriptCore have a &quot;JSONObject.cpp&quot; which gets built into a &quot;JSONObject.&lt;objectext&gt;&quot; so whichever one gets compiled last is the one that gets linked in.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125687</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-06-13 16:01:47 -0700</bug_when>
    <thetext>It&apos;s not even clear to me why WebCore::JSONObject exists, or why it&apos;s name refers to JSON.  It seems to be nothing more than a wrapper around a ScriptObject, and has no relationship to JSON support.  ISTM that a reasonable way of addressing this build issue would be to get rid of WebCore::JSONObject.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125688</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-06-13 16:02:28 -0700</bug_when>
    <thetext>Perhaps Pavel can explain why WebCore::JSONObject is needed and why it refers to JSON in its name.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125695</commentid>
    <comment_count>5</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2009-06-13 16:45:02 -0700</bug_when>
    <thetext>*** Bug 26340 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125696</commentid>
    <comment_count>6</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2009-06-13 16:46:17 -0700</bug_when>
    <thetext>My comment from bug 26340.

Now that I look at JSONObject, it is just to similar to ScriptObject. I think it can go, and just make ScriptObject support JSON stringify and creation from a JSON string. Dimitri, Pavel, do you think that would work?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125750</commentid>
    <comment_count>7</comment_count>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2009-06-14 00:49:28 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; My comment from bug 26340.
&gt; 
&gt; Now that I look at JSONObject, it is just to similar to ScriptObject. I think
&gt; it can go, and just make ScriptObject support JSON stringify and creation from
&gt; a JSON string. Dimitri, Pavel, do you think that would work?
&gt; 
(commenting right but now)

I agree that there is a redundancy here. However, I am not sure that Script* is now exactly what we need, so we might need to tweak them a bit. To reduce the number of the moving parts, I&apos;d suggest that this one is fixed as suggested (via renaming Inspector&apos;s one to a more specific name) now. In the meanwhile, I would like to learn more on the new stringify API in WebKit and find a good way of Script*, new JSON.stringify and Chromium&apos;s JSON capabilities playing together nicely.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125752</commentid>
    <comment_count>8</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-06-14 01:34:20 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; (In reply to comment #6)
&gt; &gt; My comment from bug 26340.
&gt; &gt; 
&gt; &gt; Now that I look at JSONObject, it is just to similar to ScriptObject. I think
&gt; &gt; it can go, and just make ScriptObject support JSON stringify and creation from
&gt; &gt; a JSON string. Dimitri, Pavel, do you think that would work?
&gt; &gt; 
&gt; (commenting right but now)
&gt; 
&gt; I agree that there is a redundancy here. However, I am not sure that Script* is
&gt; now exactly what we need, so we might need to tweak them a bit. To reduce the
&gt; number of the moving parts, I&apos;d suggest that this one is fixed as suggested
&gt; (via renaming Inspector&apos;s one to a more specific name) now.

Renaming it to what?  The current name is obviously terrible, as nothing at all about the type relates to JSON.  Do you have any suggestions for a name?  Why is renaming this type (that currently appears to serve no purpose) a better option than removing it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125903</commentid>
    <comment_count>9</comment_count>
    <who name="Tor Arne Vestbø">vestbo</who>
    <bug_when>2009-06-15 01:07:57 -0700</bug_when>
    <thetext>I&apos;d prefer if we at least apply https://bugs.webkit.org/attachment.cgi?id=31235&amp;action=review to rename WebCore::JSONObject while the discussion of why it needs to exists continues. At least that fixes the Qt build :/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>145199</commentid>
    <comment_count>10</comment_count>
    <who name="Tor Arne Vestbø">vestbo</who>
    <bug_when>2009-09-07 10:29:48 -0700</bug_when>
    <thetext>This was fixed in r46490</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>