You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Vasamsetty, Vidyasagar" <vi...@bankofamerica.com> on 2013/01/14 20:52:33 UTC

XERCES C Distribution for HP-UX PA-RISC system.



Hi Dev help,

We are considering apache xerces libraries for our project. I see that there is  a 2.8.0 binary distribution for our platform. I am looking for 3.1.1 distribution for our platform and could not find any.
So we downloaded the source distribution "xerces-c-3.1.1.tar.gz" and compiled in the HPUX system (HP-UX <HOSTNAME> B.11.11 U 9000/800 4048376163 unlimited-user license)

Compilation did not proceed further and I had to comment out few lines pertaining to libtool in the makefile of tests and samples directories(Make file diffs given below).
Finally was able to get the libs and bins built with few warnings (listed below). Also verified DOMPrint and DOMCount executatbles. Executed them and verified them working fine.

Please find the attached Make_output.txt file with Make output for your reference.

My Questions:
1>Can we proceed with these warnings and use the libraries built? Or should we wait until we get right distribution for our platform?
2> Do you have any plans for a  distribution to HP-UX PA-RISC platform? If so can you please share with us.
3> As far as these warning are concerned what functionality is going to get effected and what functionality is safe to use?
4> If for the time being , we stick to 2.8.0 and later once 3.1.1 distribution available for our Platform, how big is the process/changes to the cade based on 2.8.0 to switch from 2.8.0 to 3.1.1.



Here is the platform spec that I was using. Its PA-RISC HP UX system.
uname-a Response.
HP-UX <HOSTNAME> B.11.11 U 9000/800 4048376163 unlimited-user license


Can you please shed some light and let us know of our options.
Your response is greatly appreciated.


Thanks
Vidyasagar


Supporting Information:

Warning faced when compiling:
Warning 361: "xercesc/dom/impl/DOMXPathResultImpl.cpp", line 45 # Value-returning function might end without executing a retu
rn statement.
    const DOMTypeInfo* DOMXPathResultImpl::getTypeInfo() const
                                           ^^^^^^^^^^^
Warning 361: "xercesc/dom/impl/DOMXPathResultImpl.cpp", line 50 # Value-returning function might end without executing a retu
rn statement.
    bool DOMXPathResultImpl::isNode() const
                             ^^^^^^
Warning 361: "xercesc/dom/impl/DOMXPathResultImpl.cpp", line 55 # Value-returning function might end without executing a retu
rn statement.
    bool DOMXPathResultImpl::getBooleanValue() const
                             ^^^^^^^^^^^^^^^
Warning 361: "xercesc/dom/impl/DOMXPathResultImpl.cpp", line 60 # Value-returning function might end without executing a retu
rn statement.
    int DOMXPathResultImpl::getIntegerValue() const
                            ^^^^^^^^^^^^^^^
Warning 361: "xercesc/dom/impl/DOMXPathResultImpl.cpp", line 65 # Value-returning function might end without executing a retu
rn statement.
    double DOMXPathResultImpl::getNumberValue() const
                               ^^^^^^^^^^^^^^
Warning 361: "xercesc/dom/impl/DOMXPathResultImpl.cpp", line 70 # Value-returning function might end without executing a retu
rn statement.
    const XMLCh* DOMXPathResultImpl::getStringValue() const
                                     ^^^^^^^^^^^^^^
Warning 361: "xercesc/dom/impl/DOMXPathResultImpl.cpp", line 89 # Value-returning function might end without executing a return statement.
    bool DOMXPathResultImpl::iterateNext()
                             ^^^^^^^^^^^
Warning 361: "xercesc/dom/impl/DOMXPathResultImpl.cpp", line 94 # Value-returning function might end without executing a return statement.
    bool DOMXPathResultImpl::getInvalidIteratorState() const
                             ^^^^^^^^^^^^^^^^^^^^^^^


