Borut Podlipnik added the comment:
Using c compiler instead of c++ compiler, solved the problem:
setenv CC cc
setenv CXX cc
setenv LD_LIBRARY_PATH "/opt/solarisstudio12.3/lib:/usr/lib"
# ./configure --without-gcc --with-cxx-main=CC --prefix=/opt/python
# make
# make test
However,
New submission from Borut Podlipnik:
# make
CC -c -g -DNDEBUG -O -I. -IInclude -I./Include -DPy_BUILD_CORE -o
Modules/python.o ./Modules/python.c
CC -c -g -DNDEBUG -O -I. -IInclude -I./Include -DPy_BUILD_CORE -o
Parser/acceler.o Parser/acceler.c
CC -c -g -DNDEBUG -O -I. -IInclude -I