You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by James Berry <jb...@apache.org> on 2005/02/25 00:52:22 UTC
Problems with compilation of tests under gcc4?
Is anybody else out there working with Xerces under gcc4?
In working on the new autoconf stuff, I tried to run all of the testss,
and ran into errors compiling several of them under gcc4:
- ParserTest: I can't remember what was broken in compiling this,
but it didn't compile.
- UtilTests: gcc4 complains of ambiguous calls to
NullPointerException
- XSValueTest: gcc4 complains of errors (value too long for long
type, etc)
Has anybody else tried to build these w/gcc4?
-jdb
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Problems with compilation of tests under gcc4?
Posted by Alberto Massari <am...@datadirect.com>.
At 08.47 25/02/2005 -0500, David Cargill wrote:
>Hi,
>For XSValueTest can someone send me the compiler errors? I have a guess
>of which lines are causing problems but would rather see the real problem
>before making a fix.
I see these error when compiling using MinGW:
$ c++ --version
c++.exe (GCC) 3.3.1 (mingw special 20030804-1)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[...]
c++ -c -D__MINGW__ -DPLATFORM_WIN32 -I. -Ic:/Xerces/xml-xerces/c/include -c
-w -O -mthreads -fexceptions -o
c:/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.o
c:/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp
c:/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp: In function `void
test_dt_integer()':
c:/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp:1353: error: integer
constant is too large for "long" type
c:/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp:1354: error: integer
constant is too large for "long" type
c:/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp: In function `void
test_dt_nonPositiveInteger()':
c:/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp:1506: error: integer
constant is too large for "long" type
c:/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp: In function `void
test_dt_negativeInteger()':
c:/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp:1650: error: integer
constant is too large for "long" type
c:/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp: In function `void
test_dt_long()':
c:/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp:1792: error: integer
constant is too large for "long" type
c:/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp:1793: error: integer
constant is too large for "long" type
c:/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp: In function `void
test_dt_nonNegativeInteger()':
c:/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp:2411: error: integer
constant is too large for "long" type
c:/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp: In function `void
test_dt_unsignedLong()':
c:/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp:2559: error: integer
constant is too large for "long" type
c:/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp: In function `void
test_dt_positiveInteger()':
c:/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp:3170: error: integer
constant is too large for "long" type
gmake.exe[1]: *** [c:/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.o]
Error 1
gmake.exe[1]: Leaving directory `c:/Xerces/xml-xerces/c/tests/XSValueTest'
----------------
I get the same errors also on Interix:
% c++ --version
c++ (GCC) 3.3
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[...]
c++ -c -DINTERIX -D_REENTRANT -D_ALL_SOURCE -I.
-I/dev/fs/C/Xerces/xml-xerces/c/include -c -D_ALL_SOURCE
-I/usr/local/include -w -O -DXML_USE_PTHREADS -o
/dev/fs/C/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.o
/dev/fs/C/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp
/dev/fs/C/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp: In function `
void test_dt_integer()':
/dev/fs/C/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp:1353:
error: integer
constant is too large for "long" type
/dev/fs/C/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp:1354:
error: integer
constant is too large for "long" type
/dev/fs/C/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp: In function `
void test_dt_nonPositiveInteger()':
/dev/fs/C/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp:1506:
error: integer
constant is too large for "long" type
/dev/fs/C/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp: In function `
void test_dt_negativeInteger()':
/dev/fs/C/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp:1650:
error: integer
constant is too large for "long" type
/dev/fs/C/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp: In function `
void test_dt_long()':
/dev/fs/C/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp:1792:
error: integer
constant is too large for "long" type
/dev/fs/C/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp:1793:
error: integer
constant is too large for "long" type
/dev/fs/C/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp: In function `
void test_dt_nonNegativeInteger()':
/dev/fs/C/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp:2411:
error: integer
constant is too large for "long" type
/dev/fs/C/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp: In function `
void test_dt_unsignedLong()':
/dev/fs/C/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp:2559:
error: integer
constant is too large for "long" type
/dev/fs/C/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp: In function `
void test_dt_positiveInteger()':
/dev/fs/C/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.cpp:3170:
error: integer
constant is too large for "long" type
gmake: *** [/dev/fs/C/Xerces/xml-xerces/c/tests/XSValueTest/XSValueTest.o]
Error 1
-------------
Compiling it with Borland 5.62 generates a lot of warnings but no
compile-time errors; what is failing is the execution of the test (it looks
like it doesn't overflow)
C:\Xerces\xml-xerces\c\Build\Win32\BCC.551>XSValueTest.exe
ACTVALUE_TEST XSValue returned: data=<4294967296>,
datatype=<nonNegativeInteger>
ACTVALUE_TEST XSValue returned: data=<4294967296>,
datatype=<nonNegativeInteger>
ACTVALUE_TEST XSValue returned: data=<4294967296>, datatype=<unsignedLong>
ACTVALUE_TEST XSValue returned: data=<4294967296>, datatype=<unsignedLong>
VALIDATE_TEST Validation Fail: data=<4294967296>, datatype=<unsignedInt>,
expRetVal=<0>
ACTVALUE_TEST XSValue returned: data=<4294967296>, datatype=<unsignedInt>
ACTVALUE_TEST XSValue returned: data=<4294967296>, datatype=<unsignedInt>
CANREP_TEST CanRep returned, data=<4294967296>, datatype=<unsignedInt>
ACTVALUE_TEST Context Diff, data=<4294967296>, datatype=<positiveInteger>,
expStatus=<st_FOCA0003>, actStatus=<st_FOCA0002>
ACTVALUE_TEST Context Diff, data=<4294967296>, datatype=<positiveInteger>,
expStatus=<st_FOCA0003>, actStatus=<st_FOCA0002>
XSValueTest Fail
---------------
Alberto
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Problems with compilation of tests under gcc4?
Posted by James Berry <jb...@apache.org>.
Hi David,
I have no problem with deleting both the ParserTest and UtilsTest. They
sure fooled me. I wasn't starting with any Makefile (since I was
rebuilding the makefile) so I just started added rules to make the
various tests, and came across these...
-jdb
On Feb 26, 2005, at 7:40 AM, David Cargill wrote:
> Hi James,
> I have never even heard of ParserTest. I found it in the tests
> directory.
> It isn't setup to be built on Unix (no Makefile points to it and the
> directory doesn't have one either). It also doesn't show up in MS VC6
> project files. sanityTest.pl doesn't execute it either. I propose we
> delete it.
> Regards,
> David A. Cargill
> XML Parser Development
> IBM Toronto Lab
> (905) 413-2371, tie 969
> cargilld@ca.ibm.com
> James Berry
> <jberry@apache.or
> g>
> To
> xerces-c-dev@xml.apache.org
> 02/25/2005 09:46
> cc
> AM
>
> Subject
> Re: Problems with compilation of
> Please respond to tests under gcc4?
> xerces-c-dev
> On Feb 25, 2005, at 5:47 AM, David Cargill wrote:
>> Hi,
>> For XSValueTest can someone send me the compiler errors? I have a
>> guess
>> of which lines are causing problems but would rather see the real
>> problem
>> before making a fix.
> (I know you didn't ask for this, but...just in case you're feeling
> lucky... ;)... Here are the gcc4 errors from ParserTest:
> ParserTest/ParserTest.cpp: In function `int main(int, char**)':
> ParserTest/ParserTest.cpp:96: error: cannot declare variable
> 'parserTest' to be of abstract type 'TestParser'
> ParserTest/ParserTest_Parser.hpp:65: note: because the following
> virtual functions are pure within 'TestParser':
> ../src/xercesc/framework/XMLErrorReporter.hpp:187: note: virtual void
> xercesc_2_6::XMLErrorReporter::error(unsigned int, const XMLCh*,
> xercesc_2_6::XMLErrorReporter::ErrTypes, const XMLCh*, const XMLCh*,
> const XMLCh*, XMLSSize_t, XMLSSize_t)
> ../src/xercesc/validators/DTD/DocTypeHandler.hpp:111: note: virtual
> void xercesc_2_6::DocTypeHandler::doctypeDecl(const
> xercesc_2_6::DTDElementDecl&, const XMLCh*, const XMLCh*, bool, bool)
> ../src/xercesc/framework/XMLDocumentHandler.hpp:202: note: virtual
> void xercesc_2_6::XMLDocumentHandler::endElement(const
> xercesc_2_6::XMLElementDecl&, unsigned int, bool, const XMLCh*)
> ParserTest/ParserTest.cpp:160: error: no matching function for call to
> 'xercesc_2_6::XMLScanner::XMLScanner(TestParser*, TestParser*, int,
> TestParser*, xercesc_2_6::XMLValidator*&)'
> ../src/xercesc/internal/XMLScanner.hpp:1086: note: candidates are:
> xercesc_2_6::XMLScanner::XMLScanner(const xercesc_2_6::XMLScanner&)
> ../src/xercesc/internal/XMLScanner.hpp:1085: note:
> xercesc_2_6::XMLScanner::XMLScanner()
> ../src/xercesc/internal/XMLScanner.hpp:438: note:
> xercesc_2_6::XMLScanner::XMLScanner(xercesc_2_6::XMLDocumentHandler*,
> xercesc_2_6::DocTypeHandler*, xercesc_2_6::XMLEntityHandler*,
> xercesc_2_6::XMLErrorReporter*, xercesc_2_6::XMLValidator*,
> xercesc_2_6::GrammarResolver*, xercesc_2_6::MemoryManager*)
> ../src/xercesc/internal/XMLScanner.hpp:428: note:
> xercesc_2_6::XMLScanner::XMLScanner(xercesc_2_6::XMLValidator*,
> xercesc_2_6::GrammarResolver*, xercesc_2_6::MemoryManager*)
> ParserTest/ParserTest.cpp:154: error: cannot declare variable 'scanner'
> to be of abstract type 'xercesc_2_6::XMLScanner'
> ../src/xercesc/internal/XMLScanner.hpp:362: note: because the
> following virtual functions are pure within 'xercesc_2_6::XMLScanner':
> ../src/xercesc/internal/XMLScanner.hpp:479: note: virtual const XMLCh*
> xercesc_2_6::XMLScanner::getName() const
> ../src/xercesc/internal/XMLScanner.hpp:480: note: virtual
> xercesc_2_6::NameIdPool<xercesc_2_6::DTDEntityDecl>*
> xercesc_2_6::XMLScanner::getEntityDeclPool()
> ../src/xercesc/internal/XMLScanner.hpp:481: note: virtual const
> xercesc_2_6::NameIdPool<xercesc_2_6::DTDEntityDecl>*
> xercesc_2_6::XMLScanner::getEntityDeclPool() const
> ../src/xercesc/internal/XMLScanner.hpp:488: note: virtual unsigned int
> xercesc_2_6::XMLScanner::resolveQName(const XMLCh*,
> xercesc_2_6::XMLBuffer&, short int, int&)
> ../src/xercesc/internal/XMLScanner.hpp:492: note: virtual void
> xercesc_2_6::XMLScanner::scanDocument(const xercesc_2_6::InputSource&)
> ../src/xercesc/internal/XMLScanner.hpp:493: note: virtual bool
> xercesc_2_6::XMLScanner::scanNext(xercesc_2_6::XMLPScanToken&)
> ../src/xercesc/internal/XMLScanner.hpp:499: note: virtual
> xercesc_2_6::Grammar* xercesc_2_6::XMLScanner::loadGrammar(const
> xercesc_2_6::InputSource&, short int, bool)
> ../src/xercesc/internal/XMLScanner.hpp:738: note: virtual void
> xercesc_2_6::XMLScanner::scanCDSection()
> ../src/xercesc/internal/XMLScanner.hpp:739: note: virtual void
> xercesc_2_6::XMLScanner::scanCharData(xercesc_2_6::XMLBuffer&)
> ../src/xercesc/internal/XMLScanner.hpp:746: note: virtual
> xercesc_2_6::XMLScanner::EntityExpRes
> xercesc_2_6::XMLScanner::scanEntityRef(bool, XMLCh&, XMLCh&, bool&)
> ../src/xercesc/internal/XMLScanner.hpp:747: note: virtual void
> xercesc_2_6::XMLScanner::scanDocTypeDecl()
> ../src/xercesc/internal/XMLScanner.hpp:748: note: virtual void
> xercesc_2_6::XMLScanner::scanReset(const xercesc_2_6::InputSource&)
> ../src/xercesc/internal/XMLScanner.hpp:749: note: virtual void
> xercesc_2_6::XMLScanner::sendCharData(xercesc_2_6::XMLBuffer&)
> make[2]: *** [ParserTest/ParserTest.o] Error 1
> make[1]: *** [check-am] Error 2
> make: *** [check-recursive] Error 1
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Problems with compilation of tests under gcc4?
Posted by David Cargill <ca...@ca.ibm.com>.
Hi James,
I have never even heard of ParserTest. I found it in the tests directory.
It isn't setup to be built on Unix (no Makefile points to it and the
directory doesn't have one either). It also doesn't show up in MS VC6
project files. sanityTest.pl doesn't execute it either. I propose we
delete it.
Regards,
David A. Cargill
XML Parser Development
IBM Toronto Lab
(905) 413-2371, tie 969
cargilld@ca.ibm.com
James Berry
<jberry@apache.or
g> To
xerces-c-dev@xml.apache.org
02/25/2005 09:46 cc
AM
Subject
Re: Problems with compilation of
Please respond to tests under gcc4?
xerces-c-dev
On Feb 25, 2005, at 5:47 AM, David Cargill wrote:
> Hi,
> For XSValueTest can someone send me the compiler errors? I have a
> guess
> of which lines are causing problems but would rather see the real
> problem
> before making a fix.
(I know you didn't ask for this, but...just in case you're feeling
lucky... ;)... Here are the gcc4 errors from ParserTest:
ParserTest/ParserTest.cpp: In function `int main(int, char**)':
ParserTest/ParserTest.cpp:96: error: cannot declare variable
'parserTest' to be of abstract type 'TestParser'
ParserTest/ParserTest_Parser.hpp:65: note: because the following
virtual functions are pure within 'TestParser':
../src/xercesc/framework/XMLErrorReporter.hpp:187: note: virtual void
xercesc_2_6::XMLErrorReporter::error(unsigned int, const XMLCh*,
xercesc_2_6::XMLErrorReporter::ErrTypes, const XMLCh*, const XMLCh*,
const XMLCh*, XMLSSize_t, XMLSSize_t)
../src/xercesc/validators/DTD/DocTypeHandler.hpp:111: note: virtual
void xercesc_2_6::DocTypeHandler::doctypeDecl(const
xercesc_2_6::DTDElementDecl&, const XMLCh*, const XMLCh*, bool, bool)
../src/xercesc/framework/XMLDocumentHandler.hpp:202: note: virtual
void xercesc_2_6::XMLDocumentHandler::endElement(const
xercesc_2_6::XMLElementDecl&, unsigned int, bool, const XMLCh*)
ParserTest/ParserTest.cpp:160: error: no matching function for call to
'xercesc_2_6::XMLScanner::XMLScanner(TestParser*, TestParser*, int,
TestParser*, xercesc_2_6::XMLValidator*&)'
../src/xercesc/internal/XMLScanner.hpp:1086: note: candidates are:
xercesc_2_6::XMLScanner::XMLScanner(const xercesc_2_6::XMLScanner&)
../src/xercesc/internal/XMLScanner.hpp:1085: note:
xercesc_2_6::XMLScanner::XMLScanner()
../src/xercesc/internal/XMLScanner.hpp:438: note:
xercesc_2_6::XMLScanner::XMLScanner(xercesc_2_6::XMLDocumentHandler*,
xercesc_2_6::DocTypeHandler*, xercesc_2_6::XMLEntityHandler*,
xercesc_2_6::XMLErrorReporter*, xercesc_2_6::XMLValidator*,
xercesc_2_6::GrammarResolver*, xercesc_2_6::MemoryManager*)
../src/xercesc/internal/XMLScanner.hpp:428: note:
xercesc_2_6::XMLScanner::XMLScanner(xercesc_2_6::XMLValidator*,
xercesc_2_6::GrammarResolver*, xercesc_2_6::MemoryManager*)
ParserTest/ParserTest.cpp:154: error: cannot declare variable 'scanner'
to be of abstract type 'xercesc_2_6::XMLScanner'
../src/xercesc/internal/XMLScanner.hpp:362: note: because the
following virtual functions are pure within 'xercesc_2_6::XMLScanner':
../src/xercesc/internal/XMLScanner.hpp:479: note: virtual const XMLCh*
xercesc_2_6::XMLScanner::getName() const
../src/xercesc/internal/XMLScanner.hpp:480: note: virtual
xercesc_2_6::NameIdPool<xercesc_2_6::DTDEntityDecl>*
xercesc_2_6::XMLScanner::getEntityDeclPool()
../src/xercesc/internal/XMLScanner.hpp:481: note: virtual const
xercesc_2_6::NameIdPool<xercesc_2_6::DTDEntityDecl>*
xercesc_2_6::XMLScanner::getEntityDeclPool() const
../src/xercesc/internal/XMLScanner.hpp:488: note: virtual unsigned int
xercesc_2_6::XMLScanner::resolveQName(const XMLCh*,
xercesc_2_6::XMLBuffer&, short int, int&)
../src/xercesc/internal/XMLScanner.hpp:492: note: virtual void
xercesc_2_6::XMLScanner::scanDocument(const xercesc_2_6::InputSource&)
../src/xercesc/internal/XMLScanner.hpp:493: note: virtual bool
xercesc_2_6::XMLScanner::scanNext(xercesc_2_6::XMLPScanToken&)
../src/xercesc/internal/XMLScanner.hpp:499: note: virtual
xercesc_2_6::Grammar* xercesc_2_6::XMLScanner::loadGrammar(const
xercesc_2_6::InputSource&, short int, bool)
../src/xercesc/internal/XMLScanner.hpp:738: note: virtual void
xercesc_2_6::XMLScanner::scanCDSection()
../src/xercesc/internal/XMLScanner.hpp:739: note: virtual void
xercesc_2_6::XMLScanner::scanCharData(xercesc_2_6::XMLBuffer&)
../src/xercesc/internal/XMLScanner.hpp:746: note: virtual
xercesc_2_6::XMLScanner::EntityExpRes
xercesc_2_6::XMLScanner::scanEntityRef(bool, XMLCh&, XMLCh&, bool&)
../src/xercesc/internal/XMLScanner.hpp:747: note: virtual void
xercesc_2_6::XMLScanner::scanDocTypeDecl()
../src/xercesc/internal/XMLScanner.hpp:748: note: virtual void
xercesc_2_6::XMLScanner::scanReset(const xercesc_2_6::InputSource&)
../src/xercesc/internal/XMLScanner.hpp:749: note: virtual void
xercesc_2_6::XMLScanner::sendCharData(xercesc_2_6::XMLBuffer&)
make[2]: *** [ParserTest/ParserTest.o] Error 1
make[1]: *** [check-am] Error 2
make: *** [check-recursive] Error 1
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Problems with compilation of tests under gcc4?
Posted by James Berry <jb...@apache.org>.
On Feb 25, 2005, at 5:47 AM, David Cargill wrote:
> Hi,
> For XSValueTest can someone send me the compiler errors? I have a
> guess
> of which lines are causing problems but would rather see the real
> problem
> before making a fix.
(I know you didn't ask for this, but...just in case you're feeling
lucky... ;)... Here are the gcc4 errors from ParserTest:
ParserTest/ParserTest.cpp: In function `int main(int, char**)':
ParserTest/ParserTest.cpp:96: error: cannot declare variable
'parserTest' to be of abstract type 'TestParser'
ParserTest/ParserTest_Parser.hpp:65: note: because the following
virtual functions are pure within 'TestParser':
../src/xercesc/framework/XMLErrorReporter.hpp:187: note: virtual void
xercesc_2_6::XMLErrorReporter::error(unsigned int, const XMLCh*,
xercesc_2_6::XMLErrorReporter::ErrTypes, const XMLCh*, const XMLCh*,
const XMLCh*, XMLSSize_t, XMLSSize_t)
../src/xercesc/validators/DTD/DocTypeHandler.hpp:111: note: virtual
void xercesc_2_6::DocTypeHandler::doctypeDecl(const
xercesc_2_6::DTDElementDecl&, const XMLCh*, const XMLCh*, bool, bool)
../src/xercesc/framework/XMLDocumentHandler.hpp:202: note: virtual
void xercesc_2_6::XMLDocumentHandler::endElement(const
xercesc_2_6::XMLElementDecl&, unsigned int, bool, const XMLCh*)
ParserTest/ParserTest.cpp:160: error: no matching function for call to
'xercesc_2_6::XMLScanner::XMLScanner(TestParser*, TestParser*, int,
TestParser*, xercesc_2_6::XMLValidator*&)'
../src/xercesc/internal/XMLScanner.hpp:1086: note: candidates are:
xercesc_2_6::XMLScanner::XMLScanner(const xercesc_2_6::XMLScanner&)
../src/xercesc/internal/XMLScanner.hpp:1085: note:
xercesc_2_6::XMLScanner::XMLScanner()
../src/xercesc/internal/XMLScanner.hpp:438: note:
xercesc_2_6::XMLScanner::XMLScanner(xercesc_2_6::XMLDocumentHandler*,
xercesc_2_6::DocTypeHandler*, xercesc_2_6::XMLEntityHandler*,
xercesc_2_6::XMLErrorReporter*, xercesc_2_6::XMLValidator*,
xercesc_2_6::GrammarResolver*, xercesc_2_6::MemoryManager*)
../src/xercesc/internal/XMLScanner.hpp:428: note:
xercesc_2_6::XMLScanner::XMLScanner(xercesc_2_6::XMLValidator*,
xercesc_2_6::GrammarResolver*, xercesc_2_6::MemoryManager*)
ParserTest/ParserTest.cpp:154: error: cannot declare variable 'scanner'
to be of abstract type 'xercesc_2_6::XMLScanner'
../src/xercesc/internal/XMLScanner.hpp:362: note: because the
following virtual functions are pure within 'xercesc_2_6::XMLScanner':
../src/xercesc/internal/XMLScanner.hpp:479: note: virtual const XMLCh*
xercesc_2_6::XMLScanner::getName() const
../src/xercesc/internal/XMLScanner.hpp:480: note: virtual
xercesc_2_6::NameIdPool<xercesc_2_6::DTDEntityDecl>*
xercesc_2_6::XMLScanner::getEntityDeclPool()
../src/xercesc/internal/XMLScanner.hpp:481: note: virtual const
xercesc_2_6::NameIdPool<xercesc_2_6::DTDEntityDecl>*
xercesc_2_6::XMLScanner::getEntityDeclPool() const
../src/xercesc/internal/XMLScanner.hpp:488: note: virtual unsigned int
xercesc_2_6::XMLScanner::resolveQName(const XMLCh*,
xercesc_2_6::XMLBuffer&, short int, int&)
../src/xercesc/internal/XMLScanner.hpp:492: note: virtual void
xercesc_2_6::XMLScanner::scanDocument(const xercesc_2_6::InputSource&)
../src/xercesc/internal/XMLScanner.hpp:493: note: virtual bool
xercesc_2_6::XMLScanner::scanNext(xercesc_2_6::XMLPScanToken&)
../src/xercesc/internal/XMLScanner.hpp:499: note: virtual
xercesc_2_6::Grammar* xercesc_2_6::XMLScanner::loadGrammar(const
xercesc_2_6::InputSource&, short int, bool)
../src/xercesc/internal/XMLScanner.hpp:738: note: virtual void
xercesc_2_6::XMLScanner::scanCDSection()
../src/xercesc/internal/XMLScanner.hpp:739: note: virtual void
xercesc_2_6::XMLScanner::scanCharData(xercesc_2_6::XMLBuffer&)
../src/xercesc/internal/XMLScanner.hpp:746: note: virtual
xercesc_2_6::XMLScanner::EntityExpRes
xercesc_2_6::XMLScanner::scanEntityRef(bool, XMLCh&, XMLCh&, bool&)
../src/xercesc/internal/XMLScanner.hpp:747: note: virtual void
xercesc_2_6::XMLScanner::scanDocTypeDecl()
../src/xercesc/internal/XMLScanner.hpp:748: note: virtual void
xercesc_2_6::XMLScanner::scanReset(const xercesc_2_6::InputSource&)
../src/xercesc/internal/XMLScanner.hpp:749: note: virtual void
xercesc_2_6::XMLScanner::sendCharData(xercesc_2_6::XMLBuffer&)
make[2]: *** [ParserTest/ParserTest.o] Error 1
make[1]: *** [check-am] Error 2
make: *** [check-recursive] Error 1
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Problems with compilation of tests under gcc4?
Posted by David Cargill <ca...@ca.ibm.com>.
Hi James,
Actually have the same comments for UtilTest as I did for ParserTest.
Again, this looks really ancient and isn't hooked up to being built (via
makefile or ms vc6 project files). I suggest we delete it as well. Unless
someone thinks this tests are useful in which case they should be made part
of sanityTest.pl so they get built and tested regularly... Although having
never used either of these (actually having never heard of either of these)
I don't think they are that useful and would delete them.
Regards,
David A. Cargill
XML Parser Development
IBM Toronto Lab
(905) 413-2371, tie 969
cargilld@ca.ibm.com
James Berry
<jberry@apache.or
g> To
xerces-c-dev@xml.apache.org
02/25/2005 09:51 cc
AM
Subject
Re: Problems with compilation of
Please respond to tests under gcc4?
xerces-c-dev
> ... feeling lucky... ;)...
And for UtilTests:
../src/xercesc/util/CountedPointer.c: In member function `const T&
xercesc_2_6::CountedPointerTo<T>::operator*() const [with T =
TestClass]':
UtilTests/CoreTests_CountedPointer.cpp:95: instantiated from here
../src/xercesc/util/CountedPointer.c:124: error: call of overloaded
'NullPointerException(const char [37], int,
xercesc_2_6::XMLExcepts::Codes, int)' is ambiguous
../src/xercesc/util/NullPointerException.hpp:30: note: candidates are:
xercesc_2_6::NullPointerException::NullPointerException(const char*,
unsigned int, xercesc_2_6::XMLExcepts::Codes, const char*, const char*,
const char*, const char*, xercesc_2_6::MemoryManager*)
../src/xercesc/util/NullPointerException.hpp:30: note:
xercesc_2_6::NullPointerException::NullPointerException(const char*,
unsigned int, xercesc_2_6::XMLExcepts::Codes, const XMLCh*, const
XMLCh*, const XMLCh*, const XMLCh*, xercesc_2_6::MemoryManager*)
../src/xercesc/util/NullPointerException.hpp:30: note:
xercesc_2_6::NullPointerException::NullPointerException(const char*,
unsigned int, xercesc_2_6::XMLExcepts::Codes,
xercesc_2_6::MemoryManager*)
../src/xercesc/util/CountedPointer.c: In member function `T&
xercesc_2_6::CountedPointerTo<T>::operator*() [with T = TestClass]':
UtilTests/CoreTests_CountedPointer.cpp:95: instantiated from here
../src/xercesc/util/CountedPointer.c:131: error: call of overloaded
'NullPointerException(const char [37], int,
xercesc_2_6::XMLExcepts::Codes, int)' is ambiguous
../src/xercesc/util/NullPointerException.hpp:30: note: candidates are:
xercesc_2_6::NullPointerException::NullPointerException(const char*,
unsigned int, xercesc_2_6::XMLExcepts::Codes, const char*, const char*,
const char*, const char*, xercesc_2_6::MemoryManager*)
../src/xercesc/util/NullPointerException.hpp:30: note:
xercesc_2_6::NullPointerException::NullPointerException(const char*,
unsigned int, xercesc_2_6::XMLExcepts::Codes, const XMLCh*, const
XMLCh*, const XMLCh*, const XMLCh*, xercesc_2_6::MemoryManager*)
../src/xercesc/util/NullPointerException.hpp:30: note:
xercesc_2_6::NullPointerException::NullPointerException(const char*,
unsigned int, xercesc_2_6::XMLExcepts::Codes,
xercesc_2_6::MemoryManager*)
make[2]: *** [UtilTests/CoreTests_CountedPointer.o] Error 1
make[1]: *** [check-am] Error 2
make: *** [check-recursive] Error 1
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Problems with compilation of tests under gcc4?
Posted by James Berry <jb...@apache.org>.
> ... feeling lucky... ;)...
And for UtilTests:
../src/xercesc/util/CountedPointer.c: In member function `const T&
xercesc_2_6::CountedPointerTo<T>::operator*() const [with T =
TestClass]':
UtilTests/CoreTests_CountedPointer.cpp:95: instantiated from here
../src/xercesc/util/CountedPointer.c:124: error: call of overloaded
'NullPointerException(const char [37], int,
xercesc_2_6::XMLExcepts::Codes, int)' is ambiguous
../src/xercesc/util/NullPointerException.hpp:30: note: candidates are:
xercesc_2_6::NullPointerException::NullPointerException(const char*,
unsigned int, xercesc_2_6::XMLExcepts::Codes, const char*, const char*,
const char*, const char*, xercesc_2_6::MemoryManager*)
../src/xercesc/util/NullPointerException.hpp:30: note:
xercesc_2_6::NullPointerException::NullPointerException(const char*,
unsigned int, xercesc_2_6::XMLExcepts::Codes, const XMLCh*, const
XMLCh*, const XMLCh*, const XMLCh*, xercesc_2_6::MemoryManager*)
../src/xercesc/util/NullPointerException.hpp:30: note:
xercesc_2_6::NullPointerException::NullPointerException(const char*,
unsigned int, xercesc_2_6::XMLExcepts::Codes,
xercesc_2_6::MemoryManager*)
../src/xercesc/util/CountedPointer.c: In member function `T&
xercesc_2_6::CountedPointerTo<T>::operator*() [with T = TestClass]':
UtilTests/CoreTests_CountedPointer.cpp:95: instantiated from here
../src/xercesc/util/CountedPointer.c:131: error: call of overloaded
'NullPointerException(const char [37], int,
xercesc_2_6::XMLExcepts::Codes, int)' is ambiguous
../src/xercesc/util/NullPointerException.hpp:30: note: candidates are:
xercesc_2_6::NullPointerException::NullPointerException(const char*,
unsigned int, xercesc_2_6::XMLExcepts::Codes, const char*, const char*,
const char*, const char*, xercesc_2_6::MemoryManager*)
../src/xercesc/util/NullPointerException.hpp:30: note:
xercesc_2_6::NullPointerException::NullPointerException(const char*,
unsigned int, xercesc_2_6::XMLExcepts::Codes, const XMLCh*, const
XMLCh*, const XMLCh*, const XMLCh*, xercesc_2_6::MemoryManager*)
../src/xercesc/util/NullPointerException.hpp:30: note:
xercesc_2_6::NullPointerException::NullPointerException(const char*,
unsigned int, xercesc_2_6::XMLExcepts::Codes,
xercesc_2_6::MemoryManager*)
make[2]: *** [UtilTests/CoreTests_CountedPointer.o] Error 1
make[1]: *** [check-am] Error 2
make: *** [check-recursive] Error 1
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Problems with compilation of tests under gcc4?
Posted by Alberto Massari <am...@datadirect.com>.
At 13.31 25/02/2005 -0500, David Cargill wrote:
>Hi James/Alberto,
>I checked in a fix for XSValueTest. Can you let me know if it gets rid of
>the errors? Thanks.
Hi David,
gcc 3.3.1 and 3.3 now compile fine (Borland still reports "test fail", though).
Thanks,
Alberto
>Regards,
>David A. Cargill
>XML Parser Development
>IBM Toronto Lab
>(905) 413-2371, tie 969
>cargilld@ca.ibm.com
>
>
>
> James Berry
> <jberry@apache.or
> g> To
> xerces-c-dev@xml.apache.org
> 02/25/2005 09:21 cc
> AM
> Subject
> Re: Problems with compilation of
> Please respond to tests under gcc4?
> xerces-c-dev
>
>
>
>
>
>
>
>
>
>
>On Feb 25, 2005, at 5:47 AM, David Cargill wrote:
>
> > Hi,
> > For XSValueTest can someone send me the compiler errors? I have a
> > guess
> > of which lines are causing problems but would rather see the real
> > problem
> > before making a fix.
>
>David,
>
>Are you sure you're ready... (I think the last of these errors would be
>fixed by Scott Cantor's patch)...
>
>-jdb
>
>
>XSValueTest/XSValueTest.cpp:1350: error: integer constant is too large
>for 'long' type
>XSValueTest/XSValueTest.cpp:1351:83: warning: integer constant is so
>large that it is unsigned
>XSValueTest/XSValueTest.cpp:1351: warning: this decimal constant is
>unsigned only in ISO C90
>XSValueTest/XSValueTest.cpp:1351: error: integer constant is too large
>for 'long' type
>XSValueTest/XSValueTest.cpp:1353: warning: this decimal constant is
>unsigned only in ISO C90
>XSValueTest/XSValueTest.cpp:1503:85: warning: integer constant is so
>large that it is unsigned
>XSValueTest/XSValueTest.cpp:1503: warning: this decimal constant is
>unsigned only in ISO C90
>XSValueTest/XSValueTest.cpp:1503: error: integer constant is too large
>for 'long' type
>XSValueTest/XSValueTest.cpp:1504: warning: this decimal constant is
>unsigned only in ISO C90
>XSValueTest/XSValueTest.cpp:1647:85: warning: integer constant is so
>large that it is unsigned
>XSValueTest/XSValueTest.cpp:1647: warning: this decimal constant is
>unsigned only in ISO C90
>XSValueTest/XSValueTest.cpp:1647: error: integer constant is too large
>for 'long' type
>XSValueTest/XSValueTest.cpp:1648: warning: this decimal constant is
>unsigned only in ISO C90
>XSValueTest/XSValueTest.cpp:1789: error: integer constant is too large
>for 'long' type
>XSValueTest/XSValueTest.cpp:1790:85: warning: integer constant is so
>large that it is unsigned
>XSValueTest/XSValueTest.cpp:1790: warning: this decimal constant is
>unsigned only in ISO C90
>XSValueTest/XSValueTest.cpp:1790: error: integer constant is too large
>for 'long' type
>XSValueTest/XSValueTest.cpp:1792: warning: this decimal constant is
>unsigned only in ISO C90
>XSValueTest/XSValueTest.cpp:1949: warning: this decimal constant is
>unsigned only in ISO C90
>XSValueTest/XSValueTest.cpp:2408:94: warning: integer constant is so
>large that it is unsigned
>XSValueTest/XSValueTest.cpp:2408: warning: this decimal constant is
>unsigned only in ISO C90
>XSValueTest/XSValueTest.cpp:2408: error: integer constant is too large
>for 'long' type
>XSValueTest/XSValueTest.cpp:2409: warning: this decimal constant is
>unsigned only in ISO C90
>XSValueTest/XSValueTest.cpp:2556:94: warning: integer constant is so
>large that it is unsigned
>XSValueTest/XSValueTest.cpp:2556: warning: this decimal constant is
>unsigned only in ISO C90
>XSValueTest/XSValueTest.cpp:2556: error: integer constant is too large
>for 'long' type
>XSValueTest/XSValueTest.cpp:2558: warning: this decimal constant is
>unsigned only in ISO C90
>XSValueTest/XSValueTest.cpp:2716: warning: this decimal constant is
>unsigned only in ISO C90
>XSValueTest/XSValueTest.cpp:3167:94: warning: integer constant is so
>large that it is unsigned
>XSValueTest/XSValueTest.cpp:3167: warning: this decimal constant is
>unsigned only in ISO C90
>XSValueTest/XSValueTest.cpp:3167: error: integer constant is too large
>for 'long' type
>XSValueTest/XSValueTest.cpp:3168: warning: this decimal constant is
>unsigned only in ISO C90
>XSValueTest/XSValueTest.cpp: In function `int main(int, char*)':
>XSValueTest/XSValueTest.hpp:97: error: 'StrX::StrX(const StrX&)' is
>private
>XSValueTest/XSValueTest.cpp:6661: error: within this context
>make[2]: *** [XSValueTest/XSValueTest.o] Error 1
>make[1]: *** [check-am] Error 2
>make: *** [check-recursive] Error 1
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
>For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
>For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Problems with compilation of tests under gcc4?
Posted by James Berry <jb...@apache.org>.
On Feb 25, 2005, at 10:31 AM, David Cargill wrote:
> Hi James/Alberto,
> I checked in a fix for XSValueTest. Can you let me know if it gets
> rid of
> the errors? Thanks.
Hi Dave,
This fixed the errors, but some warnings remain:
XSValueTest/XSValueTest.cpp:1363: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:1516: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:1662: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:1808: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:1965: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:2427: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:2578: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:2736: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:3190: warning: this decimal constant is
unsigned only in ISO C90
These are due to the fact that C90 doesn't treat constants quite the
same way. I think the simplest way to avoid these warnings, if it's
desired, would be to simply enter the numbers in hex, which is easier
to understand for these numbers anyway... ;) But it may not be worth
it.
Thanks for cleaning up those other errors.
-jdb
See (http://gcc.gnu.org/ml/gcc-bugs/2003-04/msg00082.html):
> I'm getting this warning when trying to initialize a signed int with
> the most natural form of a constant for the maximum negative value:
>
> $ cat x.c
> signed int maxneg1 = -2147483648; /* This gives a warning */
> signed int maxneg2 = -2147483647 - 1; /* This is OK */
> signed int maxneg3 = 0x80000000; /* This is also OK */
>
> $ /usr/local/sourceware/bin/gcc -c x.c
> x.c:1: warning: this decimal constant is unsigned only in ISO C90
>
> $ /usr/local/sourceware/bin/gcc --v
> Reading specs from
/links1/usr/local/sourceware/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.4/
specs
> Configured with: /src/sourceware/gcc/gcc/configure -v
--prefix=/usr/local/sourceware --cache-file=config.cache
--enable-languages=c,c++
> Thread model: posix
> gcc version 3.4 20030401 (experimental)
>
> Is this some sort of bug or just a quirk of how integer constants are
> converted from external to internal format on a 32 bit two's
> complement machine?
It's because c90 says that the constant is 2147483648 (which is not
representable as a signed 32-bit value). To that constant you've then
applied the negation operation.
c90 doesn't have negative constants, only positive ones that have been
negated...
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Problems with compilation of tests under gcc4?
Posted by David Cargill <ca...@ca.ibm.com>.
Hi James/Alberto,
I checked in a fix for XSValueTest. Can you let me know if it gets rid of
the errors? Thanks.
Regards,
David A. Cargill
XML Parser Development
IBM Toronto Lab
(905) 413-2371, tie 969
cargilld@ca.ibm.com
James Berry
<jberry@apache.or
g> To
xerces-c-dev@xml.apache.org
02/25/2005 09:21 cc
AM
Subject
Re: Problems with compilation of
Please respond to tests under gcc4?
xerces-c-dev
On Feb 25, 2005, at 5:47 AM, David Cargill wrote:
> Hi,
> For XSValueTest can someone send me the compiler errors? I have a
> guess
> of which lines are causing problems but would rather see the real
> problem
> before making a fix.
David,
Are you sure you're ready... (I think the last of these errors would be
fixed by Scott Cantor's patch)...
-jdb
XSValueTest/XSValueTest.cpp:1350: error: integer constant is too large
for 'long' type
XSValueTest/XSValueTest.cpp:1351:83: warning: integer constant is so
large that it is unsigned
XSValueTest/XSValueTest.cpp:1351: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:1351: error: integer constant is too large
for 'long' type
XSValueTest/XSValueTest.cpp:1353: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:1503:85: warning: integer constant is so
large that it is unsigned
XSValueTest/XSValueTest.cpp:1503: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:1503: error: integer constant is too large
for 'long' type
XSValueTest/XSValueTest.cpp:1504: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:1647:85: warning: integer constant is so
large that it is unsigned
XSValueTest/XSValueTest.cpp:1647: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:1647: error: integer constant is too large
for 'long' type
XSValueTest/XSValueTest.cpp:1648: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:1789: error: integer constant is too large
for 'long' type
XSValueTest/XSValueTest.cpp:1790:85: warning: integer constant is so
large that it is unsigned
XSValueTest/XSValueTest.cpp:1790: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:1790: error: integer constant is too large
for 'long' type
XSValueTest/XSValueTest.cpp:1792: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:1949: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:2408:94: warning: integer constant is so
large that it is unsigned
XSValueTest/XSValueTest.cpp:2408: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:2408: error: integer constant is too large
for 'long' type
XSValueTest/XSValueTest.cpp:2409: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:2556:94: warning: integer constant is so
large that it is unsigned
XSValueTest/XSValueTest.cpp:2556: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:2556: error: integer constant is too large
for 'long' type
XSValueTest/XSValueTest.cpp:2558: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:2716: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:3167:94: warning: integer constant is so
large that it is unsigned
XSValueTest/XSValueTest.cpp:3167: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:3167: error: integer constant is too large
for 'long' type
XSValueTest/XSValueTest.cpp:3168: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp: In function `int main(int, char*)':
XSValueTest/XSValueTest.hpp:97: error: 'StrX::StrX(const StrX&)' is
private
XSValueTest/XSValueTest.cpp:6661: error: within this context
make[2]: *** [XSValueTest/XSValueTest.o] Error 1
make[1]: *** [check-am] Error 2
make: *** [check-recursive] Error 1
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Problems with compilation of tests under gcc4?
Posted by James Berry <jb...@apache.org>.
On Feb 25, 2005, at 5:47 AM, David Cargill wrote:
> Hi,
> For XSValueTest can someone send me the compiler errors? I have a
> guess
> of which lines are causing problems but would rather see the real
> problem
> before making a fix.
David,
Are you sure you're ready... (I think the last of these errors would be
fixed by Scott Cantor's patch)...
-jdb
XSValueTest/XSValueTest.cpp:1350: error: integer constant is too large
for 'long' type
XSValueTest/XSValueTest.cpp:1351:83: warning: integer constant is so
large that it is unsigned
XSValueTest/XSValueTest.cpp:1351: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:1351: error: integer constant is too large
for 'long' type
XSValueTest/XSValueTest.cpp:1353: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:1503:85: warning: integer constant is so
large that it is unsigned
XSValueTest/XSValueTest.cpp:1503: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:1503: error: integer constant is too large
for 'long' type
XSValueTest/XSValueTest.cpp:1504: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:1647:85: warning: integer constant is so
large that it is unsigned
XSValueTest/XSValueTest.cpp:1647: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:1647: error: integer constant is too large
for 'long' type
XSValueTest/XSValueTest.cpp:1648: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:1789: error: integer constant is too large
for 'long' type
XSValueTest/XSValueTest.cpp:1790:85: warning: integer constant is so
large that it is unsigned
XSValueTest/XSValueTest.cpp:1790: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:1790: error: integer constant is too large
for 'long' type
XSValueTest/XSValueTest.cpp:1792: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:1949: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:2408:94: warning: integer constant is so
large that it is unsigned
XSValueTest/XSValueTest.cpp:2408: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:2408: error: integer constant is too large
for 'long' type
XSValueTest/XSValueTest.cpp:2409: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:2556:94: warning: integer constant is so
large that it is unsigned
XSValueTest/XSValueTest.cpp:2556: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:2556: error: integer constant is too large
for 'long' type
XSValueTest/XSValueTest.cpp:2558: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:2716: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:3167:94: warning: integer constant is so
large that it is unsigned
XSValueTest/XSValueTest.cpp:3167: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp:3167: error: integer constant is too large
for 'long' type
XSValueTest/XSValueTest.cpp:3168: warning: this decimal constant is
unsigned only in ISO C90
XSValueTest/XSValueTest.cpp: In function `int main(int, char*)':
XSValueTest/XSValueTest.hpp:97: error: 'StrX::StrX(const StrX&)' is
private
XSValueTest/XSValueTest.cpp:6661: error: within this context
make[2]: *** [XSValueTest/XSValueTest.o] Error 1
make[1]: *** [check-am] Error 2
make: *** [check-recursive] Error 1
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Problems with compilation of tests under gcc4?
Posted by David Cargill <ca...@ca.ibm.com>.
Hi,
For XSValueTest can someone send me the compiler errors? I have a guess
of which lines are causing problems but would rather see the real problem
before making a fix.
Regards,
David A. Cargill
XML Parser Development
IBM Toronto Lab
(905) 413-2371, tie 969
cargilld@ca.ibm.com
Alberto Massari
<amassari@datadir
ect.com> To
xerces-c-dev@xml.apache.org
02/25/2005 04:30 cc
AM
Subject
Re: Problems with compilation of
Please respond to tests under gcc4?
xerces-c-dev
At 15.52 24/02/2005 -0800, James Berry wrote:
>Is anybody else out there working with Xerces under gcc4?
>
>In working on the new autoconf stuff, I tried to run all of the testss,
>and ran into errors compiling several of them under gcc4:
>
> - ParserTest: I can't remember what was broken in compiling this, but
> it didn't compile.
>
> - UtilTests: gcc4 complains of ambiguous calls to
NullPointerException
>
> - XSValueTest: gcc4 complains of errors (value too long for long
> type, etc)
I could not compile (or run successfully) XSValueTest on several platforms
(at least Borland, Solaris 10), because of the out-of-range longs; but
those are meant to be overflow values, so I don't know how to change them
without changing the logic of the test. David, do you have any clue?
Alberto
>Has anybody else tried to build these w/gcc4?
>
>-jdb
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
>For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Problems with compilation of tests under gcc4?
Posted by Alberto Massari <am...@datadirect.com>.
At 15.52 24/02/2005 -0800, James Berry wrote:
>Is anybody else out there working with Xerces under gcc4?
>
>In working on the new autoconf stuff, I tried to run all of the testss,
>and ran into errors compiling several of them under gcc4:
>
> - ParserTest: I can't remember what was broken in compiling this, but
> it didn't compile.
>
> - UtilTests: gcc4 complains of ambiguous calls to NullPointerException
>
> - XSValueTest: gcc4 complains of errors (value too long for long
> type, etc)
I could not compile (or run successfully) XSValueTest on several platforms
(at least Borland, Solaris 10), because of the out-of-range longs; but
those are meant to be overflow values, so I don't know how to change them
without changing the logic of the test. David, do you have any clue?
Alberto
>Has anybody else tried to build these w/gcc4?
>
>-jdb
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
>For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Problems with compilation of tests under gcc4?
Posted by Gareth Reakes <ga...@parthenoncomputing.com>.
Hey,
Cheers Scott. I will commit your patch.
Gareth
Scott Cantor wrote:
>>Has anybody else tried to build these w/gcc4?
>
>
> Yeah, I did an RPM build of my patched 2.6.1 tree and had to hack on a
> couple of tests for Fedora Core 3.
>
> Patch below.
>
> -- Scott
>
> --- xerces-c-src_2_6_0/tests/XSValueTest/XSValueTest.cpp.orig 2005-01-17
> 22:06:58.992517204 -0500
> +++ xerces-c-src_2_6_0/tests/XSValueTest/XSValueTest.cpp 2005-01-17
> 22:05:49.725386549 -0500
> @@ -5549,8 +5549,9 @@
>
> catch (const XMLException& toCatch)
> {
> + StrX msg(toCatch.getMessage());
> XERCES_STD_QUALIFIER cerr << "Error during initialization!
> Message:\n"
> - << StrX(toCatch.getMessage()) << XERCES_STD_QUALIFIER endl;
> + << msg << XERCES_STD_QUALIFIER endl;
> return 1;
> }
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
>
--
Gareth Reakes, Managing Director Parthenon Computing
+44-1865-811184 http://www.parthcomp.com
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
RE: Problems with compilation of tests under gcc4?
Posted by Scott Cantor <ca...@osu.edu>.
> Has anybody else tried to build these w/gcc4?
Yeah, I did an RPM build of my patched 2.6.1 tree and had to hack on a
couple of tests for Fedora Core 3.
Patch below.
-- Scott
--- xerces-c-src_2_6_0/tests/XSValueTest/XSValueTest.cpp.orig 2005-01-17
22:06:58.992517204 -0500
+++ xerces-c-src_2_6_0/tests/XSValueTest/XSValueTest.cpp 2005-01-17
22:05:49.725386549 -0500
@@ -5549,8 +5549,9 @@
catch (const XMLException& toCatch)
{
+ StrX msg(toCatch.getMessage());
XERCES_STD_QUALIFIER cerr << "Error during initialization!
Message:\n"
- << StrX(toCatch.getMessage()) << XERCES_STD_QUALIFIER endl;
+ << msg << XERCES_STD_QUALIFIER endl;
return 1;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org