From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Kenneth H. Cox" To: gcc-help@gcc.gnu.org Subject: problems building 2.95.2 on sparc-sun-solaris2.5.1 Date: Fri, 31 Dec 1999 22:24:00 -0000 Message-ID: X-SW-Source: 1999-12n/msg00290.html Message-ID: <19991231222400.iaXVZx9lxlFi0wWeFFtZwwP3CF5aDlLem4yv2_om8hU@z> Hello, 'make bootstrap' fails for me with a "redefinition of struct exception" error. I don't know how to workaround this, as the header in question is a system header which is conflicting with a GCC header. Any help would be much appreciated! % uname -a SunOS cherry.senteinc.com 5.5.1 Generic sun4u sparc SUNW,Ultra-1 % env CC=cc ./configure --prefix=/system/pkg/gcc/$VERS \ --exec-prefix=/system/pkg/gcc/$VERS/$PLATFORM --enable-languages=c++ % make bootstrap ... /system/disks/scrap/tmp/kenstir-tmp/gcc-2.95.2/gcc/xgcc -B/system/disks/scrap/tmp/kenstir-tmp/gcc-2.95.2/gcc/ -B/system/pkg/gcc/2.95.2/sparc-sun-solaris2.5.1/sparc-sun-solaris2.5.1/bin/ -c -g -O2 -fno-implicit-templates -I. -I./stl -I../libio -I./../libio -nostdinc++ valarray.cc In file included from /system/disks/scrap/tmp/kenstir-tmp/gcc-2.95.2/gcc/include/new:9, from /system/disks/scrap/tmp/kenstir-tmp/gcc-2.95.2/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: /system/disks/scrap/tmp/kenstir-tmp/gcc-2.95.2/gcc/include/exception:13: redefinition of `struct exception' /usr/include/math.h:81: previous definition here -- Kenneth H. Cox Software Guy Sente, Inc.