<?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>53766</bug_id>
          
          <creation_ts>2011-02-04 07:06:20 -0800</creation_ts>
          <short_desc>[Qt] Compilation error on OpenBSD</short_desc>
          <delta_ts>2011-02-10 21:09:55 -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>Platform</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>P5</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Olivier Goffart">ogoffart</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>benjamin</cc>
    
    <cc>commit-queue</cc>
    
    <cc>eric</cc>
    
    <cc>kling</cc>
    
    <cc>paroga</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>345471</commentid>
    <comment_count>0</comment_count>
    <who name="Olivier Goffart">ogoffart</who>
    <bug_when>2011-02-04 07:06:20 -0800</bug_when>
    <thetext>src/3rdparty/webkit/WebCore/websockets/WebSocketHandshake.cpp:289: error: &apos;strnstr&apos; was not declared in this scope

That function is apparently not protbale. According to the man page:
&quot;Since the strnstr() function is a FreeBSD specific API, it should only be used when portability is not a concern.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>347801</commentid>
    <comment_count>1</comment_count>
    <who name="Patrick R. Gansterer">paroga</who>
    <bug_when>2011-02-08 16:35:46 -0800</bug_when>
    <thetext>Please add a OS(OPENBSD) (or whatever) at http://trac.webkit.org/browser/trunk/Source/JavaScriptCore/wtf/StringExtras.h?rev=74855#L103</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>348132</commentid>
    <comment_count>2</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2011-02-09 03:42:58 -0800</bug_when>
    <thetext>(In reply to comment #1)
&gt; Please add a OS(OPENBSD) (or whatever) at http://trac.webkit.org/browser/trunk/Source/JavaScriptCore/wtf/StringExtras.h?rev=74855#L103

I would be happy to but I can&apos;t make a patch I do not test. Patrick, could you make the patch for OpenBSD and test the build?

Here is some info about making patches: https://trac.webkit.org/wiki/QtWebKitContrib
Ping me on IRC if you have any question.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>348134</commentid>
    <comment_count>3</comment_count>
    <who name="Patrick R. Gansterer">paroga</who>
    <bug_when>2011-02-09 03:52:43 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; I would be happy to but I can&apos;t make a patch I do not test.
I have the same &quot;problem&quot; of no OpenBSD installation.

&gt; Patrick, could you make the patch for OpenBSD and test the build?
I&apos;m be willing to create a patch, but Oliver needs to test it first.

Mabye my last comment should be read as:
&quot;Oliver, can you try to add OS(OPENBSD) to StringExtras.h and tell us if that fixes the problem&quot;
Sorry for the unclear comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>348874</commentid>
    <comment_count>4</comment_count>
    <who name="Olivier Goffart">ogoffart</who>
    <bug_when>2011-02-10 01:10:52 -0800</bug_when>
    <thetext>I confirm that adding || OS(OPENBSD) in StringExtras.h works.

Then webkit compile and i am able to run the Qt demo browser.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>349251</commentid>
    <comment_count>5</comment_count>
      <attachid>82021</attachid>
    <who name="Patrick R. Gansterer">paroga</who>
    <bug_when>2011-02-10 11:59:31 -0800</bug_when>
    <thetext>Created attachment 82021
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>349296</commentid>
    <comment_count>6</comment_count>
      <attachid>82021</attachid>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2011-02-10 12:55:27 -0800</bug_when>
    <thetext>Comment on attachment 82021
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=82021&amp;action=review

&gt; Source/JavaScriptCore/wtf/Platform.h:729
&gt; +#if !defined(HAVE_STRNSTR)
&gt; +#if !COMPILER(MSVC) &amp;&amp; !COMPILER(RVCT) &amp;&amp; !OS(WINDOWS) &amp;&amp; !OS(LINUX) &amp;&amp; !OS(SOLARIS) &amp;&amp; !OS(OPENBSD)

Shouldn&apos;t that be the other way around:
#if OS(MAC) || OS(FREEBSD)
?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>349317</commentid>
    <comment_count>7</comment_count>
      <attachid>82034</attachid>
    <who name="Patrick R. Gansterer">paroga</who>
    <bug_when>2011-02-10 13:21:19 -0800</bug_when>
    <thetext>Created attachment 82034
Alternative Patch (with positiv listing)

View in context: https://bugs.webkit.org/attachment.cgi?id=82021&amp;action=review

&gt;&gt; Source/JavaScriptCore/wtf/Platform.h:729
&gt;&gt; +#if !COMPILER(MSVC) &amp;&amp; !COMPILER(RVCT) &amp;&amp; !OS(WINDOWS) &amp;&amp; !OS(LINUX) &amp;&amp; !OS(SOLARIS) &amp;&amp; !OS(OPENBSD)
&gt; 
&gt; Shouldn&apos;t that be the other way around:
&gt; #if OS(MAC) || OS(FREEBSD)
&gt; ?

Maybe yes, maybe no. ;-)
I don&apos;t know if it&apos;s defined at AIX, HAIKU, NETBSD, QNX, but changing this to positiv listing is clearly better.

It seams that at least HAIKU needs this change too, so it&apos;s ok to take the risk of breaking the build on some &quot;uncommon&quot; platforms IMHO.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>349321</commentid>
    <comment_count>8</comment_count>
      <attachid>82034</attachid>
    <who name="Andreas Kling">kling</who>
    <bug_when>2011-02-10 13:27:21 -0800</bug_when>
    <thetext>Comment on attachment 82034
