|
From: Jason L. <JL...@me...> - 2004-04-23 12:54:58
|
I'm guessing you want the 2.5 (or current) version of Xerces. I think the
problem may be that you specified the location of Xerces using a relative
path instead of an absolute path in configure.
I.e. instead of
./configure --with-xerces-c-root=../xerces-c-src_2_5_0/
do
./configure --with-xerces-c-root=/full/path/to/xerces-c-src_2_5_0
If you continue to have problems, you may need to resort to uninstalling
the older version of Xerces, or at least removing its header files.
Jason Long
>>> ro...@la... 3/20/04 9:57:29 AM >>>
Hello,
I'm having problems compiling CFG on Debian testing on two systems.
I'm not someone that gives up easy so I have put alot of time in this,
tried many things.I have tried to compile with gcc/g++ 2.95, 3.2 and 3.3. I
have tried to
compile config4gnu with the default debian xerces (version 2.1), which
failed. I also tried with the xerces-current, it also failed.
Compilation fails here:
In file included from CfgBackendObject.h:6,
from CfgBackendObject.cc:5:
CfgPropertyDefinition.h:25: ANSI C++ forbids declaration
`XERCES_CPP_NAMESPACE_QUALIFIER' with no typeCfgPropertyDefinition.h:25:
parse error before `*'
This is followed by more parser errors which I think are unrelated.
This happens for all different g++ versions.
The 2.1 version of xerces doesn't appear to have
XERCES_CPP_NAMESPACE_QUALIFIER" at all.. the 2.5 does.. But the same
problem happens when compiling with any of these XERCES versions.I think it
may therefor be a CFG problem, but because this problem doesn't
seem to be known it may only happen on Debian (testing) systems.
Here is a short summary of what I have done (although I have tried
different things):
* Unpacked xerces package from apache.org in ~/
XERCESCROOT=~/config4gnu/xerces-c-src_2_5_0/
cd $XERCESCROOT/src/xercesc
autoconf
./runConfigure -plinux -cgcc -xg++ -minmem -nsocket -tnative -rpthread
gmake
The build went fine.. then I got to config4gnu:
cd ~/config4gnu-0.1.8
export LD_LIBRARY_PATH=../xerces-c-src_2_5_0/lib/
./configure --with-xerces-c-root=../xerces-c-src_2_5_0/
gmake
~etc
CfgTypeRegistry.h:14: ANSI C++ forbids declaration
`XERCES_CPP_NAMESPACE_QUALIFIER' with no typeCfgTypeRegistry.h:14:
declaration of `int
CfgTypeRegistry::XERCES_CPP_NAMESPACE_QUALIFIER'/usr/include/xercesc/dom/DOMDocument.hpp:1169:
changes meaning of
`XERCES_CPP_NAMESPACE_QUALIFIER' from `class
DOMDocument'CfgTypeRegistry.h:14: parse error before `*'
CfgTypeRegistry.h:20: parse error before `*'
CfgTypeRegistry.h:24: syntax error before `*'
In file included from CfgBackendObject.cc:12:
CfgPropertyType.h:14: parse error before `DOMElement'
CfgPropertyType.h:25: ANSI C++ forbids declaration
`XERCES_CPP_NAMESPACE_QUALIFIER' with no typeCfgPropertyType.h:25: parse
error before `*'
CfgPropertyType.h:29: syntax error before `*'
~etc
Can anyone point me in the right direction to solve this problem?
Do you need more specific information?
Any help appreciated.
--
Rob klein Gunnewiek
Lavego ICT Engineering
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Config4gnu-developer mailing list
Con...@li...
https://lists.sourceforge.net/lists/listinfo/config4gnu-developer
|