Package: xclass Severity: normal Tags: patch When building 'xclass' on amd64 with gcc-4.0, I get the following error:
c++ -I../../include -DOX_DEFAULT_POOL=\"/usr/share/xclass/icons\" -DOX_DEFAULT_ROOT=\"\" -O2 -fPIC -c OXHtmlParse.cc OXHtmlParse.cc: In member function 'void OXHtml::PrintList(OHtmlElement*, OHtmlElement*)': OXHtmlParse.cc:1490: error: cast from 'OHtmlElement*' to 'int' loses precision OXHtmlParse.cc:1494: error: cast from 'OHtmlElement*' to 'int' loses precision make[3]: *** [OXHtmlParse.o] Error 1 make[3]: Leaving directory `/xclass-0.8.3/lib/libxclass' With the attached patch 'xclass' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/xclass-0.8.3/lib/libxclass/OXHtmlParse.cc ./lib/libxclass/OXHtmlParse.cc --- ../tmp-orig/xclass-0.8.3/lib/libxclass/OXHtmlParse.cc 2004-07-05 16:05:57.000000000 +0200 +++ ./lib/libxclass/OXHtmlParse.cc 2005-03-03 09:33:30.000000000 +0100 @@ -1486,12 +1486,12 @@ n = 1; z = ""; } - printf("Block 0x%08x flags=%02x cnt=%d x=%d..%d y=%d..%d z=\"%.*s\"\n", - (int) p, p->flags, p->count, block->left, block->right, + printf("Block 0x%16lx flags=%02x cnt=%d x=%d..%d y=%d..%d z=\"%.*s\"\n", + (long) p, p->flags, p->count, block->left, block->right, block->top, block->bottom, n, z); } else { - printf("Token 0x%08x font=%2d color=%2d align=%d flags=0x%04x name=%s\n", - (int) p, p->style.font, p->style.color, + printf("Token 0x%16lx font=%2d color=%2d align=%d flags=0x%04x name=%s\n", + (long) p, p->style.font, p->style.color, p->style.align, p->style.flags, DumpToken(p)); } } diff -urN ../tmp-orig/xclass-0.8.3/lib/libxclass/OXHtmlSizer.cc ./lib/libxclass/OXHtmlSizer.cc --- ../tmp-orig/xclass-0.8.3/lib/libxclass/OXHtmlSizer.cc 2004-07-05 16:05:57.000000000 +0200 +++ ./lib/libxclass/OXHtmlSizer.cc 2005-03-03 10:24:23.000000000 +0100 @@ -980,9 +980,9 @@ } TRACE(HtmlTrace_Style, - ("Style of 0x%08x font=%02d color=%02d bg=%02d " + ("Style of 0x%16lx font=%02d color=%02d bg=%02d " "align=%d flags=0x%04x token=%s\n", - (int)p, p->style.font, p->style.color, p->style.bgcolor, + (long)p, p->style.font, p->style.color, p->style.bgcolor, p->style.align, p->style.flags, DumpToken(p))); p = p->pNext; -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]