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 rui <gu...@gmail.com> on 2009/05/13 13:46:50 UTC

erces 2_5_0 build failed using g++ - struct xercesc_2_5::XMLStringPool' problem

Hi,

I am trying to build xerces 2.5.0 using g++ version 4.2.3. I have added this
to my makefile.incl
http://marc.info/?l=xerces-c-dev&m=113163501028049&w=2

Here are my commands afterwards,
# export XERCESCROOT=/data1/rui/xerces-c-src_2_5_0
and then I execute these commands sitting in the $XERCESCROOT/src/xercesc
directory

# runConfigure -php-11 -cgcc -xg++ -z"-fPIC" -minmem -nsocket -tnative
-rpthread
# gmake

it compiles for a long time with most of the directories built, but
ultimately gives this error, can anybody point me to what could be the
problem -- any sort of code modification related to xerces code can be done
as I just want to compile and get the lib ready.

mkdir -p /data1/rui/xerces-c-src_2_5_0/include/xercesc/framework/psvi
cp -fp PSVIAttribute.hpp PSVIAttributeList.hpp PSVIElement.hpp
PSVIHandler.hpp PSVIItem.hpp XSAnnotation.hpp XSAttributeDeclaration.hpp
XSAttributeGroupDefinition.hpp XSAttributeUse.hpp
XSComplexTypeDefinition.hpp XSConstants.hpp XSElementDeclaration.hpp
XSFacet.hpp XSIDCDefinition.hpp XSModel.hpp XSModelGroup.hpp
XSModelGroupDefinition.hpp XSMultiValueFacet.hpp XSNamedMap.hpp
XSNamespaceItem.hpp XSNotationDeclaration.hpp XSObject.hpp XSParticle.hpp
XSSimpleTypeDefinition.hpp XSTypeDefinition.hpp XSWildcard.hpp  XSNamedMap.c
/data1/rui/xerces-c-src_2_5_0/include/xercesc/framework/psvi
g++ -fPIC -D_HP_UX -DXERCES_TMPLSINC -DHPUX11 -D_REENTRANT -c
-I/data1/rui/xerces-c-src_2_5_0/include -w -O -DPROJ_XMLPARSER
 -DPROJ_XMLUTIL  -DPROJ_PARSERS  -DPROJ_SAX4C  -DPROJ_SAX2  -DPROJ_DOM
 -DPROJ_VALIDATORS -DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER
-DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET     -o
/data1/rui/xerces-c-src_2_5_0/obj/HPUX/XSAttributeGroupDefinition.o
XSAttributeGroupDefinition.cpp

XSAttributeGroupDefinition.cpp: In member function 'virtual const XMLCh*
xercesc_2_5::XSAttributeGroupDefinition::getName()':
XSAttributeGroupDefinition.cpp:122: error: invalid use of incomplete type
'struct xercesc_2_5::XMLStringPool'
/data1/rui/xerces-c-src_2_5_0/include/xercesc/framework/psvi/XSNamedMap.hpp:80:
error: forward declaration of 'struct xercesc_2_5::XMLStringPool'
XSAttributeGroupDefinition.cpp: In member function 'virtual const XMLCh*
xercesc_2_5::XSAttributeGroupDefinition::getNamespace()':
XSAttributeGroupDefinition.cpp:127: error: invalid use of incomplete type
'struct xercesc_2_5::XMLStringPool'
/data1/rui/xerces-c-src_2_5_0/include/xercesc/framework/psvi/XSNamedMap.hpp:80:
error: forward declaration of 'struct xercesc_2_5::XMLStringPool'
gmake[2]: *** [XSAttributeGroupDefinition.o] Error 1
gmake[2]: Leaving directory
`/data1/rui/xerces-c-src_2_5_0/src/xercesc/framework/psvi'
gmake[1]: *** [psvi] Error 2
gmake[1]: Leaving directory
`/data1/rui/xerces-c-src_2_5_0/src/xercesc/framework'

