<?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>41953</bug_id>
          
          <creation_ts>2010-07-09 04:57:32 -0700</creation_ts>
          <short_desc>build fails - MathExtras.h on Solaris</short_desc>
          <delta_ts>2013-01-02 07:32:34 -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>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt, QtTriaged</keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Pavel Heimlich (hajma)">tropikhajma</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>benjamin</cc>
    
    <cc>bentaylor.solx86</cc>
    
    <cc>commit-queue</cc>
    
    <cc>eric</cc>
    
    <cc>pierre.rossi</cc>
    
    <cc>richard</cc>
    
    <cc>t.hirsch</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>248924</commentid>
    <comment_count>0</comment_count>
      <attachid>61034</attachid>
    <who name="Pavel Heimlich (hajma)">tropikhajma</who>
    <bug_when>2010-07-09 04:57:32 -0700</bug_when>
    <thetext>Created attachment 61034
patch

building qt 4.7 beta2 fails with
...
&quot;./wtf/MathExtras.h&quot;, line 194: Error: isfinite is not a member of std.
&quot;./wtf/MathExtras.h&quot;, line 195: Error: isinf is not a member of std.
&quot;./wtf/MathExtras.h&quot;, line 196: Error: isnan is not a member of std.
&quot;./wtf/MathExtras.h&quot;, line 197: Error: signbit is not a member of std.

the attached patch fixes that by adding Solaris to the ifdef already provided for MSVC and Android


this is on OpenSolaris b134 using the Sun Studio 12u1 compiler</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>329223</commentid>
    <comment_count>1</comment_count>
    <who name="t.hirsch@web.de">t.hirsch</who>
    <bug_when>2011-01-04 14:36:03 -0800</bug_when>
    <thetext>I can confirm this bug.

Please apply Pavel&apos;s patch! It&apos;s working fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>329232</commentid>
    <comment_count>2</comment_count>
    <who name="t.hirsch@web.de">t.hirsch</who>
    <bug_when>2011-01-04 14:42:30 -0800</bug_when>
    <thetext>Actually I think that the code in trunk should also work:

#if !COMPILER(MSVC) &amp;&amp; !COMPILER(WINSCW) &amp;&amp; !(COMPILER(RVCT) &amp;&amp; (OS(SYMBIAN) || PLATFORM(BREWMP)))

Here&apos;s how it was before and what is still being used in Qt 4.7:

#if !COMPILER(MSVC) &amp;&amp; !COMPILER(RVCT) &amp;&amp; !OS(ANDROID) &amp;&amp; !COMPILER(WINSCW)

I&apos;ll tell the Nokia guys to update their webkit...


