Closed doutriaux1 closed 10 years ago
Note that on another IPSL RH5 server, even if I use a more recent gcc compiler (4.4) than the default one (4.1), and I try to install the system libxml2 with
-D CDAT_BUILD_LIBXML2=OFF -D CDAT_USE_SYSTEM_LIBXML2=ON -D CDAT_BUILD_LIBXSLT=OFF -D CDAT_USE_SYSTEM_LIBXSLT=ON
I still fail to build the xml2 python wrapper (errors below)
So it seems that the python wrapper you try to install (libxml2-2.7.8.tar.gz) is NOT backward compatible with the older librairies installed on RH5. The only way to install on RH5 is either to be able to install libxml2 (works) and actually use the newly installed libxml2 for the python wrapper (does not work), or install an older version of the python wrapper...
[jypmce@ciclad1 ~]$ rpm -qa | grep -E '^lib(xml2|xslt)'
libxml2-devel-2.6.26-2.1.15.el5_8.6
libxml2-2.6.26-2.1.2.7
libxml2-python-2.6.26-2.1.2.7
libxslt-1.1.17-2.el5_2.2
libxslt-1.1.17-2.el5_2.2
libxml2-2.6.26-2.1.2.7
libxml2-devel-2.6.26-2.1.15.el5_8.6
Compilation errors:
libxml2-py.c: In function 'libxml_xmlURIGetQueryRaw':
libxml2-py.c:11743: error: 'xmlURI' has no member named 'query_raw'
libxml2-py.c: In function 'libxml_xmlURISetQueryRaw':
libxml2-py.c:11901: error: 'xmlURI' has no member named 'query_raw'
libxml2-py.c:11901: error: 'xmlURI' has no member named 'query_raw'
libxml2-py.c:11902: error: 'xmlURI' has no member named 'query_raw'
error: command 'gcc44' failed with exit status 1
libxml2-python bindings Errors detected:
Found 1605 functions in libxml2-api.xml
Found 55 functions in libxml2-python-api.xml
Generated 886 wrapper functions, 558 failed, 216 skipped
Missing type converters:
xmlRelaxNGValidityErrorFunc *:2 xmlXPathObjectPtr:22 const htmlEntityDesc
*:2 xmlOutputMatchCallback:1 xmlElementContentPtr *:1
xmlStructuredErrorFunc:5 xmlSchematronValidCtxtPtr:3
xmlParserInputBufferCreateFilenameFunc:2 xmlSchemaValType:2 size_t:1
xmlSchemaSAXPlugPtr:1 xmlSchemaWildcardPtr:1 xmlXIncludeCtxtPtr:4
xmlRelaxNGValidityErrorFunc:2 xmlSAXHandler *:4 ...:1
xmlShellReadlineFunc:1 xmlDict *:1 xmlAutomataPtr:19 unsigned long:1
xmlParserInputPtr:17 xmlCatalogAllow:2 xmlExpNodePtr:3 xmlElementContent
*:1 xmlCharEncodingOutputFunc:1 xmlDictPtr:10 xmlTextWriterPtr:77 const
htmlElemDesc *:1 xmlChRangeGroup *:1 xmlIDPtr:1 xmlXPathFuncLookupFunc:1
xmlInputMatchCallback:1 xmlElementTablePtr:2 xmlChar **:16
xmlXPathCompExprPtr:6 xmlTextReaderErrorFunc:1 xmlExternalEntityLoader:2
xmlNotationTablePtr:2 xmlXPathVariableLookupFunc:1 xmlParserNodeInfoPtr:1
xmlExpCtxtPtr:14 xmlPatternPtr:8 xmlC14NIsVisibleCallback:1
xmlDeregisterNodeFunc:2 va_list:1 xmlSchemaTypePtr:9 htmlStatus:1
xmlRegisterNodeFunc:2 xmlAttributeType:2 xmlRefPtr:1 xmlCharEncodingHandler
*:4 xmlNotationPtr:3 xmlSaveCtxtPtr:8 xmlRegExecCallbacks:1 xmlNsPtr *:1
xmlLocationSetPtr:6 xmlEnumerationPtr:5 xmlModulePtr:4 xmlEnumerationPtr
*:2 xmlShellCtxtPtr:10 xlinkNodeDetectFunc:2 xmlRefTablePtr:1
xmlStreamCtxtPtr:6 xmlSchemaValidityErrorFunc *:2 xmlAttributeTablePtr:2
xmlSchematronParserCtxtPtr:5 xmlCatalogPrefer:1 xmlParserNodeInfoSeqPtr:3
xmlSchematronPtr:2 xmlNodePtr *:2 xmlInputReadCallback:7 char **:5
xmlCharEncoding:13 xmlRegExecCtxtPtr:5 xmlElementContentType:2 void *:87
xmlTextReaderErrorFunc *:1 xmlSAXHandlerPtr *:1 xmlEntityReferenceFunc:1
xmlDocPtr *:1 xmlBufferAllocationScheme:3 xmlSchemaValidityErrorFunc:2
xmlDOMWrapCtxtPtr:6 xmlOutputWriteCallback:2 xmlSchemaFacetPtr:7
xlinkHandlerPtr:2 xmlSchemaValPtr:13 htmlElemDesc *:3
xmlCharEncodingHandlerPtr:7 xmlCharEncodingInputFunc:1 xmlFeature:1 const
xmlParserNodeInfo *:1 xmlNodeSetPtr:32 xmlEntitiesTablePtr:3
xmlIDTablePtr:1 xmlXPathFunction:4 xmlOutputBufferCreateFilenameFunc:2
xmlElementContentPtr:8 xmlElementTypeVal:1 xlinkType:1 xmlGenericErrorFunc
*:1
yes this is fixed in the special branch @aashish24 please approve and merge in master (branch 445)
:+1:
Need to use the same directory and MOST importantly actually rerun configure to pick our own libxml2 and libxslt.