Regards,
rui

Re: erces 2_5_0 build failed using g++ - struct xercesc_2_5::XMLStringPool' problem

Posted by David Bertoni <db...@apache.org>.
rui wrote:
> Hi,
> 
> I am trying to build xerces 2.5.0 using g++ version 4.2.3. I have added this
> to my makefile.incl
> http://marc.info/?l=xerces-c-dev&m=113163501028049&w=2
> 
> Here are my commands afterwards,
> # export XERCESCROOT=/data1/rui/xerces-c-src_2_5_0
> and then I execute these commands sitting in the $XERCESCROOT/src/xercesc
> directory
> 
> # runConfigure -php-11 -cgcc -xg++ -z"-fPIC" -minmem -nsocket -tnative
> -rpthread
> # gmake
> 
> it compiles for a long time with most of the directories built, but
> ultimately gives this error, can anybody point me to what could be the
> problem -- any sort of code modification related to xerces code can be done
> as I just want to compile and get the lib ready.
> 
> mkdir -p /data1/rui/xerces-c-src_2_5_0/include/xercesc/framework/psvi
> cp -fp PSVIAttribute.hpp PSVIAttributeList.hpp PSVIElement.hpp
> PSVIHandler.hpp PSVIItem.hpp XSAnnotation.hpp XSAttributeDeclaration.hpp
> XSAttributeGroupDefinition.hpp XSAttributeUse.hpp
> XSComplexTypeDefinition.hpp XSConstants.hpp XSElementDeclaration.hpp
> XSFacet.hpp XSIDCDefinition.hpp XSModel.hpp XSModelGroup.hpp
> XSModelGroupDefinition.hpp XSMultiValueFacet.hpp XSNamedMap.hpp
> XSNamespaceItem.hpp XSNotationDeclaration.hpp XSObject.hpp XSParticle.hpp
> XSSimpleTypeDefinition.hpp XSTypeDefinition.hpp XSWildcard.hpp  XSNamedMap.c
> /data1/rui/xerces-c-src_2_5_0/include/xercesc/framework/psvi
> g++ -fPIC -D_HP_UX -DXERCES_TMPLSINC -DHPUX11 -D_REENTRANT -c
> -I/data1/rui/xerces-c-src_2_5_0/include -w -O -DPROJ_XMLPARSER
>  -DPROJ_XMLUTIL  -DPROJ_PARSERS  -DPROJ_SAX4C  -DPROJ_SAX2  -DPROJ_DOM
>  -DPROJ_VALIDATORS -DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER
> -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET     -o
> /data1/rui/xerces-c-src_2_5_0/obj/HPUX/XSAttributeGroupDefinition.o
> XSAttributeGroupDefinition.cpp
> 
> XSAttributeGroupDefinition.cpp: In member function 'virtual const XMLCh*
> xercesc_2_5::XSAttributeGroupDefinition::getName()':
> XSAttributeGroupDefinition.cpp:122: error: invalid use of incomplete type
> 'struct xercesc_2_5::XMLStringPool'
> /data1/rui/xerces-c-src_2_5_0/include/xercesc/framework/psvi/XSNamedMap.hpp:80:
> error: forward declaration of 'struct xercesc_2_5::XMLStringPool'
> XSAttributeGroupDefinition.cpp: In member function 'virtual const XMLCh*
> xercesc_2_5::XSAttributeGroupDefinition::getNamespace()':
> XSAttributeGroupDefinition.cpp:127: error: invalid use of incomplete type
> 'struct xercesc_2_5::XMLStringPool'
> /data1/rui/xerces-c-src_2_5_0/include/xercesc/framework/psvi/XSNamedMap.hpp:80:
> error: forward declaration of 'struct xercesc_2_5::XMLStringPool'
You could try to add an include of the appropriate header file to 
XSAttributeGroupDefinition.cpp:

#include "xercesc/util/StringPool.hpp"

Dave