Looks like this bug can be closed. Pavel, do you agree?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>329247</commentid>
    <comment_count>3</comment_count>
    <who name="Pavel Heimlich (hajma)">tropikhajma</who>
    <bug_when>2011-01-04 15:05:04 -0800</bug_when>
    <thetext>(In reply to comment #2)

&gt; Looks like this bug can be closed. Pavel, do you agree?

it certainly does not look like anybody from webkit cares about buildability on solaris, so for me it does not make any sense to spend time on development versions. I&apos;ll tell when the next Qt version is out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>329318</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-01-04 17:25:34 -0800</bug_when>
    <thetext>For the record, we gladly accept build fixes, but please don&apos;t disregard &lt;http://webkit.org/coding/contributing.html&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>329320</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-01-04 17:26:47 -0800</bug_when>
    <thetext>In particular, patches that are not marked r? likely won&apos;t be noticed, and patches without ChangeLogs will be not accepted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>330717</commentid>
    <comment_count>6</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2011-01-07 03:16:24 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; it certainly does not look like anybody from webkit cares about buildability on solaris, so for me it does not make any sense to spend time on development versions. I&apos;ll tell when the next Qt version is out.

We don&apos;t have a buildbot for solaris but it is certainly supported. We accept patches for sure.

The problem here is that nobody saw you patch until now. I just learned about it because a colleague triaged this http://bugreports.qt.nokia.com/browse/QTBUG-16448

There are two problems in this bug report that made it invisible for us:

First, you have not used the template to report this bug. Since the keyword &quot;Qt&quot; is missing, this bug was never triaged by us. See http://trac.webkit.org/wiki/QtWebKitBugs for more info.

Second, your patch was missing the changelog and was not marked for review. Such a patch does not appear in the review list. See http://trac.webkit.org/wiki/QtWebKitContrib for more info.

Finally, if a patch is ignored, you can always write on the WebKit mailing list (webkit-qt and webkit). We welcome contribution, you were just unlucky and nobody from Qt saw the bug.


(In reply to comment #2)
&gt; Looks like this bug can be closed. Pavel, do you agree?

Closing the bug then.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>374939</commentid>
    <comment_count>7</comment_count>
    <who name="Ben Taylor">bentaylor.solx86</who>
    <bug_when>2011-03-28 18:34:57 -0700</bug_when>
    <thetext>Reopen this bug.  The #if line from comment #2 fails to compile on Solaris 10 with Sun Studio 12, and add &quot;&amp;&amp; !OS(SOLARIS)&quot; fixes the problem.

I will submit a new patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>374970</commentid>
    <comment_count>8</comment_count>
      <attachid>87253</attachid>
    <who name="Ben Taylor">bentaylor.solx86</who>
    <bug_when>2011-03-28 20:15:59 -0700</bug_when>
    <thetext>Created attachment 87253
Patch to fix compile issue on Solaris 10/Sun Studio 12 CC in JavaScriptCore/wtf/MathExtras.h

The comment in #2 surely doesn&apos;t fix the issue on Solaris 10/Sun Studio 12 CC, as compiled with the qt-4.7.2.
Adding the patch completed the compile.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>375215</commentid>
    <comment_count>9</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2011-03-29 05:45:08 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; Reopen this bug.  The #if line from comment #2 fails to compile on Solaris 10 with Sun Studio 12, and add &quot;&amp;&amp; !OS(SOLARIS)&quot; fixes the problem.
&gt; 
&gt; I will submit a new patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>375218</commentid>
    <comment_count>10</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2011-03-29 05:53:36 -0700</bug_when>
    <thetext>Pierre does that make sense to you?

The change looks good to me but I would like a confirmation that the STL is always broken on Solaris. What about the GNU tools on Solaris?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>375234</commentid>
    <comment_count>11</comment_count>
    <who name="Pierre Rossi">pierre.rossi</who>
    <bug_when>2011-03-29 06:15:15 -0700</bug_when>
    <thetext>(In reply to comment #10)
&gt; Pierre does that make sense to you?
&gt; 
&gt; The change looks good to me but I would like a confirmation that the STL is always broken on Solaris. What about the GNU tools on Solaris?

Yup, that looks good to me to, my general rule of thumb when it comes to dealing with Solaris is to really lower your expectations, that&apos;s what this patch does, so definitely thumbs up ! :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>375242</commentid>
    <comment_count>12</comment_count>
      <attachid>87253</attachid>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2011-03-29 06:20:02 -0700</bug_when>
    <thetext>Comment on attachment 87253
Patch to fix compile issue on Solaris 10/Sun Studio 12 CC in JavaScriptCore/wtf/MathExtras.h

Look sane and Pierre says ok.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>375364</commentid>
    <comment_count>13</comment_count>
      <attachid>87253</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-03-29 08:26:12 -0700</bug_when>
    <thetext>Comment on attachment 87253
Patch to fix compile issue on Solaris 10/Sun Studio 12 CC in JavaScriptCore/wtf/MathExtras.h

Clearing flags on attachment: 87253

Committed r82254: &lt;http://trac.webkit.org/changeset/82254&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>375365</commentid>
    <comment_count>14</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-03-29 08:26:18 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>798626</commentid>
    <comment_count>15</comment_count>
    <who name="">richard</who>
    <bug_when>2013-01-02 04:39:45 -0800</bug_when>
    <thetext>I believe this latest patch is inappropriate for solaris if GCC is being used.

Perhaps it could better be done by changing:

&amp;&amp; !OS(SOLARIS) 

to 

&amp;&amp; !( OS(SOLARIS) &amp;&amp; defined(__SUNPRO_CC) )

or something of this nature.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>798661</commentid>
    <comment_count>16</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-01-02 07:32:34 -0800</bug_when>
    <thetext>Please open a new patch and upload a new bug.  We have very very few solaris users, so if you don&apos;t fix it, no one will. :)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>61034</attachid>
            <date>2010-07-09 04:57:32 -0700</date>
            <delta_ts>2010-07-09 04:58:32 -0700</delta_ts>
            <desc>patch</desc>
            <filename>qt-MathExtras.diff</filename>
            <type>text/plain</type>
            <size>571</size>
            <attacher name="Pavel Heimlich (hajma)">tropikhajma</attacher>
            
              <data encoding="base64">LS0tIHNyYy8zcmRwYXJ0eS93ZWJraXQvSmF2YVNjcmlwdENvcmUvd3RmL01hdGhFeHRyYXMuaC5v
cmlnCTIwMTAtMDctMDkgMTM6MjM6NTEuODE3NDk2OTI4ICswMjAwCisrKyBzcmMvM3JkcGFydHkv
d2Via2l0L0phdmFTY3JpcHRDb3JlL3d0Zi9NYXRoRXh0cmFzLmgJMjAxMC0wNy0wOSAxMzoyNjo0
MC40MzY2NjI3NjUgKzAyMDAKQEAgLTE5MCw3ICsxOTAsNyBAQAogaW5saW5lIGZsb2F0IHJhZDJn
cmFkKGZsb2F0IHIpIHsgcmV0dXJuIHIgKiAyMDAuMGYgLyBwaUZsb2F0OyB9CiBpbmxpbmUgZmxv
YXQgZ3JhZDJyYWQoZmxvYXQgZykgeyByZXR1cm4gZyAqIHBpRmxvYXQgLyAyMDAuMGY7IH0KIAot
I2lmICFDT01QSUxFUihNU1ZDKSAmJiAhQ09NUElMRVIoUlZDVCkgJiYgIU9TKEFORFJPSUQpICYm
ICFDT01QSUxFUihXSU5TQ1cpCisjaWYgIUNPTVBJTEVSKE1TVkMpICYmICFDT01QSUxFUihSVkNU
KSAmJiAhT1MoQU5EUk9JRCkgJiYgIUNPTVBJTEVSKFdJTlNDVykgJiYgIU9TKFNPTEFSSVMpCiB1
c2luZyBzdGQ6OmlzZmluaXRlOwogdXNpbmcgc3RkOjppc2luZjsKIHVzaW5nIHN0ZDo6aXNuYW47
Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>87253</attachid>
            <date>2011-03-28 20:15:59 -0700</date>
            <delta_ts>2011-03-29 08:26:12 -0700</delta_ts>
            <desc>Patch to fix compile issue on Solaris 10/Sun Studio 12 CC in JavaScriptCore/wtf/MathExtras.h</desc>
            <filename>webkit-bug-41953-Solaris10-MathExtras.h-fix.diff</filename>
            <type>text/plain</type>
            <size>1260</size>
            <attacher name="Ben Taylor">bentaylor.solx86</attacher>
            
              <data encoding="base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zOCw3IEBAIGlubGluZSBpbnQgY2xhbXBUb0lu
dGVnZXIodW5zaWduZWQgdmFsdWUKICAgICByZXR1cm4gc3RhdGljX2Nhc3Q8aW50PihzdGQ6Om1p
bih2YWx1ZSwgc3RhdGljX2Nhc3Q8dW5zaWduZWQ+KHN0ZDo6bnVtZXJpY19saW1pdHM8aW50Pjo6
bWF4KCkpKSk7CiB9CiAKLSNpZiAhQ09NUElMRVIoTVNWQykgJiYgIUNPTVBJTEVSKFdJTlNDVykg
JiYgIShDT01QSUxFUihSVkNUKSAmJiAoT1MoU1lNQklBTikgfHwgUExBVEZPUk0oQlJFV01QKSkp
CisjaWYgIUNPTVBJTEVSKE1TVkMpICYmICFDT01QSUxFUihXSU5TQ1cpICYmICEoQ09NUElMRVIo
UlZDVCkgJiYgKE9TKFNZTUJJQU4pIHx8IFBMQVRGT1JNKEJSRVdNUCkpKSAmJiAhT1MoU09MQVJJ
UykKIHVzaW5nIHN0ZDo6aXNmaW5pdGU7CiB1c2luZyBzdGQ6OmlzaW5mOwogdXNpbmcgc3RkOjpp
c25hbjsK
</data>

          </attachment>
      

    </bug>

</bugzilla>