AIX 4.3 header conflict
Brian Cameron
BCAMERON@tuc.com
Fri Nov 20 07:12:00 GMT 1998
egcs maintainers:
When I try to compile the DDD shareware debugger package
(written in C++) on an RS6000 AIX 4.3 machine using the
egcs-1.1 C++ compiler, I get an error complaining about a
conflict between the egcs and AIX 4.3 headers.
I have attached the AIX 4.3 math.h header file so you can
take a look at it.
The error I get follows:
> In file included from ArcBox.C:47:
> /usr/include/math.h:455: redefinition of `class exception'
> /bridges/gnu/lib/gcc-lib/powerpc-ibm-aix4.3.1.0/egcs-2.91.57/include/exception:20: previous definition here
> /bridges/gnu/lib/gcc-lib/powerpc-ibm-aix4.3.1.0/egcs-2.91.57/include/exception:20: previous declaration of `exception::exception(const struct exception &)' with C++ linkage
> /usr/include/math.h:461: conflicts with new declaration with C linkage
>/bridges/gnu/lib/gcc-lib/powerpc-ibm-aix4.3.1.0/egcs-2.91.57/include/exception:20: previous declaration of `struct exception & exception::operator =(const struct exception &)' with C++ linkage
> /usr/include/math.h:461: conflicts with new declaration with C linkage
> /usr/include/math.h:461: confused by earlier errors, bailing out
> make[1]: *** [ArcBox.o] Error 1
> make[1]: Leaving directory `/bridges/builds/ddd/ddd-1998-11-18/ddd'
> make: *** [all] Error 1
It appears that there is a conflict between the egcs exception header
and the AIX 4.3 math.h header.
I understand that the egcs compiler is only going to support the
full 64-bit features of the AIX 4.3 operating system in the next
release of egcs (1.1.1). I hope that a fix to the above problem can
also be rolled out quickly.
Any help, patches, or fixes for the above problem would be
appreciated! Please cc: any responses to me at
bcameron@tuc.com since I am not on the egcs mailing lists.
Thank you!!
Brian
P.S. If you would like to try replicate this problem, you can access
the DDD source code at http://www.cs.tu-bs.de/softech/ddd/
I assume you would probably need an AIX 4.3 machine
though to recreate it.
More information about the Gcc-bugs
mailing list