From: Rob k. G. <ro...@la...> - 2004-03-20 14:58:01
|
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=3D~/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=3D../xerces-c-src_2_5_0/lib/ ./configure --with-xerces-c-root=3D../xerces-c-src_2_5_0/ gmake ~etc CfgTypeRegistry.h:14: ANSI C++ forbids declaration `XERCES_CPP_NAMESPACE_QUALIFIER' with no typeCfgTypeRegistry.h:14: declar= ation 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. --=20 Rob klein Gunnewiek Lavego ICT Engineering |