Hello Ronald,
I had done basically the same changes to adopt to Xerces 3.0 release
that you had in the 1.01 branch.
I've pulled a couple more changes from the 1.01 branch.

> and report any additional fixes that you have to apply for Debian/Ubuntu.

My other changes (you merged the gcc 4.3 and 4.4 compability stuff
IIRC) are mostly related to the location of documentation and to not
using zipios included with Enigma but the Debian packaged one.

However I just received a new bug report with respect to Xerces 3 and AMD64.
See attached patch which hopefully should resolve the issue. As I read
from the bug report at
http://bugs.debian.org/536682
it seems that it comes from assuming XMLSize_t == int which is true on
i386 but not on amd64.

It should also affect the 1.10 branch; the patch will likely apply
with some fuzz.

@Alexandros: for testing on Ubuntu, you probably can just wait for the
Ubuntu enigma package to be synched with Debian. Usually takes just a
couple of days for them to automatically pick up the changes and build
their own package (which then should appear in Karmic). It should be
possible to cross-install the Debian package on Ubuntu, but I do not
want to advocate mixing package sources.

best regards,
Erich Schubert
#
# This patch is necessary for Xerces/XML on AMD64
#
--- src/Utf8ToXML.cc.orig	2009-07-12 16:07:42.000000000 +0200
+++ src/Utf8ToXML.cc	2009-07-12 16:09:35.000000000 +0200
@@ -40,11 +40,11 @@
     }
 
     void Utf8ToXML::init(const char * const toTranscode) {
-        unsigned int srcLength = std::strlen(toTranscode) + 1;
+        XMLSize_t srcLength = std::strlen(toTranscode) + 1;
         // make safe assumptions on utf-16 size
-        unsigned int maxDestLength = srcLength;
-        unsigned int charsEaten;
-        unsigned int destLength;
+        XMLSize_t maxDestLength = srcLength;
+        XMLSize_t charsEaten;
+        XMLSize_t destLength;
         unsigned char *charSizes = new unsigned char[maxDestLength]; // just junk
         // make a buffer - size does not matter - the object is temporary 
         xmlString = new XMLCh[maxDestLength];
_______________________________________________
Enigma-devel mailing list
Enigma-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/enigma-devel

Reply via email to