Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

linking error in qtwebkit5.2.0 build



  • Hi,
    I am getting following undefined reference error..
    linking ../lib/libQt5WebKit.so.5.2.0
    /usr/targets/nte-mv5-6.1.8.60/work/net-www/qtwebkit-5.2.0/work/qt-everywhere-opensource-src-5.2.0/qtwebkit/Source/WebKit/release/libWebKit1.a(qwebdatabase.o): In function WTF::StringImpl::deref()': /usr/targets/nte-mv5-6.1.8.60/work/net-www/qtwebkit-5.2.0/work/qt-everywhere-opensource-src-5.2.0/qtwebkit/Source/WebKit/../WTF/wtf/text/StringImpl.h:616: undefined reference toWTF::StringImpl::destroy(WTF::StringImpl*)'
    /usr/targets/nte-mv5-6.1.8.60/work/net-www/qtwebkit-5.2.0/work/qt-everywhere-opensource-src-5.2.0/qtwebkit/Source/WebKit/../WTF/wtf/text/StringImpl.h:616: undefined reference to WTF::StringImpl::destroy(WTF::StringImpl*)' /usr/targets/nte-mv5-6.1.8.60/work/net-www/qtwebkit-5.2.0/work/qt-everywhere-opensource-src-5.2.0/qtwebkit/Source/WebKit/../WTF/wtf/text/StringImpl.h:616: undefined reference toWTF::StringImpl::destroy(WTF::StringImpl*)'
    /usr/targets/nte-mv5-6.1.8.60/work/net-www/qtwebkit-5.2.0/work/qt-everywhere-opensource-src-5.2.0/qtwebkit/Source/WebKit/../WTF/wtf/text/StringImpl.h:616: undefined reference to WTF::StringImpl::destroy(WTF::StringImpl*)' /usr/targets/nte-mv5-6.1.8.60/work/net-www/qtwebkit-5.2.0/work/qt-everywhere-opensource-src-5.2.0/qtwebkit/Source/WebKit/../WTF/wtf/text/StringImpl.h:616: undefined reference toWTF::StringImpl::destroy(WTF::StringImpl*)'
    /usr/targets/nte-mv5-6.1.8.60/work/net-www/qtwebkit-5.2.0/work/qt-everywhere-opensource-src-5.2.0/qtwebkit/Source/WebKit/release/libWebKit1.a(qwebdatabase.o): In function QWebDatabase::name() const': /usr/targets/nte-mv5-6.1.8.60/work/net-www/qtwebkit-5.2.0/work/qt-everywhere-opensource-src-5.2.0/qtwebkit/Source/WebKit/qt/Api/qwebdatabase.cpp:81: undefined reference toWTF::String::operator QString() const'
    /usr/targets/nte-mv5-6.1.8.60/work/net-www/qtwebkit-5.2.0/work/qt-everywhere-opensource-src-5.2.0/qtwebkit/Source/WebKit/release/libWebKit1.a(qwebdatabase.o): In function QWebDatabase::displayName() const': /usr/targets/nte-mv5-6.1.8.60/work/net-www/qtwebkit-5.2.0/work/qt-everywhere-opensource-src-5.2.0/qtwebkit/Source/WebKit/qt/Api/qwebdatabase.cpp:91: undefined reference toWTF::String::operator QString() const'
    /usr/targets/nte-mv5-6.1.8.60/work/net-www/qtwebkit-5.2.0/work/qt-everywhere-opensource-src-5.2.0/qtwebkit/Source/WebKit/release/libWebKit1.a(qwebdatabase.o): In function WTF::StringImpl::deref()': /usr/targets/nte-mv5-6.1.8.60/work/net-www/qtwebkit-5.2.0/work/qt-everywhere-opensource-src-5.2.0/qtwebkit/Source/WebKit/../WTF/wtf/text/StringImpl.h:616: undefined reference toWTF::StringImpl::destroy(WTF::StringImpl*)'
    /usr/targets/nte-mv5-6.1.8.60/work/net-www/qtwebkit-5.2.0/work/qt-everywhere-opensource-src-5.2.0/qtwebkit/Source/WebKit/../WTF/wtf/text/StringImpl.h:616: undefined reference to WTF::StringImpl::destroy(WTF::StringImpl*)' /usr/targets/nte-mv5-6.1.8.60/work/net-www/qtwebkit-5.2.0/work/qt-everywhere-opensource-src-5.2.0/qtwebkit/Source/WebKit/../WTF/wtf/text/StringImpl.h:616: undefined reference toWTF::StringImpl::destroy(WTF::StringImpl*)'
    /usr/targets/nte-mv5-6.1.8.60/work/net-www/qtwebkit-5.2.0/work/qt-everywhere-opensource-src-5.2.0/qtwebkit/Source/WebKit/../WTF/wtf/text/StringImpl.h:616: undefined reference to WTF::StringImpl::destroy(WTF::StringImpl*)' /usr/targets/nte-mv5-6.1.8.60/work/net-www/qtwebkit-5.2.0/work/qt-everywhere-opensource-src-5.2.0/qtwebkit/Source/WebKit/../WTF/wtf/text/StringImpl.h:616: undefined reference toWTF::StringImpl::destroy(WTF::StringImpl*)'
    /usr/targets/nte-mv5-6.1.8.60/work/net-www/qtwebkit-5.2.0/work/qt-everywhere-opensource-src-5.2.0/qtwebkit/Source/WebKit/release/libWebKit1.a(qwebdatabase.o):/usr/targets/nte-mv5-6.1.8.60/work/net-www/qtwebkit-5.2.0/work/qt-everywhere-opensource-src-5.2.0/qtwebkit/Source/WebKit/../WTF/wtf/text/StringImpl.h:616: more undefined references to `WTF::StringImpl::destroy(WTF::StringImpl*)' follow

    loader/archive/ArchiveFactory.cpp:(.text.ZN3WTF7HashMapINS_6StringEPFNS_10PassRefPtrIN7WebCore7ArchiveEEERKNS3_4KURLEPNS3_12SharedBufferEENS_15CaseFoldingHashENS_10HashTraitsIS1_EENSE_ISC_EEE3setERKS1_RKSC[WTF::HashMap<WTF::String, WTF::PassRefPtrWebCore::Archive ()(WebCore::KURL const&, WebCore::SharedBuffer), WTF::CaseFoldingHash, WTF::HashTraitsWTF::String, WTF::HashTraits<WTF::PassRefPtrWebCore::Archive ()(WebCore::KURL const&, WebCore::SharedBuffer)> >::set(WTF::String const&, WTF::PassRefPtrWebCore::Archive (* const&)(WebCore::KURL const&, WebCore::SharedBuffer*))]+0x4e8): undefined reference to WTF::StringImpl::destroy(WTF::StringImpl*)' loader/archive/ArchiveFactory.cpp:(.text._ZN3WTF7HashMapINS_6StringEPFNS_10PassRefPtrIN7WebCore7ArchiveEEERKNS3_4KURLEPNS3_12SharedBufferEENS_15CaseFoldingHashENS_10HashTraitsIS1_EENSE_ISC_EEE3setERKS1_RKSC_[WTF::HashMap<WTF::String, WTF::PassRefPtr<WebCore::Archive> (*)(WebCore::KURL const&, WebCore::SharedBuffer*), WTF::CaseFoldingHash, WTF::HashTraits<WTF::String>, WTF::HashTraits<WTF::PassRefPtr<WebCore::Archive> (*)(WebCore::KURL const&, WebCore::SharedBuffer*)> >::set(WTF::String const&, WTF::PassRefPtr<WebCore::Archive> (* const&)(WebCore::KURL const&, WebCore::SharedBuffer*))]+0x510): undefined reference toWTF::StringImpl::destroy(WTF::StringImpl*)'
    /usr/targets/nte-mv5-6.1.8.60/work/net-www/qtwebkit-5.2.0/work/qt-everywhere-opensource-src-5.2.0/qtwebkit/Source/WebCore/release/libWebCore.a(MHTMLArchive.o): could not read symbols: Memory exhausted
    collect2: ld returned 1 exit status
    make[2]: *** [../lib/libQt5WebKit.so.5.2.0] Error 1
    make[2]: Leaving directory `/usr/targets/nte-mv5-6.1.8.60/work/net-www/qtwebkit-5.2.0/work/qt-everywhere-opensource-src-5.2.0/qtwebkit/Source'

    please help..



  • See the last line:

    ...could not read symbols: Memory exhausted

    I read somewhere else that webkit requires a lot of memory to compile - but I don't remember how much...
    So it seems to be a memory issue and not a problem with your dependencies.



  • I have allotted 10GB ram to my virtual box..still getting same error...


Log in to reply