[webkit-dev] WebKit-r33371 compilation error against Qtopia Phone Edition 4.3.1

George zuo at funai.co.jp
Tue May 13 18:31:24 PDT 2008


Hi, Tor Arne,

Thanks a lot for your prompt reply.

I have updated to the latest trunk source r33423, and those two errors
cleard.

Now, another error is when compileing JavaScriptCore/kjs/date_object.cpp,
any comment? 

Thanks in advance.

George

----------------------------------------------------------------
arm-linux-g++ -c -pipe -fno-short-enums -march=armv4t -DQT_QWS_EXAMPLE -fno-exceptions -fno-rtti -fno-short-enums -O2 -Wall -W -D_REENTRANT -DBUILDING_QT__ -DBUILDING_QT__ -DQT_BEGIN_NAMESPACE= -DQT_END_NAMESPACE= -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/home_local/george/qtopia-opensource-4.3.1/devices/example/mkspecs/qws/linux-example-g++ -I../../../../JavaScriptCore/kjs -I/home_local/george/build-gtl/qtopiacore/target/include/QtCore -I/home_local/george/build-gtl/qtopiacore/target/include/QtCore -I/home_local/george/build-gtl/qtopiacore/target/include/QtNetwork -I/home_local/george/build-gtl/qtopiacore/target/include/QtNetwork -I/home_local/george/build-gtl/qtopiacore/target/include -I../../../../JavaScriptCore -I../../../../JavaScriptCore/kjs -I/home_local/george/temp/WebKit/JavaScriptCore/kjs/../bindings -I/home_local/george/temp/WebKit/JavaScriptCore/kjs/../bindings/c -I../../../../JavaScriptCore/wtf -Itmp -I../../../../JavaScriptCore -I../../../../JavaScriptCore/kjs -I../../../../JavaScriptCore/wtf -I../../../../JavaScriptCore/wtf/unicode -I../../../../JavaScriptCore/pcre -Itmp -I../../../../JavaScriptCore/kjs -I../../../../JavaScriptCore/kjs -I/home_local/george/inc -I. -o tmp/date_object.o ../../../../JavaScriptCore/kjs/date_object.cpp
../../../../JavaScriptCore/kjs/date_object.cpp:576: error: expected unqualified-id before 'else'
../../../../JavaScriptCore/kjs/date_object.cpp: In function 'double ymdhmsToSeconds(long int, int, int, int, int, int)':
../../../../JavaScriptCore/kjs/date_object.cpp:612: error: 'hoursPerDay' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:612: error: 'minutesPerHour' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:612: error: 'secondsPerMinute' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp: At global scope:
../../../../JavaScriptCore/kjs/date_object.cpp:674: error: expected ',' or '...' before '&' token
../../../../JavaScriptCore/kjs/date_object.cpp:674: error: ISO C++ forbids declaration of 'UString' with no type
../../../../JavaScriptCore/kjs/date_object.cpp: In function 'double parseDate(int)':
../../../../JavaScriptCore/kjs/date_object.cpp:690: error: 'CString' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:690: error: expected `;' before 'dateCString'
../../../../JavaScriptCore/kjs/date_object.cpp:691: error: 'dateCString' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:716: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:723: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:727: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:730: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:736: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:739: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:743: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:746: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:749: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:757: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:759: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:764: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:777: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:783: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:787: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:793: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:799: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:812: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:831: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:834: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:838: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:842: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:846: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:850: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:858: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:862: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:869: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:876: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:899: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:903: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:912: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:934: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:942: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:954: error: 'GregorianDateTime' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:954: error: expected `;' before 't'
../../../../JavaScriptCore/kjs/date_object.cpp:955: error: 't' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:964: error: 'gregorianDateTimeToMS' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:967: error: 'msPerSecond' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp: At global scope:
../../../../JavaScriptCore/kjs/date_object.cpp:674: warning: unused parameter 'UString'
../../../../JavaScriptCore/kjs/date_object.cpp: In function 'double timeClip(double)':
../../../../JavaScriptCore/kjs/date_object.cpp:973: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp:975: error: 'NaN' was not declared in this scope
../../../../JavaScriptCore/kjs/date_object.cpp: At global scope:
../../../../JavaScriptCore/kjs/date_object.cpp:981: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:999: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1017: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1035: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1053: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1078: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1103: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1128: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1142: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1156: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1174: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1192: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1210: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1228: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1246: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1264: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1282: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1300: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1318: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1336: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1354: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1372: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1390: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1408: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1426: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1442: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1458: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1476: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1489: error: expected initializer before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1521: error: expected initializer before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1559: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1565: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1571: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1577: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1583: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1589: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1595: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1601: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1607: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1613: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1619: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1625: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1631: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1637: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1643: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1686: error: expected constructor, destructor, or type conversion before '*' token
../../../../JavaScriptCore/kjs/date_object.cpp:1706: error: expected declaration before '}' token
../../../../JavaScriptCore/kjs/date_object.cpp: In member function 'virtual KJS::JSValue* KJS::DateObjectFuncImp::callAsFunction(KJS::ExecState*, KJS::JSObject*, const KJS::List&)':
../../../../JavaScriptCore/kjs/date_object.cpp:576: warning: control reaches end of non-void function
../../../../JavaScriptCore/kjs/date_object.cpp: At global scope:
../../../../JavaScriptCore/kjs/date_object.cpp:674: warning: 'double parseDate(int)' defined but not used
../../../../JavaScriptCore/kjs/date_object.cpp:70: warning: 'double KJS::parseDate(const KJS::UString&)' declared 'static' but never defined
../../../../JavaScriptCore/kjs/date_object.cpp:71: warning: 'double KJS::timeClip(double)' declared 'static' but never defined
../../../../JavaScriptCore/kjs/date_object.cpp:173: warning: 'KJS::JSCell* KJS::formatLocaleDate(const KJS::GregorianDateTime&, KJS::LocaleDateTimeFormat)' defined but not used
../../../../JavaScriptCore/kjs/date_object.cpp:219: warning: 'KJS::UString KJS::formatDateUTCVariant(const KJS::GregorianDateTime&)' defined but not used
../../../../JavaScriptCore/kjs/date_object.cpp:256: warning: 'bool KJS::fillStructuresUsingTimeArgs(KJS::ExecState*, const KJS::List&, int, double*, KJS::GregorianDateTime*)' defined but not used
../../../../JavaScriptCore/kjs/date_object.cpp:304: warning: 'bool KJS::fillStructuresUsingDateArgs(KJS::ExecState*, const KJS::List&, int, double*, KJS::GregorianDateTime*)' defined but not used
make[1]: *** [tmp/date_object.o] error 1





> George wrote:
> > I found this is occurred with Macro definition XP_UNIX, I clear it by
> > commenting out the configuration in WebCore.pri:
> > 
> > #qt-port:unix:!mac: DEFINES += XP_UNIX ENABLE_NETSCAPE_PLUGIN_API=1
> 
> Good catch, we should be doing qt-port:unix:!mac:!embedded.
> 
> > 2, when compiling HTMLFormElement.cpp
> > ../../../WebCore/platform/FileSystem.h:138: error: 'PlatformModule' was not declared in this scope
> 
> Add "|| defined(Q_WS_QWS)"
> 
> I'll sort this out in a patch.
> 
> Thanks for reporting!
> 
> Tor Arne
> 
> -- 
> Tor Arne Vestbø, Software Engineer
> Trolltech ASA, Oslo, Norway
> http://www.trolltech.com/
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo/webkit-dev




More information about the webkit-dev mailing list