help compiling on solaris

Trying to compile on Solaris using Sun Studio 12.

any ideas?

% python2.5 setup.py build
building for GTK requires pygtk; you must be able to "import gtk" in
your build/install environment
TKAgg requires TkInter
running build
running build_py
copying lib/matplotlib/mpl-data/matplotlibrc ->
build/lib.solaris-2.10-i86pc-2.5/matplotlib/mpl-datarunning build_ext
building 'matplotlib._agg' extension
/opt/SUNWspro/bin/cc -DNDEBUG -O -Kpic -Iagg23/include -Isrc -Iswig
-I/usr/local/include/python2.5 -c src/agg.cxx -o
build/temp.solaris-2.10-i86pc-2.5/src/agg.o
error: command '/opt/SUNWspro/bin/cc' failed with exit status 1

ยทยทยท

cc: No input file specified, no output generated

Okay, I got further. I needed to use CC for c++ files.

But now I see another error:

/opt/SUNWspro/bin/cc -DNDEBUG -O -Kpic -I/usr/local/include/python2.5
-c lib/matplotlib/enthought/traits/ctraits.c -o
build/temp.solaris-2.10-i86pc-2.5/lib/matplotlib/enthought/traits/ctraits.o
"lib/matplotlib/enthought/traits/ctraits.c", line 174: Warning: String
literal converted to char* in formal argument m in call to
PyObject_CallMethod(_object*, char*, char*, ...).
"lib/matplotlib/enthought/traits/ctraits.c", line 174: Warning: String
literal converted to char* in formal argument format in call to
PyObject_CallMethod(_object*, char*, char*, ...).
"lib/matplotlib/enthought/traits/ctraits.c", line 355: Warning: String
literal converted to char* in formal argument m in call to
PyObject_CallMethod(_object*, char*, char*, ...).
"lib/matplotlib/enthought/traits/ctraits.c", line 355: Warning: String
literal converted to char* in formal argument format in call to
PyObject_CallMethod(_object*, char*, char*, ...).
"lib/matplotlib/enthought/traits/ctraits.c", line 371: Warning: String
literal converted to char* in formal argument m in call to
PyObject_CallMethod(_object*, char*, char*, ...).
"lib/matplotlib/enthought/traits/ctraits.c", line 371: Warning: String
literal converted to char* in formal argument format in call to
PyObject_CallMethod(_object*, char*, char*, ...).
"lib/matplotlib/enthought/traits/ctraits.c", line 387: Warning: String
literal converted to char* in formal argument m in call to
PyObject_CallMethod(_object*, char*, char*, ...).
"lib/matplotlib/enthought/traits/ctraits.c", line 387: Warning: String
literal converted to char* in formal argument format in call to
PyObject_CallMethod(_object*, char*, char*, ...).
"lib/matplotlib/enthought/traits/ctraits.c", line 405: Warning: String
literal converted to char* in formal argument m in call to
PyObject_CallMethod(_object*, char*, char*, ...).
"lib/matplotlib/enthought/traits/ctraits.c", line 405: Warning: String
literal converted to char* in formal argument format in call to
PyObject_CallMethod(_object*, char*, char*, ...).
"lib/matplotlib/enthought/traits/ctraits.c", line 448: Warning: String
literal converted to char* in formal argument m in call to
PyObject_CallMethod(_object*, char*, char*, ...).
"lib/matplotlib/enthought/traits/ctraits.c", line 448: Warning: String
literal converted to char* in formal argument format in call to
PyObject_CallMethod(_object*, char*, char*, ...).
"lib/matplotlib/enthought/traits/ctraits.c", line 502: Error:
Unexpected type name "PyObject" encountered.
"lib/matplotlib/enthought/traits/ctraits.c", line 502: Error: Operand
expected instead of "class".
"lib/matplotlib/enthought/traits/ctraits.c", line 502: Error: Multiple
declaration for has_traits_object.
"lib/matplotlib/enthought/traits/ctraits.c", line 502: Error: ","
expected instead of "*".
"lib/matplotlib/enthought/traits/ctraits.c", line 502: Error: Use ";"
to terminate declarations.
"lib/matplotlib/enthought/traits/ctraits.c", line 502: Error: A
declaration was expected instead of ",".
"lib/matplotlib/enthought/traits/ctraits.c", line 503: Error: Multiple
declaration for PyObject.
"lib/matplotlib/enthought/traits/ctraits.c", line 503: Error: ","
expected instead of "*".
"lib/matplotlib/enthought/traits/ctraits.c", line 508: Error: A
declaration was expected instead of "if".
"lib/matplotlib/enthought/traits/ctraits.c", line 508: Error: No
direct declarator preceding "(".
"lib/matplotlib/enthought/traits/ctraits.c", line 510: Error: No
direct declarator preceding "(".
"lib/matplotlib/enthought/traits/ctraits.c", line 511: Error: obj is
not defined.
"lib/matplotlib/enthought/traits/ctraits.c", line 513: Error: value is
not defined.
"lib/matplotlib/enthought/traits/ctraits.c", line 515: Error: obj is
not defined.
"lib/matplotlib/enthought/traits/ctraits.c", line 517: Error: value is
not defined.
"lib/matplotlib/enthought/traits/ctraits.c", line 518: Error: result
is not defined.
"lib/matplotlib/enthought/traits/ctraits.c", line 518: Error: Expected
an expression.
"lib/matplotlib/enthought/traits/ctraits.c", line 518: Error:
Identifier expected instead of ",".
"lib/matplotlib/enthought/traits/ctraits.c", line 520: Error: result
is not defined.
"lib/matplotlib/enthought/traits/ctraits.c", line 560: Warning: String
literal converted to char* in formal argument m in call to
PyObject_CallMethod(_object*, char*, char*, ...).
"lib/matplotlib/enthought/traits/ctraits.c", line 560: Warning: String
literal converted to char* in formal argument format in call to
PyObject_CallMethod(_object*, char*, char*, ...).
"lib/matplotlib/enthought/traits/ctraits.c", line 1007: Warning:
String literal converted to char* in initialization.
"lib/matplotlib/enthought/traits/ctraits.c", line 1054: Warning
(Anachronism): Using _object*(*)(_typeobject*,_object*,_object*) to
initialize extern "C" _object*(*)(_typeobject*,_object*,_object*).
"lib/matplotlib/enthought/traits/ctraits.c", line 1085: Error: Only a
function may be called.
"lib/matplotlib/enthought/traits/ctraits.c", line 1088: Error: Only a
function may be called.
"lib/matplotlib/enthought/traits/ctraits.c", line 2155: Warning:
String literal converted to char* in formal argument m in call to
PyObject_CallMethod(_object*, char*, char*, ...).
"lib/matplotlib/enthought/traits/ctraits.c", line 2656: Warning:
String literal converted to char* in formal argument m in call to
PyObject_CallMethod(_object*, char*, char*, ...).
"lib/matplotlib/enthought/traits/ctraits.c", line 2656: Warning:
String literal converted to char* in formal argument format in call to
PyObject_CallMethod(_object*, char*, char*, ...).
"lib/matplotlib/enthought/traits/ctraits.c", line 3324: Warning:
String literal converted to char* in initialization.
"lib/matplotlib/enthought/traits/ctraits.c", line 3325: Warning:
String literal converted to char* in initialization.
"lib/matplotlib/enthought/traits/ctraits.c", line 3326: Warning:
String literal converted to char* in initialization.
"lib/matplotlib/enthought/traits/ctraits.c", line 3335: Error:
Multiple declaration for trait_type.
"lib/matplotlib/enthought/traits/ctraits.c", line 3632: Warning:
String literal converted to char* in initialization.
"lib/matplotlib/enthought/traits/ctraits.c", line 3632: Warning:
String literal converted to char* in initialization.
"lib/matplotlib/enthought/traits/ctraits.c", line 3743: Error: In this
declaration "getclassname" is of an incomplete type "void".
"lib/matplotlib/enthought/traits/ctraits.c", line 3743: Error:
Unexpected type name "PyObject" encountered.
"lib/matplotlib/enthought/traits/ctraits.c", line 3743: Error: Operand
expected instead of "class".
Compilation aborted, too many Error messages.
error: command '/opt/SUNWspro/bin/cc' failed with exit status 1