This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc-2.95.1 installation probelm on solaris 2.6
- To: gcc-bugs at gcc dot gnu dot org, bug-gcc at gnu dot org
- Subject: gcc-2.95.1 installation probelm on solaris 2.6
- From: Michael Fish <michael at herzlia dot conexant dot com>
- Date: Thu, 14 Oct 1999 12:45:50 +0200
- CC: Merav Bondi <merav dot bondi at nb dot conexant dot com>, Maanit Shaanan <maanit dot shaanan at nb dot conexant dot com>
- Organization: Conexant Systems
- Reply-To: michael dot fish at nb dot conexant dot com
Dear sirs,
I tried to install gcc-2.95.1 on solaris 2.6.
During complilation I got the following error:
/home/michael/install/gcc-2.95.1/gcc/xgcc
-B/home/michael/install/gcc-2.95.1/gcc/
-B/usr/local/sparc-sun-solaris2.6/bin/ -c -g -O2 -fno-implicit-templates
-I. -I./stl -I../libio -I./../libio -nostdinc++ valarray.cc -o
pic/valarray.o
/home/michael/install/gcc-2.95.1/gcc/xgcc
-B/home/michael/install/gcc-2.95.1/gcc/
-B/usr/local/sparc-sun-solaris2.6/bin/ -c -g -O2 -fno-implicit-templates
-I. -I./stl -I../libio -I./../libio -nostdinc++ valarray.cc
In file included from
/home/michael/install/gcc-2.95.1/gcc/include/new:9,
from
/home/michael/install/gcc-2.95.1/gcc/include/new.h:6,
from stl/stl_algobase.h:52,
from stl/algorithm:30,
from std/std_valarray.h:41,
from valarray.cc:1:
/home/michael/install/gcc-2.95.1/gcc/include/exception:13: redefinition
of `struct exception'
/usr/include/math.h:81: previous definition here
gmake[1]: *** [valarray.o] Error 1
gmake[1]: Leaving directory
`/home/michael/install/gcc-2.95.1/sparc-sun-solaris2.6/libstdc++'
I checked the /usr/include/math.h file and saw the 'struct exception' is
defined as:
struct exception {
int type;
char *name;
double arg1;
double arg2;
double retval;
};
but in the <gcc-2.95.1 install dir>/gcc/include/exception file 'class
exception' is defined:
class exception {
public:
exception () { }
virtual ~exception () { }
virtual const char* what () const;
};
Could you check this problem ?
Best Regards,
Michael Fish