When compiling CommonC++ with gcc 2.95.3, I recieve the following error: c++ -DHAVE_CONFIG_H -I. -I. -I. -I../src -I/usr/include/libxml2 -I../src -march=i686 -O3 -pipe -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -c xml.cpp -fPIC -DPIC -o .libs/xml.lo xml.cpp:54: parser.h: No such file or directory xml.cpp:55: parserInternals.h: No such file or directory xml.cpp:56: xmlIO.h: No such file or directory xml.cpp: In method `bool ost::XMLStream::Parse(const char * = 0)': xml.cpp:130: `xmlParserCtxtPtr' undeclared (first use this function) xml.cpp:130: (Each undeclared identifier is reported only once xml.cpp:130: for each function it appears in.) xml.cpp:130: parse error before `;' xml.cpp:131: `xmlSAXHandler' undeclared (first use this function) xml.cpp:137: `sax' undeclared (first use this function) xml.cpp:138: `startDocumentSAXFunc' undeclared (first use this function) xml.cpp:139: `endDocumentSAXFunc' undeclared (first use this function) xml.cpp:140: `startElementSAXFunc' undeclared (first use this function) xml.cpp:141: `endElementSAXFunc' undeclared (first use this function) xml.cpp:142: `charactersSAXFunc' undeclared (first use this function) xml.cpp:143: `commentSAXFunc' undeclared (first use this function) xml.cpp:145: `xml' undeclared (first use this function) xml.cpp:146: `xmlInputReadCallback' undeclared (first use this function) xml.cpp:147: `xmlInputCloseCallback' undeclared (first use this function) xml.cpp:148: `xmlCharEncoding' undeclared (first use this function) xml.cpp:148: parse error before `0' xml.cpp:153: implicit declaration of function `int ost::xmlParseDocument(...)' xml.cpp:158: implicit declaration of function `int ost::xmlFreeParserCtxt(...)' make[1]: *** [xml.lo] Error 1 make[1]: Leaving directory `/data/tmp/portage/commonc++-1.9.7/work/CommonC++-1.9.7/src' make: *** [all-recursive] Error 1 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 6, Exitcode 2 !!! make failed !!! emerge aborting on /data/portage/dev-libs/commonc++/commonc++-1.9.7.ebuild . I've tried reemerging libxml2, but that didn't make any difference.
the xml.h file is not in /usr/include, but in a subdirectory thereof. naz, please make sure it has the correct -I statement.
Yeah I know .. need to make a little patch for it :o)
done naz