<?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>136286</bug_id>
          
          <creation_ts>2014-08-27 06:07:22 -0700</creation_ts>
          <short_desc>[WinCairo] Link error.</short_desc>
          <delta_ts>2014-08-27 12:37:36 -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 Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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>1</everconfirmed>
          <reporter>peavo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>alex.christensen</cc>
    
    <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
    
    <cc>darin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1031640</commentid>
    <comment_count>0</comment_count>
    <who name="">peavo</who>
    <bug_when>2014-08-27 06:07:22 -0700</bug_when>
    <thetext>Linking WebKit.dll fails with the following error:

1&gt;MSVCRT.lib(MSVCR120.dll) : error LNK2005: _longjmp already defined in LIBCMT.lib(longjmp.obj) 1&gt;MSVCRT.lib(MSVCR120.dll) : error LNK2005: _modf already defined in LIBCMT.lib(modf_pentium4.obj) Creating library WebKit.lib and object WebKit.exp 1&gt;LINK : warning LNK4098: defaultlib &apos;MSVCRT&apos; conflicts with use of other libs; use /NODEFAULTLIB:library 1&gt;WebKit.dll : fatal error LNK1169: one or more multiply defined symbols found 1&gt;Done Building Project &quot;WebKit.vcxproj&quot; (Build target(s)) -- FAILED. Build FAILED. Time Elapsed 00:02:01.75

I believe this happens because the WebKit libraries are set up to link statically with the runtime libraries, while the WinCairo libraries are using the dynamic runtime libraries.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1031644</commentid>
    <comment_count>1</comment_count>
      <attachid>237222</attachid>
    <who name="">peavo</who>
    <bug_when>2014-08-27 06:16:08 -0700</bug_when>
    <thetext>Created attachment 237222
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1031646</commentid>
    <comment_count>2</comment_count>
    <who name="">peavo</who>
    <bug_when>2014-08-27 06:26:54 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Created an attachment (id=237222) [details]
&gt; Patch

I&apos;m not sure that this is the right fix; maybe it&apos;s better to recompile the WinCairo libraries with static runtime libraries, to avoid differences between AppleWin and WinCairo ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1031717</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-08-27 12:15:31 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #1)
&gt; &gt; Created an attachment (id=237222) [details] [details]
&gt; &gt; Patch
&gt; 
&gt; I&apos;m not sure that this is the right fix; maybe it&apos;s better to recompile the WinCairo libraries with static runtime libraries, to avoid differences between AppleWin and WinCairo ...

No, your change is correct. I&apos;m intending to switch the Apple build back to DLL&apos;s at some point in the near future. Sorry for the inconvenience!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1031734</commentid>
    <comment_count>4</comment_count>
    <who name="">peavo</who>
    <bug_when>2014-08-27 12:34:58 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; (In reply to comment #1)
&gt; &gt; &gt; Created an attachment (id=237222) [details] [details] [details]
&gt; &gt; &gt; Patch
&gt; &gt; 
&gt; &gt; I&apos;m not sure that this is the right fix; maybe it&apos;s better to recompile the WinCairo libraries with static runtime libraries, to avoid differences between AppleWin and WinCairo ...
&gt; 
&gt; No, your change is correct. I&apos;m intending to switch the Apple build back to DLL&apos;s at some point in the near future. Sorry for the inconvenience!

No worries :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1031735</commentid>
    <comment_count>5</comment_count>
      <attachid>237222</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-08-27 12:37:33 -0700</bug_when>
    <thetext>Comment on attachment 237222
Patch

Clearing flags on attachment: 237222

Committed r173013: &lt;http://trac.webkit.org/changeset/173013&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1031736</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-08-27 12:37:36 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>237222</attachid>
            <date>2014-08-27 06:16:08 -0700</date>
            <delta_ts>2014-08-27 12:37:32 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-136286-20140827151552.patch</filename>
            <type>text/plain</type>
            <size>1701</size>
            <attacher>peavo</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdExpYnJhcmllcy9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gV2ViS2l0TGli
cmFyaWVzL0NoYW5nZUxvZwkocmV2aXNpb24gMTczMDAyKQorKysgV2ViS2l0TGlicmFyaWVzL0No
YW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE0IEBACisyMDE0LTA4LTI3ICBwZWF2
b0BvdXRsb29rLmNvbSAgPHBlYXZvQG91dGxvb2suY29tPgorCisgICAgICAgIFtXa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