[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-p-dev
Subject:    Re: XML-Xerces, cc-problems Redhat 6.2 Perl5.005
From:       jason () openinformatics ! com (Jason E !  Stewart)
Date:       2001-07-10 17:20:14
[Download RAW message or body]

"Jim Nordlander" <jim@unit.liu.se> writes:

> Hi!

Hej pa dig!

> I've tried in 3-4 days and I still get same problems:

> Compiling XML-Xerces (4.1 and 5.0) results in the following errormessage:
> 
> --errormessage--
> cc -c -I. -IHandler -I/service/xalan-xerces/src/xml-xerces/c/include 
> -Dbool=char -DHAS_BOOL -I/service/prg/include -O2    -DVERSION=\"0.10\" 
> -DXS_VERSION=\"0.10\" -fpic 
> -I/service/perl/arch/linux-intel/lib/perl5/5.005/linux-intel/CORE  
> PerlExceptionHandler.cpp
> In file included from PerlExceptionHandler.cpp:1:
> /usr/include/g++-2/iostream.h:97: `ostream::operator <<(char)' is already 
> defined
> in class ostream
> /usr/include/g++-2/iostream.h:216: `istream::operator >>(char &)' is 
> already defined in the class istream
> In file included from PerlExceptionHandler.cpp:3:
> PerlExceptionHandler.hpp:48: warning: `class PerlExceptionHandler' only 
> defines a
> private destructor and has no friends
> make[1]: *** [PerlExceptionHandler.o] Error 1
> make[1]: Leaving directory 
> `/service/xalan-xerces/src/XML-Xerces-1.4.1/Handler'
> make: *** [subdirs] Error 2              
> --end-errormessage--

So this is a  problem with libiostream from gcc 2.91 and is fixed in
later versions, e.g. 2.95.


I've tested this and it works:

add #undef bool immediately before the #include <iostream.h> in
PerlExceptionHandler.cpp

and it will compile. Also, I'm just about to release Xerces.pm 1.5.3,
you can upgrade to that if you wish, as it will have the fix (plus a
lot more functionality than 1.5.0 ...)

adjo!
jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic