cegui-0.6.1 not compatible with xerces-c-3

Create issue
Issue #235 resolved
Former user created an issue

Automatic migration. Original reporter: "daniel.santos"

xerces-c did us all the favor of breaking their API, I hear to address security issues. Please see http://xerces.apache.org/xerces-c/migrate-3.html. You're configure script will need to detect the xerces-c version (and/or preprocessor macros) and adjust API usage accordingly. . . . make[2]: Entering directory `/tmp/portage/dev-games/cegui-0.6.1/work/CEGUI-0.6.1/XMLParserModules/XercesParser' /bin/sh ../../libtool --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -march=amdfam10 -O2 -pipe -g -c -o libCEGUIXercesParser_la-CEGUIXercesParser.lo `test -f 'CEGUIXercesParser.cpp' || echo './'`CEGUIXercesParser.cpp mkdir .libs x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -march=amdfam10 -O2 -pipe -g -c CEGUIXercesParser.cpp -fPIC -DPIC -o .libs/libCEGUIXercesParser_la-CEGUIXercesParser.o CEGUIXercesParser.cpp: In static member function 'static CEGUI::String CEGUI::XercesParser::transcodeXmlCharToString(const XMLCh*, unsigned int)': CEGUIXercesParser.cpp:180: error: no matching function for call to 'xercesc_3_0::XMLTranscoder::transcodeTo(const XMLCh*, unsigned int&, CEGUI::utf8 [128], int, unsigned int&, xercesc_3_0::XMLTranscoder::UnRepOpts)' /usr/include/xercesc/util/TransService.hpp:297: note: candidates are: virtual XMLSize_t xercesc_3_0::XMLTranscoder::transcodeTo(const XMLCh*, XMLSize_t, XMLByte*, XMLSize_t, XMLSize_t&, xercesc_3_0::XMLTranscoder::UnRepOpts) make[2]: * [libCEGUIXercesParser_la-CEGUIXercesParser.lo] Error 1 make[2]: Leaving directory `/tmp/portage/dev-games/cegui-0.6.1/work/CEGUI-0.6.1/XMLParserModules/XercesParser' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory `/tmp/portage/dev-games/cegui-0.6.1/work/CEGUI-0.6.1/XMLParserModules' make: * [all-recursive] Error 1

Reproducibility: always

Additional information: fun, fun, lots of broken packages on Gentoo (related bug) http://bugs.gentoo.org/show_bug.cgi?id=244818

Comments (4)

  1. Paul Turner

    Ok.

    I have attached a tentative patch for this issue. Unless there is lots of negative feedback this is what will be committed here (maybe for a 0.6.2 release).

    Please feel free to forward the patch to Gentoo for their usage in the mean time.

    PS. One thing I got here with the samples was a minor glitch with not being able to load the Xerces message file - this was fixed by specifying a value into XERCESC_NLS_HOME environment variable. I'm not sure yet whether this is a local issue, a CEGUI issue or a Xerces issue; feedback welcome :)

  2. Paul Turner

    Just to confirm; the issue with XERCESC_NLS_HOME not being set was a local issue (PEBKAC). The actual fix for the Xerces-C++ API break is fine :)

    I'll likely be committing this to branches/v0-6 over this weekend.

  3. Log in to comment