<?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>25143</bug_id>
          
          <creation_ts>2009-04-11 13:31:32 -0700</creation_ts>
          <short_desc>[Qt] Build error in module WebKit/qt/tests/qwebelement/tst_qwebelement.cpp</short_desc>
          <delta_ts>2009-04-22 05:06:34 -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>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>25242</dup_id>
          
          <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="Clemmitt Sigler">cmsigler</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>117233</commentid>
    <comment_count>0</comment_count>
    <who name="Clemmitt Sigler">cmsigler</who>
    <bug_when>2009-04-11 13:31:32 -0700</bug_when>
    <thetext>Hi,

As of r42423, the Qt Linux build fails with a compile error:

-----------------------------------
g++ -c -pipe -march=pentium3 -O2 -pipe -Wall -W -D_REENTRANT -DQT_SHARED -DBUILDING_QT__=1 -DUSE_SYSTEM_MALLOC -DNDEBUG -DQT_NO_DEBUG -DQT_TESTLIB_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I/opt/siglercm/webkit/WebKit/WebKit/qt/tests/qwebelement -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtTest -I/usr/include/qt4 -I/opt/siglercm/webkit/WebKit/WebKit/qt/Api -I/opt/siglercm/webkit/WebKit/WebKit/qt/tests/qwebelement -I/opt/siglercm/webkit/WebKit/WebKit/qt/tests/qwebelement -I. -o tst_qwebelement.o /opt/siglercm/webkit/WebKit/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp
./WebKit/qt/tests/qwebelement/tst_qwebelement.cpp: In member function &apos;void tst_QWebElement::iteration()&apos;:
./WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:304: error: &apos;class QList&lt;QWebElement&gt;&apos; has no member named &apos;length&apos;
./WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:305: error: &apos;class QList&lt;QWebElement&gt;&apos; has no member named &apos;length&apos;
./WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:305: error: &apos;class QList&lt;QWebElement&gt;&apos; has no member named &apos;length&apos;
./WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:313: error: &apos;class QList&lt;QWebElement&gt;&apos; has no member named &apos;length&apos;
./WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:314: error: &apos;class QList&lt;QWebElement&gt;&apos; has no member named &apos;length&apos;
./WebKit/qt/tests/qwebelement/tst_qwebelement.cpp:314: error: &apos;class QList&lt;QWebElement&gt;&apos; has no member named &apos;length&apos;
make[2]: *** [tst_qwebelement.o] Error 1
make[2]: Leaving directory `./WebKitBuild/Release/WebKit/qt/tests/qwebelement&apos;
make[1]: *** [sub-qwebelement-make_default] Error 2
make[1]: Leaving directory `./WebKitBuild/Release/WebKit/qt/tests&apos;
make: *** [sub-WebKit-qt-tests-make_default-ordered] Error 2
-----------------------------------

This module and the method -- void tst_QWebElement::iteration() -- in which it throws an error are not well documented, so I&apos;m not sure what the developer is trying to do, or why length is not defined in the class being used.  Sorry I can&apos;t be of more assistance.  TIA.

Clemmitt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117234</commentid>
    <comment_count>1</comment_count>
    <who name="Clemmitt Sigler">cmsigler</who>
    <bug_when>2009-04-11 13:44:01 -0700</bug_when>
    <thetext>(In reply to comment #0)

Hi again,

Bad form to reply to oneself and all, but anyway.

I see that as of a few weeks ago the Buildbot setup at build.webkit.org changed.  Now only OS X and Windows builds are running there.  Are there any plans to add back build slaves for the Linux GTK+ and Linux Qt builds (and perhaps even the Linux wxWindows build, if that&apos;s appropriate)?  Or maybe these build slaves have moved to another buildbot hosted elsewhere?  Heaven knows I searched for another one via Google without success.

This seems an appropriate place to ask, since build errors like this one aren&apos;t caught if no buildbot is running for this platform, eh?  Thanks again very much :^)

Clemmitt
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117662</commentid>
    <comment_count>2</comment_count>
    <who name="Clemmitt Sigler">cmsigler</who>
    <bug_when>2009-04-15 13:37:53 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; As of r42423, the Qt Linux build fails with a compile error:

Well, since my own Qt Linux build at r42550 was still failing in tst_qwebelement.cpp, I took a stab in the dark that the developer meant to use the method &quot;size&quot; for class QList instead of &quot;length&quot; which is undefined.  This, at least, got my build to complete without failing on an error.  A patch is attached next.

(There may be another bug, this time in the Acid3 test.  If so, I&apos;ll file a separate bug report on it.  For now, my Qt Linux build crashes reliably near the end of running Acid3.  I&apos;ll wait a few days to see if things settle down and this problem goes away.)

HTH.

Clemmitt
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117663</commentid>
    <comment_count>3</comment_count>
      <attachid>29515</attachid>
    <who name="Clemmitt Sigler">cmsigler</who>
    <bug_when>2009-04-15 13:40:48 -0700</bug_when>
    <thetext>Created attachment 29515
Patch to fix Qt Linux build error in module tst_qwebelement.cpp

This patch fixes a build error under Qt Linux in module tst_qwebelement.cpp.  I think this is what the developer who wrote this module was aiming for....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117896</commentid>
    <comment_count>4</comment_count>
    <who name="Ariya Hidayat">ariya.hidayat</who>
    <bug_when>2009-04-17 05:19:42 -0700</bug_when>
    <thetext>Similar fix has been independently landed in
http://trac.webkit.org/changeset/42608

*** This bug has been marked as a duplicate of 25242 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>29515</attachid>
            <date>2009-04-15 13:40:48 -0700</date>
            <delta_ts>2009-04-22 05:06:34 -0700</delta_ts>
            <desc>Patch to fix Qt Linux build error in module tst_qwebelement.cpp</desc>
            <filename>tst_qwebelement.cpp.patch</filename>
            <type>text/plain</type>
            <size>1013</size>
            <attacher name="Clemmitt Sigler">cmsigler</attacher>
            
              <data encoding="base64">LS0tIFdlYktpdC9xdC90ZXN0cy9xd2ViZWxlbWVudC90c3RfcXdlYmVsZW1lbnQuY3BwLm9yaWcJ
MjAwOS0wNC0xNSAxNDozMDo0MS4wMDAwMDAwMDAgLTA0MDAKKysrIFdlYktpdC9xdC90ZXN0cy9x
d2ViZWxlbWVudC90c3RfcXdlYmVsZW1lbnQuY3BwCTIwMDktMDQtMTUgMTY6Mjg6MzYuMDAwMDAw
MDAwIC0wNDAwCkBAIC0zMDEsOCArMzAxLDggQEAKICAgICBmb3JlYWNoKFFXZWJFbGVtZW50IHAs
IHBhcmFzKSB7CiAgICAgICAgIGZvcmVhY2hMaXN0LmFwcGVuZChwKTsKICAgICB9Ci0gICAgUVZF
UklGWShmb3JlYWNoTGlzdC5sZW5ndGgoKSA9PSAyKTsKLSAgICBRQ09NUEFSRShmb3JlYWNoTGlz
dC5sZW5ndGgoKSwgcmVmZXJlbmNlTGlzdC5sZW5ndGgoKSk7CisgICAgUVZFUklGWShmb3JlYWNo
TGlzdC5zaXplKCkgPT0gMik7CisgICAgUUNPTVBBUkUoZm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