Alternative Patch (with positiv listing)

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>349325</commentid>
    <comment_count>9</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2011-02-10 13:31:29 -0800</bug_when>
    <thetext>(In reply to comment #7)
&gt; It seams that at least HAIKU needs this change too, so it&apos;s ok to take the risk of breaking the build on some &quot;uncommon&quot; platforms IMHO.

Judging by the qt-haiku port (I had it handy..), Haiku doesn&apos;t have strnstr(). http://gitorious.org/webkit/qt-haiku-webkit/commit/b964b5fb44144d48a8bce266db856d3317d12a0f?diffmode=sidebyside</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>349434</commentid>
    <comment_count>10</comment_count>
      <attachid>82034</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-02-10 15:26:51 -0800</bug_when>
    <thetext>Comment on attachment 82034
Alternative Patch (with positiv listing)

Clearing flags on attachment: 82034

Committed r78278: &lt;http://trac.webkit.org/changeset/78278&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>349435</commentid>
    <comment_count>11</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-02-10 15:26:56 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>349616</commentid>
    <comment_count>12</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-02-10 21:09:55 -0800</bug_when>
    <thetext>http://trac.webkit.org/changeset/78278 might have broken GTK Linux 32-bit Release
The following tests are not passing:
http/tests/misc/acid2-pixel.html
http/tests/misc/acid2.html</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>82021</attachid>
            <date>2011-02-10 11:59:31 -0800</date>
            <delta_ts>2011-02-10 13:25:46 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-53766.patch</filename>
            <type>text/plain</type>
            <size>1728</size>
            <attacher name="Patrick R. Gansterer">paroga</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cgYi9Tb3VyY2UvSmF2
YVNjcmlwdENvcmUvQ2hhbmdlTG9nCmluZGV4IDdmYjQwNDUuLmMyMWQzNzcgMTAwNjQ0Ci0tLSBh
L1NvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKKysrIGIvU291cmNlL0phdmFTY3JpcHRD
b3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE1IEBACisyMDExLTAyLTEwICBQYXRyaWNrIEdhbnN0
ZXJlciAgPHBhcm9nYUB3ZWJraXQub3JnPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAo
T09QUyEpLgorCisgICAgICAgIEZpeCBjb21waWxhdGlvbiBlcnJvciBvbiBPcGVuQlNECisgICAg
ICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD01Mzc2NgorCisgICAg
ICAgIEFkZCBhIEhBVkVfU1RSTlNUUiBpbiBQbGF0Zm9ybS5oLCBkb24ndCBkZWZpbmUgaXQgb24g
T3BlbkJTRC4KKworICAgICAgICAqIHd0Zi9QbGF0Zm9ybS5oOgorICAgICAgICAqIHd0Zi9TdHJp
bmdFeHRyYXMuaDogVXNlIEhBVkUoU1RSTlNUUikgbm93LgorCiAyMDExLTAxLTI1ICBBbnR0aSBL
b2l2aXN0byAgPGFudHRpQGFwcGxlLmNvbT4KIAogICAgICAgICBOb3QgcmV2aWV3ZWQuCmRpZmYg
LS1naXQgYS9Tb3VyY2UvSmF2YVNjcmlwdENvcmUvd3RmL1BsYXRmb3JtLmggYi9Tb3VyY2UvSmF2
YVNjcmlwdENvcmUvd3RmL1BsYXRmb3J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2lmIENPTVBJTEVSKE1TVkMpIHx8IENPTVBJTEVSKFJWQ1Qp
IHx8IE9TKFdJTkRPV1MpIHx8IE9TKExJTlVYKSB8fCBPUyhTT0xBUklTKQotLy8gRklYTUU6IHNo
b3VsZCBjaGVjayBIQVZFX1NUUk5TVFIKKyNpZiAhSEFWRShTVFJOU1RSKQogCiBpbmxpbmUgY2hh
ciogc3RybnN0cihjb25zdCBjaGFyKiBidWZmZXIsIGNvbnN0IGNoYXIqIHRhcmdldCwgc2l6ZV90
IGJ1ZmZlckxlbmd0aCkKIHsK
</data>
<flag name="review"
          id="73644"
          type_id="1"
          status="-"
          setter="kling"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>82034</attachid>
            <date>2011-02-10 13:21:19 -0800</date>
            <delta_ts>2011-02-10 15:26:51 -0800</delta_ts>
            <desc>Alternative Patch (with positiv listing)</desc>
            <filename>bug-53766.patch</filename>
            <type>text/plain</type>
            <size>1670</size>
            <attacher name="Patrick R. Gansterer">paroga</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cgYi9Tb3VyY2UvSmF2
YVNjcmlwdENvcmUvQ2hhbmdlTG9nCmluZGV4IDdmYjQwNDUuLmMyMWQzNzcgMTAwNjQ0Ci0tLSBh
L1NvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKKysrIGIvU291cmNlL0phdmFTY3JpcHRD
b3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE1IEBACisyMDExLTAyLTEwICBQYXRyaWNrIEdhbnN0
ZXJlciAgPHBhcm9nYUB3ZWJraXQub3JnPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAo
T09QUyEpLgorCisgICAgICAgIEZpeCBjb21waWxhdGlvbiBlcnJvciBvbiBPcGVuQlNECisgICAg
ICAgIGh0dHBzOi8vYnVncy53ZWJraX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