Xerces-C++
  1. Xerces-C++
  2. XERCESC-1235

Xerces-C++ does not build with gcc 3.4.0

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.0
    • Fix Version/s: None
    • Component/s: Build
    • Labels:
      None
    • Environment:
      Gcc 3.4.0
      Slackware GNU/Linux 10.0

      Description

      When trying to build xerces-c with gcc 3.4.0 I get error :

      make -C impl
      make[2]: Entering directory `/home/cartman/WS/xerces-c-src_2_5_0/src/xercesc/dom/impl'
      mkdir -p /home/cartman/WS/xerces-c-src_2_5_0/include/xercesc/dom/impl
      cp -fp DOMDeepNodeListPool.c /home/cartman/WS/xerces-c-src_2_5_0/include/xercesc/dom/impl
      g++ -fPIC -DLINUX -D_REENTRANT -c -I/home/cartman/WS/xerces-c-src_2_5_0/include -g -O2 -o /home/cartman/WS/xerces-c-src_2_5_0/obj/LINUX/DOMAttrImpl.o DOMAttrImpl.cpp
      In file included from /home/cartman/WS/xerces-c-src_2_5_0/include/xercesc/util/RefArrayOf.hpp:221,
      from DOMDocumentImpl.hpp:73,
      from DOMAttrImpl.hpp:77,
      from DOMAttrImpl.cpp:64:
      /home/cartman/WS/xerces-c-src_2_5_0/include/xercesc/util/RefArrayOf.c: In constructor `xercesc_2_5::RefArrayOf<TElem>::RefArrayOf(unsigned int, xercesc_2_5::MemoryManager*)':
      /home/cartman/WS/xerces-c-src_2_5_0/include/xercesc/util/RefArrayOf.c:111: error: invalid use of undefined type `struct xercesc_2_5::MemoryManager'
      /home/cartman/WS/xerces-c-src_2_5_0/include/xercesc/util/XMemory.hpp:70: error: forward declaration of `struct xercesc_2_5::MemoryManager'
      /home/cartman/WS/xerces-c-src_2_5_0/include/xercesc/util/RefArrayOf.c: In constructor `xercesc_2_5::RefArrayOf<TElem>::RefArrayOf(TElem*, unsigned int, xercesc_2_5::MemoryManager)':
      /home/cartman/WS/xerces-c-src_2_5_0/include/xercesc/util/RefArrayOf.c:125: error: invalid use of undefined type `struct xercesc_2_5::MemoryManager'
      /home/cartman/WS/xerces-c-src_2_5_0/include/xercesc/util/XMemory.hpp:70: error: forward declaration of `struct xercesc_2_5::MemoryManager'
      /home/cartman/WS/xerces-c-src_2_5_0/include/xercesc/util/RefArrayOf.c: In copy constructor `xercesc_2_5::RefArrayOf<TElem>::RefArrayOf(const xercesc_2_5::RefArrayOf<TElem>&)':
      /home/cartman/WS/xerces-c-src_2_5_0/include/xercesc/util/RefArrayOf.c:137: error: invalid use of undefined type `struct xercesc_2_5::MemoryManager'
      /home/cartman/WS/xerces-c-src_2_5_0/include/xercesc/util/XMemory.hpp:70: error: forward declaration of `struct xercesc_2_5::MemoryManager'
      /home/cartman/WS/xerces-c-src_2_5_0/include/xercesc/util/RefArrayOf.c: In destructor `xercesc_2_5::RefArrayOf<TElem>::~RefArrayOf()':
      /home/cartman/WS/xerces-c-src_2_5_0/include/xercesc/util/RefArrayOf.c:144: error: invalid use of undefined type `struct xercesc_2_5::MemoryManager'
      /home/cartman/WS/xerces-c-src_2_5_0/include/xercesc/util/XMemory.hpp:70: error: forward declaration of `struct xercesc_2_5::MemoryManager'
      /home/cartman/WS/xerces-c-src_2_5_0/include/xercesc/util/RefArrayOf.c: In member function `xercesc_2_5::RefArrayOf<TElem>& xercesc_2_5::RefArrayOf<TElem>::operator=(const xercesc_2_5::RefArrayOf<TElem>&)':
      /home/cartman/WS/xerces-c-src_2_5_0/include/xercesc/util/RefArrayOf.c:176: error: invalid use of undefined type `struct xercesc_2_5::MemoryManager'
      /home/cartman/WS/xerces-c-src_2_5_0/include/xercesc/util/XMemory.hpp:70: error: forward declaration of `struct xercesc_2_5::MemoryManager'
      /home/cartman/WS/xerces-c-src_2_5_0/include/xercesc/util/RefArrayOf.c:178: error: invalid use of undefined type `struct xercesc_2_5::MemoryManager'
      /home/cartman/WS/xerces-c-src_2_5_0/include/xercesc/util/XMemory.hpp:70: error: forward declaration of `struct xercesc_2_5::MemoryManager'
      /home/cartman/WS/xerces-c-src_2_5_0/include/xercesc/util/RefArrayOf.c: In member function `void xercesc_2_5::RefArrayOf<TElem>::resize(unsigned int)':
      /home/cartman/WS/xerces-c-src_2_5_0/include/xercesc/util/RefArrayOf.c:276: error: invalid use of undefined type `struct xercesc_2_5::MemoryManager'
      /home/cartman/WS/xerces-c-src_2_5_0/include/xercesc/util/XMemory.hpp:70: error: forward declaration of `struct xercesc_2_5::MemoryManager'
      /home/cartman/WS/xerces-c-src_2_5_0/include/xercesc/util/RefArrayOf.c:290: error: invalid use of undefined type `struct xercesc_2_5::MemoryManager'
      /home/cartman/WS/xerces-c-src_2_5_0/include/xercesc/util/XMemory.hpp:70: error: forward declaration of `struct xercesc_2_5::MemoryManager'
      In file included from DOMAttrImpl.cpp:67:
      DOMCasts.hpp: In function `xercesc_2_5::DOMNode* xercesc_2_5::castToNode(const xercesc_2_5::DOMParentNode*)':
      DOMCasts.hpp:148: warning: invalid access to non-static data member `xercesc_2_5::DOMElementImpl::fParent' of NULL object
      DOMCasts.hpp:148: warning: (perhaps the `offsetof' macro was used incorrectly)
      DOMCasts.hpp: In function `xercesc_2_5::DOMNode* xercesc_2_5::castToNode(const xercesc_2_5::DOMNodeImpl*)':
      DOMCasts.hpp:154: warning: invalid access to non-static data member `xercesc_2_5::DOMElementImpl::fNode' of NULL object
      DOMCasts.hpp:154: warning: (perhaps the `offsetof' macro was used incorrectly)
      DOMCasts.hpp: In function `xercesc_2_5::DOMNodeImpl* xercesc_2_5::castToNodeImpl(const xercesc_2_5::DOMParentNode*)':
      DOMCasts.hpp:162: warning: invalid access to non-static data member `xercesc_2_5::DOMElementImpl::fNode' of NULL object
      DOMCasts.hpp:162: warning: (perhaps the `offsetof' macro was used incorrectly)
      DOMCasts.hpp:163: warning: invalid access to non-static data member `xercesc_2_5::DOMElementImpl::fParent' of NULL object
      DOMCasts.hpp:163: warning: (perhaps the `offsetof' macro was used incorrectly)
      make[2]: *** [DOMAttrImpl.o] Error 1
      make[2]: Leaving directory `/home/cartman/WS/xerces-c-src_2_5_0/src/xercesc/dom/impl'
      make[1]: *** [impl] Error 2
      make[1]: Leaving directory `/home/cartman/WS/xerces-c-src_2_5_0/src/xercesc/dom'
      make: *** [Dom] Error 2
      cartman@southpark:~/WS/xerces-c-src_2_5_0/src/xercesc$

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            ismail dönmez
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development