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

Undefined References to libxml2 in libQt5WebKit.so during compilation



  • Hello All,

    I am using QT5.3.2 in FC13 operating system. The libxml2 version supported by FC13 is 2.7.7. When i compile my program, i am getting following undefined references:

    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xsltSetCtxtSortFunc@LIBXML2_1.0.24' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxsltLoadStylesheetPI@LIBXML2_1.0.11'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xmlRegisterOutputCallbacks@LIBXML2_2.4.30' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxmlXPathIsNaN@LIBXML2_2.4.30'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xmlDictLookup@LIBXML2_2.6.0' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxmlDictReference@LIBXML2_2.6.0'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xmlSetGenericErrorFunc@LIBXML2_2.4.30' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxsltSetSecurityPrefs@LIBXML2_1.0.22'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xmlStopParser@LIBXML2_2.4.30' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxsltSetCtxtSecurityPrefs@LIBXML2_1.0.22'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xmlCtxtReadMemory@LIBXML2_2.6.0' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxmlSAX2EndDocument@LIBXML2_2.6.0'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xsltParseStylesheetDoc@LIBXML2_1.0.11' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxsltRegisterExtFunction@LIBXML2_1.0.11'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xmlSAX2StartDocument@LIBXML2_2.6.0' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxmlStrndup@LIBXML2_2.4.30'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xmlXPathNewValueTree@LIBXML2_2.4.30' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxsltSaveResultTo@LIBXML2_1.0.11'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xmlXPathPopString@LIBXML2_2.4.30' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxmlStrdup@LIBXML2_2.4.30'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xsltQuoteUserParams@LIBXML2_1.0.11' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxmlRegisterInputCallbacks@LIBXML2_2.4.30'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xsltFreeStylesheet@LIBXML2_1.0.11' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxsltFunctionNodeSet@LIBXML2_1.0.11'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xsltComputeSortResult@LIBXML2_1.0.24' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxsltFreeSecurityPrefs@LIBXML2_1.0.22'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xmlDictFree@LIBXML2_2.6.0' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxmlNodeGetBase@LIBXML2_2.4.30'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xmlXPathFreeObject@LIBXML2_2.4.30' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxmlXPatherror@LIBXML2_2.4.30'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xmlBuildURI@LIBXML2_2.4.30' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxmlMalloc@LIBXML2_2.4.30'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xsltEvalAttrValueTemplate@LIBXML2_1.0.11' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxsltNextImport@LIBXML2_1.0.11'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to valuePush@LIBXML2_2.4.30' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxsltGetNsProp@LIBXML2_1.0.11'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xmlNewDocText@LIBXML2_2.4.30' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxmlSetStructuredErrorFunc@LIBXML2_2.6.0'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xmlByteConsumed@LIBXML2_2.6.6' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxsltTransformError@LIBXML2_1.0.22'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xmlCreatePushParserCtxt@LIBXML2_2.4.30' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxmlHashCreate@LIBXML2_2.4.30'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xmlSAX2InternalSubset@LIBXML2_2.6.0' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxmlSAX2EntityDecl@LIBXML2_2.6.0'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xsltNewTransformContext@LIBXML2_1.0.11' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxmlGetID@LIBXML2_2.4.30'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xmlParseChunk@LIBXML2_2.4.30' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxsltNewSecurityPrefs@LIBXML2_1.0.22'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xmlSwitchEncoding@LIBXML2_2.4.30' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxmlCtxtGetLastError@LIBXML2_2.6.0'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xmlGetDocEntity@LIBXML2_2.4.30' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxmlStrEqual@LIBXML2_2.4.30'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xmlFree@LIBXML2_2.4.30' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxsltSetLoaderFunc@LIBXML2_1.1.9'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xsltFreeTransformContext@LIBXML2_1.0.11' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxmlAllocOutputBuffer@LIBXML2_2.4.30'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xmlFreeDoc@LIBXML2_2.4.30' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxmlOutputBufferClose@LIBXML2_2.4.30'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xmlInitParser@LIBXML2_2.4.30' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxmlFreeParserCtxt@LIBXML2_2.4.30'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xsltApplyStylesheetUser@LIBXML2_1.0.11' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxmlReadMemory@LIBXML2_2.6.0'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xsltSecurityForbid@LIBXML2_1.0.22' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxmlParseContent@LIBXML2_2.4.30'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to xmlGetPredefinedEntity@LIBXML2_2.4.30' /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference toxmlCtxtUseOptions@LIBXML2_2.6.0'
    /home/Source_Code/SYSROM_SRC/lib/libQt5WebKit.so: undefined reference to `xmlCreateMemoryParserCtxt@LIBXML2_2.4.30'
    collect2: ld returned 1 exit status

    I have checked the libQt5WebKit.so using ldd command and all libraries are linked perfectly. Kindly tel me what extra needs to be done.