<?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>31477</bug_id>
          
          <creation_ts>2009-11-13 09:59:00 -0800</creation_ts>
          <short_desc>[V8] Fix V8Bindings link error in Linux+GCC 4.4</short_desc>
          <delta_ts>2009-11-13 13:27:50 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jens Alfke">jens</reporter>
          <assigned_to name="Jens Alfke">jens</assigned_to>
          <cc>eric</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>163355</commentid>
    <comment_count>0</comment_count>
    <who name="Jens Alfke">jens</who>
    <bug_when>2009-11-13 09:59:00 -0800</bug_when>
    <thetext>Craig Schlenter alerted me that my patch in r50846 (bug 31383) caused a link error building Chromium on Linux with GCC 4.4:

undefined reference to `WebCore::AtomicString WebCore::v8StringToWebCoreString&lt;WebCore::AtomicString&gt;(v8::Handle&lt;v8::String&gt;, WebCore::ExternalMode)&apos;

He tracked it down to an issue with the compiler not knowing which instantiations of the template to create, since the template body is in a .cpp file, as described here:
    http://stackoverflow.com/questions/1639797/template-issue-causes-linker-error-c
The fix is to explicitly instantiate both the String and AtomicString versions in the .cpp file.

This isn&apos;t a serious issue because we haven&apos;t moved up to GCC 4.4 for Chromium&apos;s Linux build yet, but it&apos;s a good idea to fix this now. I&apos;m preparing a patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163362</commentid>
    <comment_count>1</comment_count>
      <attachid>43168</attachid>
    <who name="Jens Alfke">jens</who>
    <bug_when>2009-11-13 10:33:24 -0800</bug_when>
    <thetext>Created attachment 43168
patch

Here&apos;s the patch. Waiting to set &apos;review?&apos; flag till after I make sure it builds on Win/Linux.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163455</commentid>
    <comment_count>2</comment_count>
      <attachid>43168</attachid>
    <who name="Jens Alfke">jens</who>
    <bug_when>2009-11-13 12:50:53 -0800</bug_when>
    <thetext>Comment on attachment 43168
patch

OK, this has passed the trybots, so requesting a review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163462</commentid>
    <comment_count>3</comment_count>
      <attachid>43168</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-11-13 13:13:15 -0800</bug_when>
    <thetext>Comment on attachment 43168
patch

Wrong mime type on the attachment. :)  Tools like &quot;bugzilla-tool post-diff&quot; will take care of all the silly check-boxes and mime types for you if you like.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163464</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-11-13 13:14:00 -0800</bug_when>
    <thetext>This looks sane to me, but I&apos;m really not enough of a c++ expert to comment here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163468</commentid>
    <comment_count>5</comment_count>
      <attachid>43168</attachid>
    <who name="Dimitri Glazkov (Google)">dglazkov</who>
    <bug_when>2009-11-13 13:18:28 -0800</bug_when>
    <thetext>Comment on attachment 43168
patch

I am not teh expert, but I believe jens! :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163472</commentid>
    <comment_count>6</comment_count>
    <who name="Jens Alfke">jens</who>
    <bug_when>2009-11-13 13:27:50 -0800</bug_when>
    <thetext>Committed revision 50967.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>43168</attachid>
            <date>2009-11-13 10:33:24 -0800</date>
            <delta_ts>2009-11-13 13:18:27 -0800</delta_ts>
            <desc>patch</desc>
            <filename>bindingGCC44fix.patch</filename>
            <type>text/plain</type>
            <size>1340</size>
            <attacher name="Jens Alfke">jens</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA1MDk1MSkKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTIgQEAKKzIwMDktMTEtMTMgIEplbnMgQWxma2UgIDxzbmVqQGNocm9taXVtLm9y
Zz4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBGaXgg
YSBsaW5rIGVycm9yIGluIHVub2ZmaWNpYWwgR0NDIDQuNCBidWlsZHMgb24gTGludXguCisgICAg
ICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0zMTQ3NworCisgICAg
ICAgICogYmluZGluZ3MvdjgvVjhCaW5kaW5nLmNwcDogIEFkZCBleHBsaWNpdCBpbnN0YW50aWF0
aW9ucyBvZiB2OFN0cmluZ1RvV2ViQ29yZVN0cmluZyB0ZW1wbGF0ZS4KKwogMjAwOS0xMS0xMiAg
QWxleGV5IFByb3NrdXJ5YWtvdiAgPGFwQGFwcGxlLmNvbT4KIAogICAgICAgICBSZXZpZXdlZCBi
eSBEYXJpbiBBZGxlci4KSW5kZXg6IFdlYkNvcmUvYmluZGluZ3MvdjgvVjhCaW5kaW5nLmNwcAo9
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09Ci0tLSBXZWJDb3JlL2JpbmRpbmdzL3Y4L1Y4QmluZGluZy5jcHAJKHJldmlzaW9u
IDUwOTE0KQorKysgV2ViQ29yZS9iaW5kaW5ncy92OC9WOEJpbmRpbmcuY3BwCSh3b3JraW5nIGNv
cHkpCkBAIC0yNzksNiArMjc5LDEyIEBAIFN0cmluZ1R5cGUgdjhTdHJpbmdUb1dlYkNvcmVTdHJp
bmcodjg6OkgKICAgICB9CiAgICAgcmV0dXJuIHJlc3VsdDsKIH0KKyAgICAKKy8vIEV4cGxpY2l0
bHkgaW5zdGFudGlhdGUgdGhlIGFib3ZlIHRlbXBsYXRlIHdpdGggdGhlIGV4cGVjdGVkIHBhcmFt
ZXRlcml6YXRpb25zLAorLy8gdG8gZW5zdXJlIHRoZSBjb21waWxlciBnZW5lcmF0ZXMgdGhlIGNv
ZGU7IG90aGVyd2lzZSBsaW5rIGVycm9ycyBjYW4gcmVzdWx0IGluIEdDQyA0LjQuCit0ZW1wbGF0
ZSBTdHJpbmcgdjhTdHJpbmdUb1dlYkNvcmVTdHJpbmc8U3RyaW5nPih2ODo6SGFuZGxlPHY4OjpT
dHJpbmc+LCBFeHRlcm5hbE1vZGUpOwordGVtcGxhdGUgQXRvbWljU3RyaW5nIHY4U3RyaW5nVG9X
ZWJDb3JlU3RyaW5nPEF0b21pY1N0cmluZz4odjg6OkhhbmRsZTx2ODo6U3RyaW5nPiwgRXh0ZXJu
YWxNb2RlKTsKKwogCiBTdHJpbmcgdjhOb25TdHJpbmdWYWx1ZVRvV2ViQ29yZVN0cmluZyh2ODo6
SGFuZGxlPHY4OjpWYWx1ZT4gb2JqZWN0KQogewo=
</data>
<flag name="review"
          id="24882"
          type_id="1"
          status="+"
          setter="dglazkov"
    />
          </attachment>
      

    </bug>

</bugzilla>