This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcc-2.95.1 installation probelm on solaris 2.6



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]