Compiling xercesc/framework/psvi/XSMultiValueFacet.cpp
Compiling xercesc/framework/psvi/XSNamespaceItem.cpp
Warning 749: "xercesc/framework/psvi/XSNamespaceItem.cpp", line 171 # The cast from 'xercesc_3_1::XSObject *' to 'xercesc_3_1::XSElementDeclaration *' is performed as a 'reinterpret_cast'. This operation is non-portable and potentially unsafe.
            return (XSElementDeclaration*) fHashMap[XSConstants::ELEMENT_DECLARATIO
                   ^^^^^^^^^^^^^^^^^^^^^^^
Warning 740: "xercesc/framework/psvi/XSNamespaceItem.cpp", line 171 # Unsafe cast between pointers/references to incomplete classes: casting 'xercesc_3_1::XSObject *' to 'xercesc_3_1::XSElementDeclaration *'.
            return (XSElementDeclaration*) fHashMap[XSConstants::ELEMENT_DECLARATION -1]->get(name);
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning 749: "xercesc/framework/psvi/XSNamespaceItem.cpp", line 178 # The cast from 'xercesc_3_1::XSObject *' to 'xercesc_3_1::XSAttributeDeclaration *' is performed as a 'reinterpret_cast'. This operation is non-portable and potentially unsafe.
            return (XSAttributeDeclaration*) fHashMap[XSConstants::ATTRIBUTE_DECLAR
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
Warning 740: "xercesc/framework/psvi/XSNamespaceItem.cpp", line 178 # Unsafe cast between pointers/references to incomplete classes: casting 'xercesc_3_1::XSObject *' to 'xercesc_3_1::XSAttributeDeclaration *'.
            return (XSAttributeDeclaration*) fHashMap[XSConstants::ATTRIBUTE_DECLARATION -1]->get(name);
                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning 749: "xercesc/framework/psvi/XSNamespaceItem.cpp", line 192 # The cast from 'xercesc_3_1::XSObject *' to 'xercesc_3_1::XSAttributeGroupDefinition *' is performed as a 'reinterpret_cast'. This operation is non-portable and potentially unsafe.
            return (XSAttributeGroupDefinition*) fHashMap[XSConstants::ATTRIBUTE_GR
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning 740: "xercesc/framework/psvi/XSNamespaceItem.cpp", line 192 # Unsafe cast between pointers/references to incomplete classes: casting 'xercesc_3_1::XSObject *' to 'xercesc_3_1::XSAttributeGroupDefinition *'.
            return (XSAttributeGroupDefinition*) fHashMap[XSConstants::ATTRIBUTE_GROUP_DEFINITION -1]->get(name);
                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning 749: "xercesc/framework/psvi/XSNamespaceItem.cpp", line 199 # The cast from 'xercesc_3_1::XSObject *' to 'xercesc_3_1::XSModelGroupDefinition *' is performed as a 'reinterpret_cast'. This operation is non-portable and potentially unsafe.
            return (XSModelGroupDefinition*) fHashMap[XSConstants::MODEL_GROUP_DEFI
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
Warning 740: "xercesc/framework/psvi/XSNamespaceItem.cpp", line 199 # Unsafe cast between pointers/references to incomplete classes: casting 'xercesc_3_1::XSObject *' to 'xercesc_3_1::XSModelGroupDefinition *'.
            return (XSModelGroupDefinition*) fHashMap[XSConstants::MODEL_GROUP_DEFINITION -1]->get(name);
                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning 749: "xercesc/framework/psvi/XSNamespaceItem.cpp", line 206 # The cast from 'xercesc_3_1::XSObject *' to 'xercesc_3_1::XSNotationDeclaration *' is performed as a 'reinterpret_cast'. This operation is non-portable and potentially unsafe.
            return (XSNotationDeclaration*) fHashMap[XSConstants::NOTATION_DECLARAT
                   ^^^^^^^^^^^^^^^^^^^^^^^^
Warning 740: "xercesc/framework/psvi/XSNamespaceItem.cpp", line 206 # Unsafe cast between pointers/references to incomplete classes: casting 'xercesc_3_1::XSObject *' to 'xercesc_3_1::XSNotationDeclaration *'.
            return (XSNotationDeclaration*) fHashMap[XSConstants::NOTATION_DECLARATION -1]->get(name);
                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Compiling xercesc/framework/psvi/XSNotationDeclaration.cpp



Compiling xercesc/framework/XMLValidator.cpp
Compiling xercesc/internal/DGXMLScanner.cpp
Compiling xercesc/internal/ElemStack.cpp
                    , (elemDecl->isDeclared()) ? (XSElementDeclaration*) fModel->getXSObject(elemDecl) : 0
               , (elemDecl->isDeclared()) ? (XSElementDeclaration*) fModel->getXSObject(elemDecl) : 0
                ? (XSElementDeclaration*) fModel->getXSObject(elemDecl) : 0
                ? (XSElementDeclaration*) fModel->getXSObject(elemDecl) : 0
                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Compiling xercesc/internal/IGXMLScanner2.cpp
                        XSAttributeDeclaration *attrDecl = (XSAttributeDeclaration *)fModel->getXSObject(actualAttDef);
                                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^
       XSAttributeDeclaration *attrDecl = (XSAttributeDeclaration *)fModel->getXSObject(actualAttDef);
                                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    XSAttributeDeclaration *defAttrDecl = (XSAttributeDeclaration *)fModel->getXSObject((void *)curDef);
                                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Compiling xercesc/internal/MemoryManagerImpl.cpp
Compiling xercesc/internal/ReaderMgr.cpp
Compiling xercesc/internal/SGXMLScanner.cpp
Warning 749: "xercesc/internal/SGXMLScanner.cpp", line 1804 # The cast from 'xercesc_3_1::XSObject *' to 'xercesc_3_1::XSElementDeclaration *' is performed as a 'reinterpret_cast'. This operation is non-portable and potentially unsafe.
                    , (elemDecl->isDeclared()) ? (XSElementDeclaration*) fModel->getXSObject(elemDecl) : 0
                                                 ^^^^^^^^^^^^^^^^^^^^^^^
Warning 740: "xercesc/internal/SGXMLScanner.cpp", line 1804 # Unsafe cast between pointers/references to incomplete classes: casting 'xercesc_3_1::XSObject *' to 'xercesc_3_1::XSElementDeclaration *'.
               , (elemDecl->isDeclared()) ? (XSElementDeclaration*) fModel->getXSObject(elemDecl) : 0
                                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning 749: "xercesc/internal/SGXMLScanner.cpp", line 2582 # The cast from 'xercesc_3_1::XSObject *' to 'xercesc_3_1::XSAttributeDeclaration *' is performed as a 'reinterpret_cast'. This operation is non-portable and potentially unsafe.
                            XSAttributeDeclaration *attrDecl = (XSAttributeDeclaration *)fModel->getXSObject(actualAttDef);
                                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning 740: "xercesc/internal/SGXMLScanner.cpp", line 2582 # Unsafe cast between pointers/references to incomplete classes: casting 'xercesc_3_1::XSObject *' to 'xercesc_3_1::XSAttributeDeclaration *'.
       XSAttributeDeclaration *attrDecl = (XSAttributeDeclaration *)fModel->getXSObject(actualAttDef);
                                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning 749: "xercesc/internal/SGXMLScanner.cpp", line 2766 # The cast from 'xercesc_3_1::XSObject *' to 'xercesc_3_1::XSAttributeDeclaration *' is performed as a 'reinterpret_cast'. This operation is non-portable and potentially unsafe.                            XSAttributeDeclaration *defAttrDecl = (XSAttributeDeclaration *)fModel->getXSObject((void *)curDef);
                                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^                                  Warning 740: "xercesc/internal/SGXMLScanner.cpp", line 2766 # Unsafe cast between pointers/references to incomplete classes: casting 'xercesc_3_1::XSObject *' to 'xercesc_3_1::XSAttributeDeclaration *'.
    XSAttributeDeclaration *defAttrDecl = (XSAttributeDeclaration *)fModel->getXSObject((void *)curDef);
                                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning 749: "xercesc/internal/SGXMLScanner.cpp", line 4899 # The cast from 'xercesc_3_1::XSObject *' to 'xercesc_3_1::XSElementDeclaration *' is performed as a 'reinterpret_cast'. This operation is non-portable and potentially unsafe.
                ? (XSElementDeclaration*) fModel->getXSObject(elemDecl) : 0
                  ^^^^^^^^^^^^^^^^^^^^^^^
Warning 740: "xercesc/internal/SGXMLScanner.cpp", line 4899 # Unsafe cast between pointers/references to incomplete classes: casting 'xercesc_3_1::XSObject *' to 'xercesc_3_1::XSElementDeclaration *'.
                ? (XSElementDeclaration*) fModel->getXSObject(elemDecl) : 0
                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Compiling xercesc/internal/ValidationContextImpl.cpp
Compiling xercesc/internal/VecAttributesImpl.cpp
Compiling xercesc/internal/VecAttrListImpl.cpp


Compiling xercesc/parsers/DOMLSParserImpl.cpp
Warning 749: "xercesc/parsers/DOMLSParserImpl.cpp", line 1361 # The cast from 'xercesc_3_1::DOMNode *' to 'xercesc_3_1::DOMElement *' is performed as a 'reinterpret_cast'. This operation is non-portable and potentially unsafe.
     DOMLSParserFilter::FilterAction action = fFilter->startElement((DOMElement*)fCurrentNode);
                                                                    ^^^^^^^^^^^^^
Warning 740: "xercesc/parsers/DOMLSParserImpl.cpp", line 1361 # Unsafe cast between pointers/references to incomplete classes: casting 'xercesc_3_1::DOMNode *' to 'xercesc_3_1::DOMElement *'.
    ilter::FilterAction action = fFilter->startElement((DOMElement*)fCurrentNode);
                                                                    ^^^^^^^^^^^^
Compiling xercesc/parsers/SAX2XMLFilterImpl.cpp


Compiling xercesc/util/NetAccessors/Socket/UnixHTTPURLInputStream.cpp
Warning 749: "xercesc/util/NetAccessors/Socket/UnixHTTPURLInputStream.cpp", line 196 # The cast from 'sockaddr_in *' to 'sockaddr *' is performed as a 'reinterpret_cast'. This operation is non-portable and potentially unsafe.
            if(connect(fSocket, (struct sockaddr *) &sa, sizeof(sa)) < 0)
                                ^^^^^^^^^^^^^^^^^^^
Compiling xercesc/util/NetAccessors/BinHTTPInputStreamCommon.cpp
Compiling xercesc/util/Transcoders/Iconv/IconvTransService.cpp



./tests/Makefile
./samples/Makefile
./src/xercesc/util/MsgLoaders/MsgCatalog/Makefile
./src/Makefile
./Makefile





Changes in xerces-c-3.1.1/ Makefile
< #MODIFIED
< #prefix = /usr/local
< prefix = /dhome1/z/home/XERCES
---
> prefix = /usr/local

Changes in xerces-c-3.1.1/src/Makefile
1397,1399c1397
< #MODIFIED
< #prefix = /usr/local
< prefix = /dhome1/z/home/XERCES
---
> prefix = /usr/local


Changes in xerces-c-3.1.1/tests /Makefile
username@hostname] diff Makefile Makefile.old
320,321c320
< #prefix = /usr/local
< prefix = /dhome1/z/home/XERCES
---
> prefix = /usr/local
691,693c690,692
< #     source='$<' object='$@' libtool=no \
< #     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
< #     $(CXXCOMPILE) -c -o $@ $<
---
>       source='$<' object='$@' libtool=no \
>       DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
>       $(CXXCOMPILE) -c -o $@ $<
699,701c698,700
< #     source='$<' object='$@' libtool=no \
< #     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
< #     $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
---
>       source='$<' object='$@' libtool=no \
>       DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
>       $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
707,709c706,708
< #     source='$<' object='$@' libtool=yes \
< #     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
< #     $(LTCXXCOMPILE) -c -o $@ $<
---
>       source='$<' object='$@' libtool=yes \
>       DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
>       $(LTCXXCOMPILE) -c -o $@ $<




Changes in xerces-c-3.1.1/samples
[username@hostname] diff Makefile Makefile.old
336,337c336
< #prefix = /usr/local
< prefix = /dhome1/z/home/XERCES
---
> prefix = /usr/local
794,796c793,795
< #     source='$<' object='$@' libtool=no \
< #     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
< #     $(CXXCOMPILE) -c -o $@ $<
---
>       source='$<' object='$@' libtool=no \
>       DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
>       $(CXXCOMPILE) -c -o $@ $<
802,804c801,803
< #     source='$<' object='$@' libtool=no \
< #     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
< #     $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
---
>       source='$<' object='$@' libtool=no \
>       DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
>       $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
810,812c809,811
< #     source='$<' object='$@' libtool=yes \
< #     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
< #     $(LTCXXCOMPILE) -c -o $@ $<
---
>       source='$<' object='$@' libtool=yes \
>       DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
>       $(LTCXXCOMPILE) -c -o $@ $<
822d820
<       echo "CHECK HERE" ;


----------------------------------------------------------------------
This message, and any attachments, is for the intended recipient(s) only, may contain information that is privileged, confidential and/or proprietary and subject to important terms and conditions available at http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended recipient, please delete this message.