sean cook - 2002-02-13

Hello: When I compile cppunit I get an error.
MY SYSTEM INFORMATION:

hostname = santana
uname -m = sun4u
uname -r = 5.6
uname -s = SunOS
uname -v = Generic_105181-26

/bin/arch              = sun4
/usr/bin/arch -k       = sun4u
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH = /home/scook/bin:/usr/local/bin:/usr/ccs/bin:/opt/SUNWspro/bin:/usr/bin:/usr/ucb:/etc:/usr/atria/bin:/usr/atria/etc.

(santana)[scook]> CC -V
CC: WorkShop Compilers 4.2 16 Jun 1998 C++ 4.2 patch 104631-07

THE PROBLEM:

(santana)[scook]> make
Making all in src
make[1]: Entering directory `/home/scook/cppunit-1.6.2/src'
Making all in cppunit
make[2]: Entering directory `/home/scook/cppunit-1.6.2/src/cppunit'
source='NotEqualException.cpp' object='NotEqualException.lo' libtool=yes \
depfile='.deps/NotEqualException.Plo' tmpdepfile='.deps/NotEqualException.TPlo' \
depmode=none /bin/sh ../../config/depcomp \
/bin/sh ../../libtool --mode=compile CC -DHAVE_CONFIG_H -I. -I. -I../../config -I../../include -I../../include    -g -c -o NotEqualException.lo `test -f NotEqualException.cpp || echo './'`NotEqualException.cpp

CC -DHAVE_CONFIG_H -I. -I. -I../../config -I../../include -I../../include -g -c NotEqualException.cpp  -KPIC -DPIC
-o .libs/NotEqualException.o
"../../include/cppunit/Exception.h", line 4: Error: Could not open include file <exception>.
"../../include/cppunit/Exception.h", line 5: Error: Could not open include file <string>.
"../../include/cppunit/Exception.h", line 7: Error: Type name expected instead of "namespace".
"../../include/cppunit/Exception.h", line 28: Error: std is not defined.
"../../include/cppunit/Exception.h", line 28: Error: string must be initialized.
"../../include/cppunit/Exception.h", line 28: Error: "," expected instead of "m_type".
"../../include/cppunit/Exception.h", line 29: Error: Unexpected "}".
"../../include/cppunit/Exception.h", line 32: Error: Type name expected instead of "Exception".
"../../include/cppunit/Exception.h", line 33: Error: UNKNOWNLINENUMBER is not defined.
"../../include/cppunit/Exception.h", line 34: Error: std is not defined.
"../../include/cppunit/Exception.h", line 34: Error: Multiple declaration for string.
"../../include/cppunit/Exception.h", line 34: Error: "," expected instead of "fileName".
"../../include/cppunit/Exception.h", line 35: Error: ")" expected instead of "&".
"../../include/cppunit/Exception.h", line 37: Error: "virtual" is not allowed here.
"../../include/cppunit/Exception.h", line 37: Error: Type name expected instead of "Exception".
"../../include/cppunit/Exception.h", line 37: Error: Illegal number of arguments for <destructor>().
"../../include/cppunit/Exception.h", line 39: Error: Type name expected instead of "Exception".
"../../include/cppunit/Exception.h", line 41: Error: The function "what() const" cannot be declared const.
"../../include/cppunit/Exception.h", line 43: Error: Multiple declaration for lineNumber.
"../../include/cppunit/Exception.h", line 44: Error: std is not defined.
"../../include/cppunit/Exception.h", line 46: Error: std is not defined.
"../../include/cppunit/Exception.h", line 46: Error: UNKNOWNFILENAME must be initialized.
"../../include/cppunit/Exception.h", line 47: Error: UNKNOWNLINENUMBER must be initialized.
"../../include/cppunit/Exception.h", line 49: Error: "virtual" is not allowed here.
"../../include/cppunit/Exception.h", line 49: Error: Type name expected instead of "Exception".
Compilation aborted, too many messages.
make[2]: *** [NotEqualException.lo] Error 1
make[2]: Leaving directory `/home/scook/cppunit-1.6.2/src/cppunit'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/scook/cppunit-1.6.2/src'
make: *** [all-recursive] Error 1

Any suggestions?