[webkit-dev] WebKit-r33371 compilation error against Qtopia Phone
Edition 4.3.1
George
zuo at funai.co.jp
Tue May 13 19:51:45 PDT 2008
It seems that the JavaScriptCore/kjs/date_object.cpp compilation error
was fixed in trunk r33425.
But now, another error is when compiling QtLauncher. The reason is maybe
the library path or header file path setting. Any comment will be highly
apreciated.
regards,
George
------------------------------
arm-linux-g++ -Wl,-rpath-link,/home_local/george/temp/WebKit/WebKitBuild/Release/lib -Wl,-rpath-link,/home_local/george/build-gtl/image/lib -o ../../../bin/QtLauncher main.o -L/home_local/george/temp/WebKit/WebKitBuild/Release/lib -L/home/george/lib -L/home_local/george/build-gtl/qtopiacore/target/lib -lQtWebKit -L/home/george/marvell/bsp/bin/arm-iwmmxt-linux-gnueabi/arm-iwmmxt-linux-gnueabi/lib -L/home/george/Release/WTP_FUNAI_RELEASE0_1VERSION0_4/wbally/usr/local/src/target/alsa/rootfs/usr/lib -L/home_local/george/build-gtl/qtopiacore/target/lib -L/home/george/lib -lQtUiTools -lQtXml -lQtGui -lQtNetwork -lQtCore -lm -lrt -ldl -lpthread
main.o: In function `WebPage::createWindow(QWebPage::WebWindowType)':
main.cpp:(.text+0x198): undefined reference to `QWebView::page() const'
main.o: In function `main':
main.cpp:(.text+0x32c): undefined reference to `QWebSettings::setMaximumPagesInCache(int)'
main.cpp:(.text+0x388): undefined reference to `QWebSettings::setObjectCacheCapacities(int, int, int)'
main.cpp:(.text+0x38c): undefined reference to `QWebSettings::globalSettings()'
main.cpp:(.text+0x398): undefined reference to `QWebSettings::setAttribute(QWebSettings::WebAttribute, bool)'
main.cpp:(.text+0x3a0): undefined reference to `QWebSettings::globalSettings()'
main.cpp:(.text+0x3ac): undefined reference to `QWebSettings::setAttribute(QWebSettings::WebAttribute, bool)'
main.o: In function `WebPage::createPlugin(QString const&, QUrl const&, QStringList const&, QStringList const&)':
main.cpp:(.text+0x608): undefined reference to `QWebPage::view() const'
main.o: In function `MainWindow::qt_metacall(QMetaObject::Call, int, void**)':
main.cpp:(.text+0x7b4): undefined reference to `QWebView::load(QUrl const&)'
main.cpp:(.text+0x7f4): undefined reference to `QWebView::url() const'
main.o: In function `WebPage::~WebPage()':
main.cpp:(.text._ZN7WebPageD0Ev[WebPage::~WebPage()]+0x10): undefined reference to `QWebPage::~QWebPage()'
main.o: In function `WebPage::~WebPage()':
main.cpp:(.text._ZN7WebPageD1Ev[WebPage::~WebPage()]+0x10): undefined reference to `QWebPage::~QWebPage()'
main.o: In function `MainWindow::MainWindow(QUrl const&)':
main.cpp:(.text._ZN10MainWindowC1ERK4QUrl[MainWindow::MainWindow(QUrl const&)]+0x44): undefined reference to `QWebView::QWebView(QWidget*)'
main.cpp:(.text._ZN10MainWindowC1ERK4QUrl[MainWindow::MainWindow(QUrl const&)]+0x60): undefined reference to `QWebPage::QWebPage(QObject*)'
main.cpp:(.text._ZN10MainWindowC1ERK4QUrl[MainWindow::MainWindow(QUrl const&)]+0x74): undefined reference to `QWebView::setPage(QWebPage*)'
main.cpp:(.text._ZN10MainWindowC1ERK4QUrl[MainWindow::MainWindow(QUrl const&)]+0x168): undefined reference to `QWebView::page() const'
main.cpp:(.text._ZN10MainWindowC1ERK4QUrl[MainWindow::MainWindow(QUrl const&)]+0x184): undefined reference to `QWebView::page() const'
main.cpp:(.text._ZN10MainWindowC1ERK4QUrl[MainWindow::MainWindow(QUrl const&)]+0x430): undefined reference to `QWebView::pageAction(QWebPage::WebAction) const'
main.cpp:(.text._ZN10MainWindowC1ERK4QUrl[MainWindow::MainWindow(QUrl const&)]+0x448): undefined reference to `QWebView::pageAction(QWebPage::WebAction) const'
main.cpp:(.text._ZN10MainWindowC1ERK4QUrl[MainWindow::MainWindow(QUrl const&)]+0x460): undefined reference to `QWebView::pageAction(QWebPage::WebAction) const'
main.cpp:(.text._ZN10MainWindowC1ERK4QUrl[MainWindow::MainWindow(QUrl const&)]+0x478): undefined reference to `QWebView::pageAction(QWebPage::WebAction) const'
main.cpp:(.text._ZN10MainWindowC1ERK4QUrl[MainWindow::MainWindow(QUrl const&)]+0x4c0): undefined reference to `QWebView::pageAction(QWebPage::WebAction) const'
main.o:main.cpp:(.text._ZN10MainWindowC1ERK4QUrl[MainWindow::MainWindow(QUrl const&)]+0x4d8): more undefined references to `QWebView::pageAction(QWebPage::WebAction) const' follow
main.o: In function `MainWindow::MainWindow(QUrl const&)':
main.cpp:(.text._ZN10MainWindowC1ERK4QUrl[MainWindow::MainWindow(QUrl const&)]+0x62c): undefined reference to `QWebView::load(QUrl const&)'
main.o:(.rodata+0x128): undefined reference to `QWebPage::metaObject() const'
main.o:(.rodata+0x12c): undefined reference to `QWebPage::qt_metacast(char const*)'
main.o:(.rodata+0x130): undefined reference to `QWebPage::qt_metacall(QMetaObject::Call, int, void**)'
main.o:(.rodata+0x13c): undefined reference to `QWebPage::event(QEvent*)'
main.o:(.rodata+0x158): undefined reference to `QWebPage::triggerAction(QWebPage::WebAction, bool)'
main.o:(.rodata+0x15c): undefined reference to `QWebPage::extension(QWebPage::Extension, QWebPage::ExtensionOption const*, QWebPage::ExtensionReturn*)'
main.o:(.rodata+0x160): undefined reference to `QWebPage::supportsExtension(QWebPage::Extension) const'
main.o:(.rodata+0x16c): undefined reference to `QWebPage::acceptNavigationRequest(QWebFrame*, QWebNetworkRequest const&, QWebPage::NavigationType)'
main.o:(.rodata+0x170): undefined reference to `QWebPage::chooseFile(QWebFrame*, QString const&)'
main.o:(.rodata+0x174): undefined reference to `QWebPage::javaScriptAlert(QWebFrame*, QString const&)'
main.o:(.rodata+0x178): undefined reference to `QWebPage::javaScriptConfirm(QWebFrame*, QString const&)'
main.o:(.rodata+0x17c): undefined reference to `QWebPage::javaScriptPrompt(QWebFrame*, QString const&, QString const&, QString*)'
main.o:(.rodata+0x180): undefined reference to `QWebPage::javaScriptConsoleMessage(QString const&, int, QString const&)'
main.o:(.rodata+0x184): undefined reference to `QWebPage::userAgentForUrl(QUrl const&) const'
collect2: ld returned 1 exit status
make[1]: *** [../../../bin/QtLauncher] error 1
----------------------------
> 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
>
>
> _______________________________________________
> 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